The power interface provides access to a robot's power subsystem.
#define PLAYER_MAIN_POWER_REQ ((uint8_t)14) |
what does this do?
struct player_power_data : The power device returns data in the format:
uint16_t charge; |
Battery voltage, in decivolts
struct player_power_config : Packet for requesting power config - replies with a player_power_data_t
uint8_t subtype; |
Packet subtype. Must be PLAYER_MAIN_POWER_REQ.