Add battery closing allowed flag on startup

This commit is contained in:
Daniel Öster 2025-05-06 08:39:59 +03:00
parent 5e03d9c812
commit f47ac9e411
15 changed files with 14 additions and 7 deletions

View file

@ -69,6 +69,7 @@ void setup_battery(void) { // Performs one time setup at startup
datalayer.battery.info.max_cell_voltage_mV = MAX_CELL_VOLTAGE_MV;
datalayer.battery.info.min_cell_voltage_mV = MIN_CELL_VOLTAGE_MV;
datalayer.battery.info.total_capacity_Wh = BATTERY_WH_MAX;
datalayer.system.status.battery_allows_contactor_closing = true;
}
uint8_t calculate_checksum(uint8_t buff[12]) {