Use real soc for time calc

This commit is contained in:
Carsten Schmiemann 2022-04-23 16:06:43 +02:00
parent 8dbb93fdbb
commit f14966b34d
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ void OvmsVehicleRenaultZoePh2::IncomingPollReply(canbus* bus, uint16_t type, uin
}
int OvmsVehicleRenaultZoePh2::calcMinutesRemaining(float charge_voltage, float charge_current) {
float bat_soc = StandardMetrics.ms_v_bat_soc->AsFloat(100);
float bat_soc = mt_bat_lbc_soc->AsFloat(100);
float remaining_wh = m_battery_capacity * bat_soc / 100.0;
float remaining_hours = remaining_wh / (charge_current * charge_voltage);