From 962ab1ad9cf8e098c1e2690bf3f5f82e737bf74d Mon Sep 17 00:00:00 2001 From: rjsc Date: Wed, 22 Nov 2023 22:59:40 +0000 Subject: [PATCH] Revert "Add SOC% plausibility detection" --- Software/src/battery/NISSAN-LEAF-BATTERY.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Software/src/battery/NISSAN-LEAF-BATTERY.cpp b/Software/src/battery/NISSAN-LEAF-BATTERY.cpp index 8efabf07..1902500b 100644 --- a/Software/src/battery/NISSAN-LEAF-BATTERY.cpp +++ b/Software/src/battery/NISSAN-LEAF-BATTERY.cpp @@ -241,15 +241,6 @@ void update_values_leaf_battery() { /* This function maps all the values fetched max_target_discharge_power = 0; } - //Check if SOC% is plausible - if (battery_voltage > - (ABSOLUTE_MAX_VOLTAGE - 100)) { // When pack voltage is close to max, and SOC% is still low, raise FAULT - if (LB_SOC < 650) { - bms_status = FAULT; - Serial.println("ERROR: SOC% reported by battery not plausible. Restart battery!"); - } - } - if (LB_Full_CHARGE_flag) { //Battery reports that it is fully charged stop all further charging incase it hasn't already max_target_charge_power = 0; }