Main Program
Dependencies: mbed AQM1602 HMC6352 PID
Diff: def.h
- Revision:
- 3:f7c906e52339
- Parent:
- 2:97a4070c34d7
- Child:
- 4:69fd47e1d296
--- a/def.h Tue Sep 15 06:04:31 2015 +0000 +++ b/def.h Tue Sep 15 06:10:26 2015 +0000 @@ -1,24 +1,6 @@ #ifndef _DEF_H_ #define _DEF_H_ -/*PID処理*/ -#define RATE 0.052//52 -#define PID_BIAS 0.2 -#define REFERENCE 180.0 -#define MINIMUM 0.0 -#define MAXIMUM 359.0 -#define P_GAIN 1.4//1.4 //0.78 -#define I_GAIN 0.0 //0.0 -#define D_GAIN 0.05 //0.009 -#define OUT_LIMIT 40.0 -#define MAX_POW 100 -#define MIN_POW -100 -#define PID_CYCLE 0.05 //s - -/*Serial Mbed間*/ -#define ADDRESS 0xAA - - //BT(BlueTooth) #define DATA_NUM 8+2//2byte→KEYCODE(拝啓)とCHECKCODE(敬具) 8byte→やりとりするデータ #define TX_KEYCODE 0xAA//あちらのKEYCODE