Distinguishing between OV and UV alerts, inhibit added

- During overvoltage alerts, only power sources (PWM switch and DC/DC are
  switched off), undervoltage only switches load off
- Alert inhibit added to prevent switching off during PWM switch startup
This commit is contained in:
Martin Jaeger
2019-11-05 18:43:33 +01:00
parent 7874b8b4d6
commit 5e3181f5e5
5 changed files with 77 additions and 56 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ int main()
load.state_machine();
adc_set_alerts(); // update regularly to cover changed configurations
// update regularly to cover changed battery configurations
adc_set_lv_alerts(bat_conf.voltage_absolute_max * charger.num_batteries,
bat_conf.voltage_absolute_min * charger.num_batteries);
eeprom_update();