Skip to content

Commit 1b22a1e

Browse files
committed
Removed TPDO_NODE_ID variable and made logger messages more descriptive
1 parent 3f8cac9 commit 1b22a1e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

include/LVSS.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class LVSS : public CANDevice {
8686
};
8787

8888
static constexpr uint8_t NODE_ID = 1;
89-
static constexpr uint8_t TPDO_NODE_ID = 1;
9089
static constexpr uint8_t VCU_NODE_ID = 0;
9190
static constexpr io::Pin VICOR_FAULT_PIN = io::Pin::PB_4;
9291
static constexpr io::Pin VICOR_SNS_PIN = io::Pin::PA_4;

src/LVSS.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ void LVSS::runningState() {
109109

110110
log::LOGGER.log(
111111
log::Logger::LogLevel::DEBUG,
112-
"Switch 0 Channel 1 Current: %d\r\nSwitch 1 Channel 1 Current: %d\r\nSwitch 2 Channel 1 Current: %d\r\n",
112+
"Switch 0 Channel 1 Current: %d microAmps\r\nSwitch 1 Channel 1 Current: %d microAmps\r\nSwitch 2 Channel 1 Current:"
113+
" %d microAmps\r\n",
113114
PowerSwitchState.battCurrent,
114115
PowerSwitchState.tmsCurrent,
115116
PowerSwitchState.accCurrent);
@@ -149,7 +150,7 @@ void LVSS::runningState() {
149150

150151
log::LOGGER.log(
151152
log::Logger::LogLevel::DEBUG,
152-
"Switch 0 Channel 2 Current: %d\r\nSwitch 1 Channel 2 Current: %d\r\nSwitch 2 Channel 2 Current: %d\r\n",
153+
"Switch 0 Channel 2 Current: %d microAmps\r\nSwitch 1 Channel 2 Current: %d microAmps\r\nSwitch 2 Channel 2 Current: %d microAmps\r\n",
153154
PowerSwitchState.hibCurrent,
154155
PowerSwitchState.hudlCurrent,
155156
PowerSwitchState.gubCurrent);
@@ -189,7 +190,8 @@ void LVSS::runningState() {
189190
PowerSwitchFaults.switch2TempFault);
190191

191192
log::LOGGER.log(log::Logger::LogLevel::DEBUG,
192-
"Switch 0 Temperature: %d\r\nSwitch 1 Temperature: %d\r\nSwitch 2 Temperature: %d\r\n",
193+
"Switch 0 Temperature: %d milliCelsius\r\nSwitch 1 Temperature: %d milliCelsius\r\nSwitch 2 Temperature: "
194+
"%d milliCelsius\r\n",
193195
PowerSwitchState.switch0Temp,
194196
PowerSwitchState.switch1Temp,
195197
PowerSwitchState.switch2Temp);

0 commit comments

Comments
 (0)