libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Battery

Functions

int battery_charging ()
 
float power_level ()
 
float power_level_nimh ()
 
float power_level_lipo ()
 
float power_level_life ()
 

Detailed Description

Function Documentation

int battery_charging ( )

Whether or not the battery is charging

Returns
0: not charging 1: charging
Deprecated:
not applicable for the Wallaby controller
float power_level ( )

The device's power level

Returns
The device's current battery capacity 0: 0% 1: 100%
Note
defaults to LiFePO4 chemistry
float power_level_life ( )

The device's power level (LiFePO4 chemistry)

Returns
The device's current battery capacity 0: 0% 1: 100%
See also
power_level()
float power_level_lipo ( )

The device's power level (LiPo chemistry)

Returns
The device's current battery capacity 0: 0% 1: 100%
float power_level_nimh ( )

The device's power level (NiMH chemistry)

Returns
The device's current battery capacity 0: 0% 1: 100%