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

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
3:c49ea7ad8e91
Parent:
2:635947de1583
Child:
4:52da8da146d4
--- a/setting/def.h	Thu Mar 03 05:58:43 2016 +0000
+++ b/setting/def.h	Thu Mar 03 11:47:49 2016 +0000
@@ -17,9 +17,16 @@
 #define LEFT    4
 
 //Lcd 設定値
-#define BUFSIZE 10
+#define BUFSIZE 7
 #define STATE_NUM_X 0x04
 #define STATE_NUM_Y 0x10
+
+typedef struct {//for command
+    char LcdStr[STATE_NUM_X][BUFSIZE];
+    uint8_t str_num;
+    uint8_t (*CommandFunction)(uint8_t x);
+} CommandItem;
+
 //繰り返し割り込み
 #define DUTY_NUM 1
 
@@ -168,25 +175,5 @@
     int8_t dri_pow;
     uint8_t ir_pow_table;
 } SystemVal;
-/*
-typedef struct {//for command
 
-    uint8_t (*Function[STATE_NUM_Y])(uint8_t x)
-    uint8_t strategy;
-    uint8_t jump_flag;//0<=x<=STATE_NUM_Y
-    uint8_t stopflag;
-    uint8_t KickOffFlag;
-    uint8_t DribbleFlag;
-    uint8_t KickFlag;
-    uint8_t MotorFlag;
-    uint8_t IrFlag;
-    uint8_t UswFlag;
-    uint8_t UswFlag_2;
-    uint8_t PidFlag;
-    //motor 
-    double s_pow;
-    double l_pow;
-    int8_t dri_pow;
-    uint8_t ir_pow_table;
-} CommandItem;*/
 #endif
\ No newline at end of file