
最終調整
Dependencies: mbed AQM0802 CRotaryEncoder TB6612FNG
Diff: flag.h
- Revision:
- 30:14615f9ff467
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flag.h Tue Nov 26 02:49:20 2019 +0000 @@ -0,0 +1,15 @@ +/******************************************* +機体の状態を示すフラグ定義。 +基本的に変更する必要はない。 +*******************************************/ +//スイッチ状態の定義 +#define PUSH 0 //スイッチ押したときの状態 +#define PULL 1 //スイッチ離したときの状態 +//機体状態の定義 +#define STOP 0x80 //機体停止状態 +#define RUN_START 0x40 //スタートマーカ通過 +#define RUN_COURSE_LOUT 0x20 //左コースアウト状態 +#define RUN_COURSE_CENTER 0x18 //ライン中央走行状態 +#define RUN_COURSE_ROUT 0x04 //右コースアウト状態 +#define SECOND_RUN 0x02 //機体停止状態 +#define TUARD_RUN 0x01 //機体設定モード \ No newline at end of file