Main Program

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
18:97eba56f82e4
Parent:
16:6900f47fa0b5
Child:
19:342da3a5a474
--- a/setting/def.h	Mon Jan 18 02:14:23 2016 +0000
+++ b/setting/def.h	Tue Jan 19 10:22:47 2016 +0000
@@ -53,17 +53,22 @@
 #define RAD2DEG(rad)  (180.0(rad)/PI)
 
 //データ
-typedef struct {
-    uint8_t ping[4];
-    uint8_t ir[12];
-    uint8_t irLong[6];
-    uint8_t line[3];
-    int mouse[2];//0...x,1...y//1cm nearlyeq 1000count
+typedef struct {//ir,line,gyro,mouse,ping
+    uint8_t ping[2];
+    uint8_t irPosition;
+    uint8_t irState;
+    uint8_t rawLn;
+    uint8_t heldLn;
+    uint8_t ball;
+    uint8_t AvailableKick;
+    int32_t mouse[2];//0...x,1...y//1cm nearlyeq 1000count
     uint16_t gyro, GyroInitialValue, FrontDeg;//0<x<3599
-    double InputPID;//<<gyrosensor
-    double OutputPID;//>>motor
-    uint8_t color[3];
-    uint8_t lcdpoint[2];
+    uint16_t InputPID;//<<gyrosensor
+    uint16_t OutputPID;//>>motor
+    //uint8_t color[3];
+    //uint8_t lcdpoint[2];//0...x,1...y
+    uint8_t strategy;
+    uint8_t init_point_flag;
     uint8_t stopflag;
 } Record;