player_power_data Struct Reference

#include <player_interfaces.h>

List of all members.


Detailed Description

Data: voltage (PLAYER_POWER_DATA_STATE).

The power interface returns data in this format.

Definition at line 4540 of file player_interfaces.h.


Public Attributes

uint32_t valid
 Status bits.
float volts
 Battery voltage [V].
float percent
 Percent of full charge [%].
float joules
 energy stored [J].
float watts
 estimated current energy consumption (negative values) or aquisition (positive values) [W].
int32_t charging
 charge exchange status: if 1, the device is currently receiving charge from another energy device.

Member Data Documentation

Status bits.

The driver will set the bits to indicate which fields it is using. Bitwise-and with PLAYER_POWER_MASK_X values to see which fields are being set.

Definition at line 4545 of file player_interfaces.h.

Referenced by erSIP::Fill(), ErraticMotorPacket::Fill(), SIP::FillStandard(), and GarciaDriver::RefreshData().

charge exchange status: if 1, the device is currently receiving charge from another energy device.

If -1 the device is currently providing charge to another energy device. If 0, the device is not exchanging charge with an another device.

Definition at line 4560 of file player_interfaces.h.


The documentation for this struct was generated from the following file:

Last updated 12 September 2005 21:38:45