mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add start for MysteryVan More Info page
This commit is contained in:
parent
30a7b9d90e
commit
fd2e5f2e52
3 changed files with 69 additions and 0 deletions
|
@ -383,6 +383,58 @@ class EcmpHtmlRenderer : public BatteryHtmlRenderer {
|
|||
: String(datalayer_extended.stellantisECMP.pid_SOH_cell_1)) +
|
||||
"</h4>";
|
||||
|
||||
if (datalayer_extended.stellantisECMP.MysteryVan) {
|
||||
content += "<h4>MysteryVan platform detected: </h4>";
|
||||
content += "<h4>Crash Memorized: ";
|
||||
if (datalayer_extended.stellantisECMP.CrashMemorized == 255) {
|
||||
content += "Yes</h4>";
|
||||
} else {
|
||||
content += "No</h4>";
|
||||
}
|
||||
content += "<h4>Contactor Opening Reason: ";
|
||||
if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 0) {
|
||||
content += "No error";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 1) {
|
||||
content += "Crash!";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 2) {
|
||||
content += "12V supply source undervoltage";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 3) {
|
||||
content += "12V supply source overvoltage";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 4) {
|
||||
content += "Battery temperature";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 5) {
|
||||
content += "Interlock line open";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTOR_OPENING_REASON == 6) {
|
||||
content += "e-Service plug disconnected";
|
||||
}
|
||||
content += "</h4>";
|
||||
content += "<h4>Battery fault type: ";
|
||||
if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 0) {
|
||||
content += "No fault";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 1) {
|
||||
content += "FirstLevelFault: Warning Lamp";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 2) {
|
||||
content += "SecondLevelFault: Stop Lamp";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 3) {
|
||||
content += "ThirdLevelFault: Stop Lamp + contactor opening (EPS shutdown)";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 4) {
|
||||
content += "FourthLevelFault: Stop Lamp + Active Discharge";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 5) {
|
||||
content += "Inhibition of powertrain activation";
|
||||
} else if (datalayer_extended.stellantisECMP.TBMU_FAULT_TYPE == 6) {
|
||||
content += "Reserved";
|
||||
}
|
||||
content += "</h4>";
|
||||
content += "<h4>FC insulation minus resistance " +
|
||||
String(datalayer_extended.stellantisECMP.HV_BATT_FC_INSU_MINUS_RES) + " kOhm</h4>";
|
||||
content += "<h4>FC insulation plus resistance " +
|
||||
String(datalayer_extended.stellantisECMP.HV_BATT_FC_INSU_PLUS_RES) + " kOhm</h4>";
|
||||
content += "<h4>FC vehicle insulation plus resistance " +
|
||||
String(datalayer_extended.stellantisECMP.HV_BATT_FC_VHL_INSU_PLUS_RES) + " kOhm</h4>";
|
||||
content += "<h4>FC vehicle insulation plus resistance " +
|
||||
String(datalayer_extended.stellantisECMP.HV_BATT_ONLY_INSU_MINUS_RES) + " kOhm</h4>";
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue