Skip to content

Commit e04eb46

Browse files
main but tsms override
1 parent 8e3329f commit e04eb46

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Core/Inc/u_statemachine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef STATE_MACHINE_H
22
#define STATE_MACHINE_H
33

4-
// #define TSMS_OVERRIDE //Uncomment to remove all checks for state machine
4+
#define TSMS_OVERRIDE //Uncomment to remove all checks for state machine
55
// #define IGNORE_FAULT
66

77
#include "u_dti.h"

Core/Src/u_bms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* Globals. */
1313
static _Atomic float battbox_temp;
14-
static _Atomic bool precharge = false; // Default to false until BMS confirms precharge is complete
14+
static _Atomic bool precharge = true; // Default to false until BMS confirms precharge is complete
1515

1616
static void _bms_fault_callback(ULONG args); // Forward declaration
1717

Core/Src/u_shutdown.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "can_messages_tx.h"
1111

1212
/* Bool to track the BMS shutdown state. */
13-
static _Atomic bool bms_shutdown = false; // We should assume that we are shutdown is open (`false`) until BMS confirms that shutdown is open (`true`).
13+
static _Atomic bool bms_shutdown = true; // We should assume that we are shutdown is open (`false`) until BMS confirms that shutdown is open (`true`).
1414
// BMS periodically sends out a CAN message reporting the shutdown state. That state is tracked here.
1515
// When this bool is `false`, BMS is indicating that shutdown is open, which is bad.
1616
// When this bool is `true`, BMS is indicating that shutdown is closed, meaning that we are in normal operation and everything is good

0 commit comments

Comments
 (0)