30 #ifndef _REC_ROBOTINO_API2_Charger_H_ 31 #define _REC_ROBOTINO_API2_Charger_H_ 33 #include "rec/robotino/api2/defines.h" 34 #include "rec/robotino/api2/ComObject.h" 48 #ifdef REC_ROBOTINO_API2_CLASS_ATTRIBUTE 49 REC_ROBOTINO_API2_CLASS_ATTRIBUTE
53 friend class ChargerImpl;
64 static unsigned int numChargers();
73 void setComId(
const ComId&
id );
82 void setChargerNumber(
int number );
91 int chargerNumber()
const;
108 unsigned int time()
const;
117 float batteryVoltage()
const;
125 float chargingCurrent()
const;
133 float bat1temp()
const;
141 float bat2temp()
const;
149 int state_number()
const;
157 const char* state()
const;
159 void version(
int* major,
int* minor,
int* patch )
const;
173 virtual void chargerInfoChanged(
unsigned int time,
float batteryVoltage,
float chargingCurrent,
float bat1temp,
float bat2temp,
int state_number,
const char* state );
175 virtual void chargerErrorChanged(
unsigned int time,
const char* message );
177 virtual void chargerVersionChanged(
int major,
int minor,
int patch );
The base class for all Robotino objects.
Definition: ComObject.h:44
Definition: AnalogInput.h:36
Represents a single Charger.
Definition: Charger.h:47
The id of a Com object.
Definition: ComId.h:48