From 447c9d880118fa9dfb53d1b4fbf84b41affdb1ff Mon Sep 17 00:00:00 2001 From: Klagarge Date: Mon, 4 Sep 2023 15:22:16 +0200 Subject: [PATCH] add cst --- 306-controller_interface.X/app/car.h | 4 ++++ 306-controller_interface.X/middleware/alive.h | 2 +- 306-controller_interface.X/middleware/can_interface.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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;