Main Program
Dependencies: mbed AQM1602 HMC6352 PID
Diff: setting/def.h
- Revision:
- 23:d95d8d3e89f3
- Parent:
- 22:a95f7c63af3c
- Child:
- 24:9fb74ea3c25d
--- a/setting/def.h Sat Jan 30 09:27:51 2016 +0000 +++ b/setting/def.h Sat Jan 30 10:08:47 2016 +0000 @@ -34,7 +34,7 @@ /*PID処理*/ #define RATE 0.052//52 -#define PID_BIAS 0.2 +#define PID_BIAS 0.0 #define REFERENCE 180.0 #define MINIMUM 0.0 #define MAXIMUM 359.9 @@ -69,7 +69,7 @@ uint8_t AvailableKick; int32_t mouse[2];//0...x,1...y//1cm nearlyeq 1000count //cmps&pid - double cmps, CmpsInitialValue, FrontDeg;//0<x<360 + double cmps, CmpsInitialValue, CmpsDiff, FrontDeg;//0<x<360 double InputPID;//<<gyrosensor uint16_t OutputPID;//>>motor //uint8_t color[3];