ジャパンオープン用のメインプログラム
Dependencies: mbed AQM1602 HMC6352 PID
Diff: setting/def.h
- Revision:
- 4:52da8da146d4
- Parent:
- 3:c49ea7ad8e91
- Child:
- 5:5ff3a7d5d8c2
--- a/setting/def.h Thu Mar 03 11:47:49 2016 +0000 +++ b/setting/def.h Fri Mar 04 03:39:29 2016 +0000 @@ -21,10 +21,30 @@ #define STATE_NUM_X 0x04 #define STATE_NUM_Y 0x10 +#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 + typedef struct {//for command char LcdStr[STATE_NUM_X][BUFSIZE]; uint8_t str_num; uint8_t (*CommandFunction)(uint8_t x); + uint16_t tag_num; } CommandItem; //繰り返し割り込み @@ -159,7 +179,7 @@ typedef struct { //system,flag uint8_t strategy; - uint8_t jump_flag;//0<=x<=STATE_NUM_Y + uint16_t jump_flag;//0<=x<=JUMP_TAG_NUM uint8_t stopflag; uint8_t KickOffFlag; uint8_t DribbleFlag;