30 #ifndef _REC_ROBOTINO_API2_POWERMANAGEMENT_H_ 31 #define _REC_ROBOTINO_API2_POWERMANAGEMENT_H_ 33 #include "rec/robotino/api2/defines.h" 34 #include "rec/robotino/api2/ComObject.h" 42 class PowerManagementImpl;
47 #ifdef REC_ROBOTINO_API2_CLASS_ATTRIBUTE 48 REC_ROBOTINO_API2_CLASS_ATTRIBUTE
52 friend class PowerManagementImpl;
67 void setComId(
const ComId&
id );
83 float current()
const;
91 float voltage()
const;
93 bool ext_power()
const;
95 int num_chargers()
const;
97 const char* batteryType()
const;
99 bool batteryLow()
const;
101 int batteryLowShutdownCounter()
const;
110 virtual void readingsEvent(
float battery_voltage,
float system_current,
bool ext_power,
int num_chargers,
const char* batteryType,
bool batteryLow,
int batteryLowShutdownCounter );
113 PowerManagementImpl* _impl;
The base class for all Robotino objects.
Definition: ComObject.h:44
Definition: AnalogInput.h:36
Represents the power management of Robotino.
Definition: PowerManagement.h:46
The id of a Com object.
Definition: ComId.h:48