mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
disable setting yellow led for kwh implausible model 3
This commit is contained in:
parent
a928ed1cea
commit
ce0e52142a
1 changed files with 5 additions and 2 deletions
|
@ -266,10 +266,13 @@ void update_values_tesla_model_3_battery() { //This function maps all the value
|
|||
}
|
||||
|
||||
//Check if BMS is in need of recalibration
|
||||
if (nominal_full_pack_energy < REASONABLE_ENERGYAMOUNT) {
|
||||
Serial.println("Warning: kWh remaining reported by battery not plausible. Battery needs cycling.");
|
||||
if (nominal_full_pack_energy > 1 &&nominal_full_pack_energy < REASONABLE_ENERGYAMOUNT) {
|
||||
Serial.println("Warning: kWh remaining " + String(nominal_full_pack_energy) + " reported by battery not plausible. Battery needs cycling.");
|
||||
set_event(EVENT_KWH_PLAUSIBILITY_ERROR, nominal_full_pack_energy);
|
||||
LEDcolor = YELLOW;
|
||||
} else if (nominal_full_pack_energy <= 1) {
|
||||
Serial.println("Info: kWh remaining battery is not reporting kWh remaining.");
|
||||
set_event(EVENT_KWH_PLAUSIBILITY_ERROR, nominal_full_pack_energy);
|
||||
}
|
||||
|
||||
if (LFP_Chemistry) { //LFP limits used for voltage safeties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue