skaman82 / Pocket-Groundstation

The Pocket-Groundstation is a mini ground station that will accept any Fatshark module.
GNU General Public License v3.0
29 stars 4 forks source link

Make battery indicator icon dynamically (OLED+OSD) #8

Closed skaman82 closed 6 years ago

skaman82 commented 6 years ago

100% should be 4.2v and 0% whatever is set as voltage alarm. We basically need a battery_health status instead of the blinkosd parameter to adjust the battery icon on OSD and OLED. Like battery_health

battery_health = 4 > 100% battery_health = 3 > 75% battery_health = 2 > 50% battery_health = 1 > 25% battery_health = 0 > 0% > voltage alarm (buzzer) > OSD icon is blinking