diff options
author | Julian Oes <julian@oes.ch> | 2013-07-16 09:35:31 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-07-16 09:35:31 +0200 |
commit | 08926019ea4203760a225e957d27328862182ce1 (patch) | |
tree | d4c38d4e286202fc3baac11438f16093e8becc15 /src/modules/commander/commander_helper.h | |
parent | 3e161049ac4e953f8c0084b1872b544de6189f5d (diff) | |
download | px4-firmware-08926019ea4203760a225e957d27328862182ce1.tar.gz px4-firmware-08926019ea4203760a225e957d27328862182ce1.tar.bz2 px4-firmware-08926019ea4203760a225e957d27328862182ce1.zip |
Just some reordering in commander
Diffstat (limited to 'src/modules/commander/commander_helper.h')
-rw-r--r-- | src/modules/commander/commander_helper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/commander/commander_helper.h b/src/modules/commander/commander_helper.h index 71a257c86..c621b9823 100644 --- a/src/modules/commander/commander_helper.h +++ b/src/modules/commander/commander_helper.h @@ -68,4 +68,13 @@ int led_toggle(int led); int led_on(int led); int led_off(int led); +/** + * Provides a coarse estimate of remaining battery power. + * + * The estimate is very basic and based on decharging voltage curves. + * + * @return the estimated remaining capacity in 0..1 + */ +float battery_remaining_estimate_voltage(float voltage); + #endif /* COMMANDER_HELPER_H_ */ |