next up previous contents
Next: 6.22 ptz Up: 6. Device Interfaces Previous: 6.20 position3d   Contents

Subsections


6.21 power

Synopsis

The power interface provides access to a robot's power subsystem.

Constants

#define PLAYER_MAIN_POWER_REQ ((uint8_t)14)
what does this do?

Data



struct player_power_data : The power device returns data in the format:

uint16_t charge;
Battery voltage, in decivolts

Commands

This interface accepts no commands

Configuration: Request power



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.



2004-06-02