mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 01:39:30 +02:00
Change contactor closing condition from 20 to 7 frames
This commit is contained in:
parent
24c1ce73ae
commit
6982476e89
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ void KostalInverterProtocol::update_values() {
|
||||||
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 18); // Last current
|
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 18); // Last current
|
||||||
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 22); // Should be Avg current(1s)
|
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 22); // Should be Avg current(1s)
|
||||||
|
|
||||||
// Close contactors after 20 battery info frames requested
|
// Close contactors after 7 battery info frames requested
|
||||||
if (f2_startup_count > 20) {
|
if (f2_startup_count > 7) {
|
||||||
datalayer.system.status.inverter_allows_contactor_closing = true;
|
datalayer.system.status.inverter_allows_contactor_closing = true;
|
||||||
dbg_message("inverter_allows_contactor_closing -> true (info frame)");
|
dbg_message("inverter_allows_contactor_closing -> true (info frame)");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue