Tweak plausable SOC% limits

This commit is contained in:
Daniel 2024-02-17 23:36:46 +02:00
parent d4c514f43c
commit a4606d96b2

View file

@ -268,8 +268,8 @@ void update_values_battery() { //This function maps all the values fetched via
} }
//Check if SOC% is plausible //Check if SOC% is plausible
if (battery_voltage > (max_voltage - 100)) { // When pack voltage is close to max, and SOC% is still low, raise FAULT if (battery_voltage > (max_voltage - 20)) { // When pack voltage is close to max, and SOC% is still low, raise FAULT
if (SOC < 6500) { //When SOC is less than 65.00% when approaching max voltage if (SOC < 5000) { //When SOC is less than 65.00% when approaching max voltage
set_event(EVENT_SOC_PLAUSIBILITY_ERROR, SOC / 100); set_event(EVENT_SOC_PLAUSIBILITY_ERROR, SOC / 100);
} }
} }