ジャパンオープン用のメインプログラム
Dependencies: mbed AQM1602 HMC6352 PID
Diff: setting/def.h
- Revision:
- 7:efe90188a49d
- Parent:
- 6:f9167470d819
- Child:
- 8:25c8c75d182a
--- a/setting/def.h Sun Mar 06 14:00:12 2016 +0000 +++ b/setting/def.h Sun Mar 06 15:06:28 2016 +0000 @@ -17,6 +17,7 @@ #define LEFT 4 //Lcd 設定値 +#define LCD_COLUMN_NUM 0x11 #define BUFSIZE 7 #define STATE_NUM_X 0x04 #define STATE_NUM_Y 0x10 @@ -39,6 +40,8 @@ #define SET_STRATEGY3 0x000D #define SET_STRATEGY4 0x000E #define START2 0x000F +#define SET_POWER_DOWN 0x0010 +#define SET_POWER_UP 0x0011 typedef struct {//for command char LcdStr[STATE_NUM_X][BUFSIZE]; @@ -47,6 +50,28 @@ uint16_t tag_num; } CommandItem; + +//tag +#define MODE_ATTACK0 0 +#define MODE_ATTACK1 1 +#define MODE_ATTACK2 2 +#define MODE_ATTACK3 3 +#define MODE_ATTACK4 4 +#define MODE_ATTACK5 5 + +#define MODE_DEBUG0 6 +#define MODE_DEBUG1 7 +#define MODE_DEBUG2 8 +#define MODE_DEBUG3 9 +#define MODE_DEBUG4 10 +#define MODE_DEBUG5 11 + +typedef struct {//for active + char LcdStr[LCD_COLUMN_NUM]; + void (*ActiveFunction)(void); + uint16_t tag_num; +} ActiveItem; + //繰り返し割り込み #define DUTY_NUM 1 @@ -197,6 +222,7 @@ uint8_t UswFlag_2; uint8_t PidFlag; //motor + uint8_t pow_num; uint8_t s_pow; uint8_t m_pow; uint8_t l_pow;