Now start states are common for lpc boards and other applications.
EB board now sends exact start states in robot_cmd CAN message.
ORTE robot_cmd type changed from boolean to char - now it can handle many different states.
#define CAN_PWR_BATT_LOW 0x20
#define CAN_PWR_BATT_CRITICAL 0x40
+enum robot_start_state {
+ POWER_ON = 0,
+ START_PLUGGED_IN = 1,
+ COMPETITION_STARTED = 2,
+};
+
#endif
YELLOW
};
-enum robot_start_state {
- POWER_ON = 0,
- START_PLUGGED_IN,
- COMPETITION_STARTED,
-};
-
/**
* FSM
*/
};
struct robot_cmd {
- boolean start_condition;
+ char start_condition;
};
struct robot_bumpers {