Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/Inc/u_statemachine.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Core/Src/u_bms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Core/Src/u_shutdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading