diff --git a/Software/Software.ino b/Software/Software.ino index c627f90f..588aa5e0 100644 --- a/Software/Software.ino +++ b/Software/Software.ino @@ -744,6 +744,7 @@ void handle_contactors() { if (timeSpentInFaultedMode > MAX_ALLOWED_FAULT_TICKS || (datalayer.system.settings.equipment_stop_active && contactorStatus != SHUTDOWN_REQUESTED)) { contactorStatus = SHUTDOWN_REQUESTED; + datalayer.system.settings.equipment_stop_active = true; } if (contactorStatus == SHUTDOWN_REQUESTED && !datalayer.system.settings.equipment_stop_active) { contactorStatus = DISCONNECTED; diff --git a/Software/src/devboard/webserver/webserver.cpp b/Software/src/devboard/webserver/webserver.cpp index 52568271..beae4c47 100644 --- a/Software/src/devboard/webserver/webserver.cpp +++ b/Software/src/devboard/webserver/webserver.cpp @@ -719,6 +719,27 @@ String processor(const String& var) { content += "OFF"; } content += ""; + + content += "

Pre Charge: "; + if (digitalRead(PRECHARGE_PIN) == HIGH) { + content += ""; + } else { + content += ""; + } + content += " Cont. Neg.: "; + if (digitalRead(NEGATIVE_CONTACTOR_PIN) == HIGH) { + content += ""; + } else { + content += ""; + } + + content += " Cont. Pos.: "; + if (digitalRead(POSITIVE_CONTACTOR_PIN) == HIGH) { + content += ""; + } else { + content += ""; + } + content += "

"; #endif // Close the block