#include <embObjBattery.h>
Definition at line 50 of file embObjBattery.h.
◆ embObjBattery() [1/2]
embObjBattery::embObjBattery |
( |
| ) |
|
◆ embObjBattery() [2/2]
◆ ~embObjBattery()
embObjBattery::~embObjBattery |
( |
| ) |
|
◆ calculateBoardTime()
double embObjBattery::calculateBoardTime |
( |
eOabstime_t |
current | ) |
|
|
virtual |
◆ checkUpdateTimeout()
bool embObjBattery::checkUpdateTimeout |
( |
eOprotID32_t |
id32, |
|
|
eOabstime_t |
current |
|
) |
| |
|
protected |
◆ cleanup()
void embObjBattery::cleanup |
( |
void |
| ) |
|
|
protected |
◆ close()
bool embObjBattery::close |
( |
void |
| ) |
|
◆ getBatteryCharge()
bool embObjBattery::getBatteryCharge |
( |
double & |
charge | ) |
|
|
override |
◆ getBatteryCurrent()
bool embObjBattery::getBatteryCurrent |
( |
double & |
current | ) |
|
|
override |
◆ getBatteryInfo()
bool embObjBattery::getBatteryInfo |
( |
std::string & |
battery_info | ) |
|
|
override |
◆ getBatteryStatus()
bool embObjBattery::getBatteryStatus |
( |
Battery_status & |
status | ) |
|
|
override |
◆ getBatteryTemperature()
bool embObjBattery::getBatteryTemperature |
( |
double & |
temperature | ) |
|
|
override |
◆ getBatteryVoltage()
bool embObjBattery::getBatteryVoltage |
( |
double & |
voltage | ) |
|
|
override |
◆ initialised()
bool embObjBattery::initialised |
( |
| ) |
|
|
overridevirtual |
◆ initRegulars()
◆ open()
bool embObjBattery::open |
( |
yarp::os::Searchable & |
config | ) |
|
◆ sendConfig2boards()
◆ sendStart2boards()
◆ type()
◆ update()
bool embObjBattery::update |
( |
eOprotID32_t |
id32, |
|
|
double |
timestamp, |
|
|
void * |
rxdata |
|
) |
| |
|
overridevirtual |
◆ updateStatusStringStream()
std::string embObjBattery::updateStatusStringStream |
( |
const uint16_t & |
currStatus, |
|
|
const uint16_t & |
prevStatus, |
|
|
bool |
isFirstLoop |
|
) |
| |
|
protected |
◆ canBatteryData_
◆ checkUpdateTimeoutFlag_
constexpr bool yarp::dev::embObjBattery::checkUpdateTimeoutFlag_ {false} |
|
staticconstexprprotected |
◆ device_
◆ firstCanTimestamp_
eOabstime_t yarp::dev::embObjBattery::firstCanTimestamp_ {0} |
|
protected |
◆ firstYarpTimestamp_
double yarp::dev::embObjBattery::firstYarpTimestamp_ {0} |
|
protected |
◆ isCanDataAvailable
bool yarp::dev::embObjBattery::isCanDataAvailable = false |
|
protected |
◆ isPastFirstPrint
bool yarp::dev::embObjBattery::isPastFirstPrint = false |
|
protected |
◆ masStatus_
std::vector<yarp::dev::MAS_status> yarp::dev::embObjBattery::masStatus_ {MAS_OK, MAS_OK, MAS_OK, MAS_OK} |
|
protected |
◆ mutex_
std::shared_mutex yarp::dev::embObjBattery::mutex_ |
|
mutableprotected |
◆ timeoutUpdate_
std::map<eOprotID32_t, eOabstime_t> yarp::dev::embObjBattery::timeoutUpdate_ |
|
protected |
◆ updateTimeout_
constexpr eOabstime_t yarp::dev::embObjBattery::updateTimeout_ {11000} |
|
staticconstexprprotected |
◆ useBoardTimeFlag_
constexpr bool yarp::dev::embObjBattery::useBoardTimeFlag_ {true} |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: