Add HX to More Battery Info Page

This commit is contained in:
Daniel Öster 2025-08-08 11:29:48 +03:00
parent d31fa7f118
commit c617499da8
3 changed files with 5 additions and 0 deletions

View file

@ -187,6 +187,7 @@ void NissanLeafBattery::
datalayer_nissan->HeatingStop = battery_Heating_Stop;
datalayer_nissan->HeatingStart = battery_Heating_Start;
datalayer_nissan->HeaterSendRequest = battery_Batt_Heater_Mail_Send_Request;
datalayer_nissan->battery_HX = battery_HX;
datalayer_nissan->CryptoChallenge = incomingChallenge;
datalayer_nissan->SolvedChallengeMSB =
((solvedChallenge[7] << 24) | (solvedChallenge[6] << 16) | (solvedChallenge[5] << 8) | solvedChallenge[4]);

View file

@ -40,6 +40,7 @@ class NissanLeafHtmlRenderer : public BatteryHtmlRenderer {
readableBMSID[8] = '\0'; // Null terminate the string
content += "<h4>BMS ID: " + String(readableBMSID) + "</h4>";
content += "<h4>GIDS: " + String(datalayer_extended.nissanleaf.GIDS) + "</h4>";
content += "<h4>HX: " + String(datalayer_extended.nissanleaf.battery_HX) + "</h4>";
content += "<h4>Regen kW: " + String(datalayer_extended.nissanleaf.ChargePowerLimit) + "</h4>";
content += "<h4>Charge kW: " + String(datalayer_extended.nissanleaf.MaxPowerForCharger) + "</h4>";
content += "<h4>Interlock: " + String(datalayer_extended.nissanleaf.Interlock) + "</h4>";

View file

@ -613,6 +613,9 @@ struct DATALAYER_INFO_NISSAN_LEAF {
/** uint16_t */
/** Max regen power in kW */
uint16_t ChargePowerLimit = 0;
/** uint16_t */
/** Internal resistance in percentage */
uint16_t battery_HX = 0;
/** int16_t */
/** Max charge power in kW */
int16_t MaxPowerForCharger = 0;