diff --git a/306-controller_interface.X/app/car.h b/306-controller_interface.X/app/car.h index 05203c8..9a44e0d 100644 --- a/306-controller_interface.X/app/car.h +++ b/306-controller_interface.X/app/car.h @@ -46,6 +46,10 @@ const bool ALWAYSTRUE = true; const bool ALWAYSFALSE = false; +const uint8_t ALWAYS0 = 0; +const uint8_t ALWAYS1 = 1; +const uint8_t ALWAYS2 = 2; +const uint8_t ALWAYS3 = 3; typedef struct { uint8_t CONTROL_STEERING_MODE; diff --git a/306-controller_interface.X/middleware/alive.h b/306-controller_interface.X/middleware/alive.h index 580e735..9bbee16 100644 --- a/306-controller_interface.X/middleware/alive.h +++ b/306-controller_interface.X/middleware/alive.h @@ -10,7 +10,7 @@ #include "../xf/xf.h" typedef enum { - STAL_INIT, + STAL_INIT = 15, STAL_SETUP, STAL_BORN, STAL_WAIT, diff --git a/306-controller_interface.X/middleware/can_interface.h b/306-controller_interface.X/middleware/can_interface.h index 8d65ba9..f645b44 100644 --- a/306-controller_interface.X/middleware/can_interface.h +++ b/306-controller_interface.X/middleware/can_interface.h @@ -10,7 +10,7 @@ #include "../xf/xf.h" typedef enum { - STCA_INIT, + STCA_INIT = 10, STCA_PROCESS } CAN_STATES;