Fix more compilation errors after refactoring

This commit is contained in:
Daniel 2024-02-19 14:20:42 +02:00
parent c3852d09fc
commit 6a04d59e29
2 changed files with 3 additions and 3 deletions

View file

@ -102,7 +102,7 @@ void update_values_battery() { //This function maps all the values fetched via
system_capacity_Wh = ((RatedBatteryCapacity / 0.11) * system_capacity_Wh = ((RatedBatteryCapacity / 0.11) *
1000); //(Added in CHAdeMO v1.0.1), maybe handle hardcoded on lower protocol version? 1000); //(Added in CHAdeMO v1.0.1), maybe handle hardcoded on lower protocol version?
system_remaining_capacity_Wh = (SOC / 100) * capacity_Wh; system_remaining_capacity_Wh = (system_real_SOC_pptt / 100) * system_capacity_Wh;
/* Check if the Vehicle is still sending CAN messages. If we go 60s without messages we raise an error*/ /* Check if the Vehicle is still sending CAN messages. If we go 60s without messages we raise an error*/
if (!CANstillAlive) { if (!CANstillAlive) {

View file

@ -205,10 +205,10 @@ void update_values_battery() { //This function maps all the values fetched via
// Check if cell voltages are within allowed range // Check if cell voltages are within allowed range
cell_deviation_mV = (system_cell_max_voltage_mV - system_cell_min_voltage_mV); cell_deviation_mV = (system_cell_max_voltage_mV - system_cell_min_voltage_mV);
if (cell_max_voltage >= MAX_CELL_VOLTAGE) { if (CellVoltMax_mV >= MAX_CELL_VOLTAGE) {
set_event(EVENT_CELL_OVER_VOLTAGE, 0); set_event(EVENT_CELL_OVER_VOLTAGE, 0);
} }
if (cell_min_voltage <= MIN_CELL_VOLTAGE) { if (CellVoltMin_mV <= MIN_CELL_VOLTAGE) {
set_event(EVENT_CELL_UNDER_VOLTAGE, 0); set_event(EVENT_CELL_UNDER_VOLTAGE, 0);
} }
if (cell_deviation_mV > MAX_CELL_DEVIATION) { if (cell_deviation_mV > MAX_CELL_DEVIATION) {