Add fire alarm handling for DC30 CCS main controller.

Latch fire alarm until reboot, block recovery commands, and send periodic Everest ESTOP while active.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
raduet
2026-06-10 16:01:22 +02:00
parent 1be17330fa
commit fb766dfa66
18 changed files with 3766 additions and 4113 deletions
+5
View File
@@ -1,4 +1,5 @@
#include "rgb_controller.h"
#include "fire_alarm.h"
#include "main.h"
#include "string.h"
#include "charger_control.h"
@@ -100,6 +101,10 @@ RGB_Cycle_t color_error = {
};
void LED_Write(){
if(FireAlarm_IsLatched() || CONN.chargingError == CONN_ERR_FIRE_ALARM){
LED_SetColor(&color_error);
return;
}
if(CONN.chargingError != CONN_NO_ERROR){
LED_SetColor(&color_error);
return;