mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Add configurable option for estimated SOC
This commit is contained in:
parent
3ead4d12d4
commit
15143d1384
7 changed files with 33 additions and 15 deletions
|
@ -251,6 +251,10 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
|
|||
return settings.getBool("DBLBTR") ? "checked" : "";
|
||||
}
|
||||
|
||||
if (var == "SOCESTIMATED") {
|
||||
return settings.getBool("SOCESTIMATED") ? "checked" : "";
|
||||
}
|
||||
|
||||
if (var == "CNTCTRL") {
|
||||
return settings.getBool("CNTCTRL") ? "checked" : "";
|
||||
}
|
||||
|
@ -912,6 +916,11 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
display: contents;
|
||||
}
|
||||
|
||||
form .if-socestimated { display: none; } /* Integrations where you can turn on SOC estimation */
|
||||
form[data-battery="16"] .if-socestimated {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
form .if-dblbtr { display: none; }
|
||||
form[data-dblbtr="true"] .if-dblbtr {
|
||||
display: contents;
|
||||
|
@ -1022,6 +1031,11 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
<input name='DCHGPOWER' pattern="^[0-9]+$" type='text' value='%DCHGPOWER%' />
|
||||
</div>
|
||||
|
||||
<div class="if-socestimated">
|
||||
<label>Use estimated SOC: </label>
|
||||
<input type='checkbox' name='SOCESTIMATED' value='on' %SOCESTIMATED% />
|
||||
</div>
|
||||
|
||||
<div class="if-battery">
|
||||
<label for='BATTCOMM'>Battery interface: </label><select name='BATTCOMM' id='BATTCOMM'>
|
||||
%BATTCOMM%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue