Mercurial > public > ostc4
comparison Small_CPU/Inc/batteryCharger.h @ 859:d32901746950 Evo_2_23
Improvment battery charger visualization:
In the previous version the green flash (charge complete) was shown even battery had not reached 100% charge. Root cause was that the pin signaling the end of charge could be raised for other reasons then a full battery. The new version will show the green flash only in case the battery is rated as full.
In addition the graph visualization has been updated to continously progress. In the previous version it only progressed in case the charge value changed. Especially at charging start the charger is doing some battery evaluation which does not increase the charge state. In such a case the graph seemed to be frozen.
author | Ideenmodellierer |
---|---|
date | Tue, 07 May 2024 21:20:33 +0200 |
parents | 1b995079c045 |
children |
comparison
equal
deleted
inserted
replaced
858:08ea8e9d6cfe | 859:d32901746950 |
---|---|
49 Charger_ColdStart, /* Cold start condition => check if an loaded battery has been inserted */ | 49 Charger_ColdStart, /* Cold start condition => check if an loaded battery has been inserted */ |
50 Charger_END | 50 Charger_END |
51 } chargerState_t; | 51 } chargerState_t; |
52 | 52 |
53 | 53 |
54 uint8_t get_charge_status(void); | |
55 void init_battery_charger_status(void); | 54 void init_battery_charger_status(void); |
56 void set_charge_state(chargerState_t newState); | 55 void set_charge_state(chargerState_t newState); |
57 uint8_t get_charge_state(void); | 56 uint8_t get_charge_state(void); |
58 void ReInit_battery_charger_status_pins(void); | 57 void ReInit_battery_charger_status_pins(void); |
59 void DeInit_battery_charger_status_pins(void); | 58 void DeInit_battery_charger_status_pins(void); |