Represents a single Charger.
More...
#include <Charger.h>
|
void | setComId (const ComId &id) |
|
void | setChargerNumber (int number) |
|
int | chargerNumber () const |
|
void | clearError () |
|
unsigned int | time () const |
|
float | batteryVoltage () const |
|
float | chargingCurrent () const |
|
float | bat1temp () const |
|
float | bat2temp () const |
|
int | state_number () const |
|
const char * | state () const |
|
void | version (int *major, int *minor, int *patch) const |
|
virtual void | chargerInfoChanged (unsigned int time, float batteryVoltage, float chargingCurrent, float bat1temp, float bat2temp, int state_number, const char *state) |
|
virtual void | chargerErrorChanged (unsigned int time, const char *message) |
|
virtual void | chargerVersionChanged (int major, int minor, int patch) |
|
| ComObject () |
|
virtual | ~ComObject () |
|
ComId | comId () const |
|
Represents a single Charger.
float rec::robotino::api2::Charger::bat1temp |
( |
| ) |
const |
Temperature of battery 1.
- Returns
- Temperature in °C.
- Exceptions
-
float rec::robotino::api2::Charger::bat2temp |
( |
| ) |
const |
Temperature of battery 2.
- Returns
- Temperature in °C.
- Exceptions
-
float rec::robotino::api2::Charger::batteryVoltage |
( |
| ) |
const |
Battery voltage measured by the charger.
- Returns
- Battery voltage in Volts.
- Exceptions
-
virtual void rec::robotino::api2::Charger::chargerInfoChanged |
( |
unsigned int |
time, |
|
|
float |
batteryVoltage, |
|
|
float |
chargingCurrent, |
|
|
float |
bat1temp, |
|
|
float |
bat2temp, |
|
|
int |
state_number, |
|
|
const char * |
state |
|
) |
| |
|
virtual |
Called when new info are available.
- Parameters
-
time | Charger time in seconds |
batteryVoltage | Voltage of the battery attached to the charger in V. |
chargingCurrent | Charging current in A. |
bat1temp | Temperature of battery 1 in °C. |
bat2temp | Temperature of battery 2 in °C. |
state_number | Charger state |
state | Charger state string representation |
- See also
- Com::processEvents
int rec::robotino::api2::Charger::chargerNumber |
( |
| ) |
const |
Get the current charger number
- Returns
- Charger number
- Exceptions
-
float rec::robotino::api2::Charger::chargingCurrent |
( |
| ) |
const |
Charging current.
- Returns
- Charging current in A.
- Exceptions
-
void rec::robotino::api2::Charger::clearError |
( |
| ) |
|
static unsigned int rec::robotino::api2::Charger::numChargers |
( |
| ) |
|
|
static |
- Returns
- Returns the maximum number of chargers on Robotino
- Exceptions
-
void rec::robotino::api2::Charger::setChargerNumber |
( |
int |
number | ) |
|
Sets the number of this Charger.
- Parameters
-
- Exceptions
-
void rec::robotino::api2::Charger::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
const char* rec::robotino::api2::Charger::state |
( |
| ) |
const |
The current charger state as human readable string.
- Returns
- State in string representation.
- Exceptions
-
int rec::robotino::api2::Charger::state_number |
( |
| ) |
const |
The current charger state as a number.
- Returns
- The state.
- Exceptions
-
unsigned int rec::robotino::api2::Charger::time |
( |
| ) |
const |
Retrieves the actual speed of this Charger.
- Returns
- Internal time of charger modulo 0xFFFF in seconds.
- Exceptions
-
The documentation for this class was generated from the following file:
- C:/srcs/git/openrobotino/api2/lib/rec/robotino/api2/Charger.h