mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Tweak plausable SOC% limits
This commit is contained in:
parent
d4c514f43c
commit
a4606d96b2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue