Class DataPowerSystem

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class DataPowerSystem : public clearpath::Message

Public Functions

DataPowerSystem(void *input, size_t msg_len)
DataPowerSystem(const DataPowerSystem &other)
uint8_t getBatteryCount()
double getChargeEstimate(uint8_t battery)
int16_t getCapacityEstimate(uint8_t battery)
BatteryDescription getDescription(uint8_t battery)
virtual std::ostream &printMessage(std::ostream &stream = std::cout)

Public Static Functions

static DataPowerSystem *popNext()
static DataPowerSystem *waitNext(double timeout = 0)
static DataPowerSystem *getUpdate(double timeout = 0)
static void subscribe(uint16_t freq)
static enum MessageTypes getTypeID()
class BatteryDescription

Public Types

enum Types

Values:

enumerator EXTERNAL
enumerator LEAD_ACID
enumerator NIMH
enumerator GASOLINE

Public Functions

inline BatteryDescription(uint8_t desc)
inline bool isPresent()
inline bool isInUse()
inline enum Types getType()

Public Members

uint8_t rawDesc