ジャパンオープン用のメインプログラム

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
8:25c8c75d182a
Parent:
7:efe90188a49d
Child:
9:c966191926c5
--- a/setting/def.h	Sun Mar 06 15:06:28 2016 +0000
+++ b/setting/def.h	Sun Mar 06 15:43:26 2016 +0000
@@ -24,24 +24,27 @@
 
 #define JUMP_TAG_MAX 0xFFFF
 //tag
-#define ZERO_FUNCTION       0x0000
-#define START               0x0001
-#define GET_IR              0x0002
-#define GET_LINE            0x0003
-#define GET_PID_VALUE       0x0004
-#define CALIBRATION_ENTER   0x0005
-#define CALIBRATION_EXIT    0x0006
-#define FRONT_RESET         0x0007
-#define SET_POWER1          0x0008
-#define SET_POWER2          0x0009
-#define SOFT_RESET          0x000A
-#define SET_STRATEGY1       0x000B
-#define SET_STRATEGY2       0x000C
-#define SET_STRATEGY3       0x000D
-#define SET_STRATEGY4       0x000E
-#define START2              0x000F
-#define SET_POWER_DOWN      0x0010
-#define SET_POWER_UP        0x0011
+#define ZERO_FUNCTION       0
+#define START               1
+#define GET_IR              2
+#define GET_LINE            3
+#define GET_PID_VALUE       4
+#define CALIBRATION_ENTER   5
+#define CALIBRATION_EXIT    6
+#define FRONT_RESET         7
+#define SET_POWER1          8
+#define SET_POWER2          9
+#define SOFT_RESET          10
+#define SET_STRATEGY1       11
+#define SET_STRATEGY2       12
+#define SET_STRATEGY3       13
+#define SET_STRATEGY4       14
+#define START2              15
+
+#define SET_POWER_DOWN      16
+#define SET_POWER_UP        17
+#define SET_STRATEGY_DOWN   18
+#define SET_STRATEGY_UP     19
 
 typedef struct {//for command
     char LcdStr[STATE_NUM_X][BUFSIZE];
@@ -215,12 +218,17 @@
     uint8_t stopflag;
     uint8_t KickOffFlag;
     uint8_t DribbleFlag;
+    uint8_t BackHomeFlag;
     uint8_t KickFlag;
     uint8_t MotorFlag;
     uint8_t IrFlag;
     uint8_t UswFlag;
     uint8_t UswFlag_2;
     uint8_t PidFlag;
+    //blind//on...1/off...0
+    uint8_t IrBlind;
+    uint8_t LineBlind;
+    uint8_t PingBlind;
     //motor 
     uint8_t pow_num;
     uint8_t s_pow;