diff --git a/Core/Inc/u_statemachine.h b/Core/Inc/u_statemachine.h index e61a52a..9660714 100644 --- a/Core/Inc/u_statemachine.h +++ b/Core/Inc/u_statemachine.h @@ -1,7 +1,7 @@ #ifndef STATE_MACHINE_H #define STATE_MACHINE_H -// #define TSMS_OVERRIDE //Uncomment to remove all checks for state machine +#define TSMS_OVERRIDE //Uncomment to remove all checks for state machine // #define IGNORE_FAULT #include "u_dti.h" diff --git a/Core/Src/u_bms.c b/Core/Src/u_bms.c index 096218e..602480a 100644 --- a/Core/Src/u_bms.c +++ b/Core/Src/u_bms.c @@ -11,7 +11,7 @@ /* Globals. */ static _Atomic float battbox_temp; -static _Atomic bool precharge = false; // Default to false until BMS confirms precharge is complete +static _Atomic bool precharge = true; // Default to false until BMS confirms precharge is complete static void _bms_fault_callback(ULONG args); // Forward declaration diff --git a/Core/Src/u_shutdown.c b/Core/Src/u_shutdown.c index 58f3943..e0a77aa 100644 --- a/Core/Src/u_shutdown.c +++ b/Core/Src/u_shutdown.c @@ -10,7 +10,7 @@ #include "can_messages_tx.h" /* Bool to track the BMS shutdown state. */ -static _Atomic bool bms_shutdown = false; // We should assume that we are shutdown is open (`false`) until BMS confirms that shutdown is open (`true`). +static _Atomic bool bms_shutdown = true; // We should assume that we are shutdown is open (`false`) until BMS confirms that shutdown is open (`true`). // BMS periodically sends out a CAN message reporting the shutdown state. That state is tracked here. // When this bool is `false`, BMS is indicating that shutdown is open, which is bad. // When this bool is `true`, BMS is indicating that shutdown is closed, meaning that we are in normal operation and everything is good