Skip to content

Commit

Permalink
Revert "Add SOC% plausibility detection"
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsc authored Nov 22, 2023
1 parent 375d3a8 commit 962ab1a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Software/src/battery/NISSAN-LEAF-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 962ab1a

Please sign in to comment.