mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Improve contactor logging via USB_DEBUG
This commit is contained in:
parent
0e62e5fc4b
commit
8c3a420ad0
1 changed files with 11 additions and 5 deletions
|
@ -989,16 +989,22 @@ void TeslaBattery::
|
||||||
#ifdef DEBUG_LOG
|
#ifdef DEBUG_LOG
|
||||||
|
|
||||||
printFaultCodesIfActive();
|
printFaultCodesIfActive();
|
||||||
|
logging.print("BMS Contactors State: ");
|
||||||
logging.print(getContactorText(battery_contactor)); // Display what state the contactor is in
|
logging.print(getBMSContactorState(battery_contactor)); // Display what state the BMS thinks the contactors are in
|
||||||
logging.print(", HVIL: ");
|
logging.print(", HVIL: ");
|
||||||
logging.print(getHvilStatusState(battery_hvil_status));
|
logging.print(getHvilStatusState(battery_hvil_status));
|
||||||
logging.print(", NegativeState: ");
|
logging.print(", NegativeState: ");
|
||||||
logging.print(getContactorState(battery_packContNegativeState));
|
logging.print(getContactorState(battery_packContNegativeState));
|
||||||
logging.print(", PositiveState: ");
|
logging.print(", PositiveState: ");
|
||||||
logging.print(getContactorState(battery_packContPositiveState));
|
logging.println(getContactorState(battery_packContPositiveState));
|
||||||
logging.print(", setState: ");
|
logging.print("HVP Contactors setState: ");
|
||||||
logging.print(getContactorState(battery_packContactorSetState));
|
logging.print(
|
||||||
|
getContactorText(battery_packContactorSetState)); // Display what state the HVP has set the contactors to be in
|
||||||
|
logging.print(", Closing blocked: ");
|
||||||
|
logging.print(getNoYes(battery_packCtrsClosingBlocked));
|
||||||
|
if (battery_packContactorSetState == 5) {
|
||||||
|
logging.print(" (already CLOSED)");
|
||||||
|
}
|
||||||
logging.print(", Pyrotest: ");
|
logging.print(", Pyrotest: ");
|
||||||
logging.println(getNoYes(battery_pyroTestInProgress));
|
logging.println(getNoYes(battery_pyroTestInProgress));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue