ジャパンオープン用のメインプログラム
Dependencies: mbed AQM1602 HMC6352 PID
Diff: setting/def.h
- Revision:
- 1:3e013ae7900d
- Parent:
- 0:ea35c18c85fc
- Child:
- 2:635947de1583
--- a/setting/def.h Sat Feb 27 09:14:37 2016 +0000 +++ b/setting/def.h Sun Feb 28 06:38:17 2016 +0000 @@ -52,6 +52,16 @@ #define X_AXIS 0 #define Y_AXIS 1 + +#define DIS_0 0x0//low_value +#define DIS_1 0x1 +#define DIS_2 0x2 +#define DIS_3 0x3 +#define DIS_4 0x4 +#define DIS_5 0x5 +#define DIS_6 0x6 +#define DIS_7 0x7//high_value + //ping #define L_PING 0 #define R_PING 1 @@ -80,6 +90,7 @@ #define RAD2DEG(rad) (180.0(rad)/PI) //データ +/* typedef struct {//ir,line,gyro,mouse,ping //ping uint8_t ping[4]; @@ -109,6 +120,7 @@ uint8_t init_point_flag; uint8_t stopflag; } Record; +*/ //NewStruct typedef struct { //cmps&pid @@ -123,8 +135,7 @@ uint8_t lineSpot[3]; //ir(spi) uint8_t irKey;//2bit - uint8_t irValPhaseS;//3bit - uint8_t irValPhaseL;//3bit + uint8_t irValPhase[2];//3*2bit uint8_t irSpot[2];//4*2bit //ir(playing) uint8_t irNotice;