Discharge and load output control improvements

- Charge/discharge control in charger class sets global error flags
- Load state machine analyzes error flags to distinguish reasons for switching load off
- Temperature errors now identified correctly (issue #59)
- Delay before load re-connect after low voltage or overcurrent event now configurable
- Unit tests added
This commit is contained in:
Martin Jaeger
2019-10-24 16:04:32 +02:00
parent 2beb72f1f6
commit 68ae3227cc
11 changed files with 378 additions and 86 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ int main()
eeprom_update();
leds_update_1s();
leds_update_soc(charger.soc, load.switch_state == LOAD_STATE_OFF_LOW_SOC);
leds_update_soc(charger.soc, load.state == LOAD_STATE_OFF_LOW_SOC);
uext_process_1s();
ts_interfaces.process_1s();