mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Improvement: ECMP contactor closing (#1177)
* Add contactor closing and diagnostic commands
This commit is contained in:
parent
27ca07c6bb
commit
f44091997f
7 changed files with 2051 additions and 43 deletions
|
@ -28,6 +28,11 @@ std::vector<BatteryCommand> battery_commands = {
|
|||
[](Battery* b) {
|
||||
b->reset_NVROL();
|
||||
}},
|
||||
{"resetContactor", "Perform contactor reset", "reset contactors?",
|
||||
[](Battery* b) { return b && b->supports_contactor_reset(); },
|
||||
[](Battery* b) {
|
||||
b->reset_contactor();
|
||||
}},
|
||||
{"resetDTC", "Erase DTC", "erase DTCs?", [](Battery* b) { return b && b->supports_reset_DTC(); },
|
||||
[](Battery* b) {
|
||||
b->reset_DTC();
|
||||
|
@ -56,6 +61,11 @@ std::vector<BatteryCommand> battery_commands = {
|
|||
[](Battery* b) {
|
||||
b->reset_SOH();
|
||||
}},
|
||||
{"setFactoryMode", "Set Factory Mode", "set factory mode and disable isolation measurement?",
|
||||
[](Battery* b) { return b && b->supports_factory_mode_method(); },
|
||||
[](Battery* b) {
|
||||
b->set_factory_mode();
|
||||
}},
|
||||
{"toggleSOC", "Toggle SOC method",
|
||||
"toggle SOC method? This will toggle between ESTIMATED and MEASURED SOC methods.",
|
||||
[](Battery* b) { return b && b->supports_toggle_SOC_method(); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue