mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7743511f8a
commit
903d44904d
3 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ class KiaEGmpBattery : public CanBattery {
|
||||||
int get_batteryManagementMode() const;
|
int get_batteryManagementMode() const;
|
||||||
int get_BMS_ign() const;
|
int get_BMS_ign() const;
|
||||||
int get_batRelay() const;
|
int get_batRelay() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
KiaEGMPHtmlRenderer renderer;
|
KiaEGMPHtmlRenderer renderer;
|
||||||
uint16_t estimateSOC(uint16_t packVoltage, uint16_t cellCount, int16_t currentAmps);
|
uint16_t estimateSOC(uint16_t packVoltage, uint16_t cellCount, int16_t currentAmps);
|
||||||
|
|
|
@ -13,4 +13,4 @@ String KiaEGMPHtmlRenderer::get_status_html() {
|
||||||
content += "<h4>BMS ignition: " + String(batt.get_BMS_ign()) + "</h4>";
|
content += "<h4>BMS ignition: " + String(batt.get_BMS_ign()) + "</h4>";
|
||||||
content += "<h4>Battery relay: " + String(batt.get_batRelay()) + "</h4>";
|
content += "<h4>Battery relay: " + String(batt.get_batRelay()) + "</h4>";
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
class KiaEGmpBattery;
|
class KiaEGmpBattery;
|
||||||
|
|
||||||
class KiaEGMPHtmlRenderer : public BatteryHtmlRenderer {
|
class KiaEGMPHtmlRenderer : public BatteryHtmlRenderer {
|
||||||
private:
|
private:
|
||||||
KiaEGmpBattery& batt;
|
KiaEGmpBattery& batt;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
KiaEGMPHtmlRenderer(KiaEGmpBattery& b) : batt(b) {}
|
KiaEGMPHtmlRenderer(KiaEGmpBattery& b) : batt(b) {}
|
||||||
String get_status_html();
|
String get_status_html();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue