iCub-main
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
BmsBattery Class Reference

#include <bmsBattery.h>

+ Inheritance diagram for BmsBattery:

Public Member Functions

 BmsBattery (int period=20)
 
 ~BmsBattery ()
 
virtual bool open (yarp::os::Searchable &config)
 
virtual bool close ()
 
virtual bool getBatteryVoltage (double &voltage)
 
virtual bool getBatteryCurrent (double &current)
 
virtual bool getBatteryCharge (double &charge)
 
virtual bool getBatteryStatus (Battery_status &status)
 
virtual bool getBatteryInfo (std::string &info)
 
virtual bool getBatteryTemperature (double &temperature)
 
virtual bool threadInit ()
 
virtual void threadRelease ()
 
virtual void run ()
 

Protected Attributes

std::mutex mtx
 
unsigned short batteryId
 
short status
 
double timeStamp
 
yarp::sig::Vector data
 
double battery_charge
 
double battery_voltage
 
double battery_current
 
double battery_temperature
 
std::string battery_info
 
unsigned char backpack_status
 
bool verboseEnable
 
bool screenEnable
 
bool debugEnable
 
ResourceFinder rf
 
PolyDriver driver
 
ISerialDevice * pSerial
 
char serial_buff [255]
 
std::string remoteName
 
std::string localName
 

Detailed Description

Definition at line 21 of file bmsBattery.h.

Constructor & Destructor Documentation

◆ BmsBattery()

BmsBattery::BmsBattery ( int  period = 20)
inline

Definition at line 49 of file bmsBattery.h.

◆ ~BmsBattery()

BmsBattery::~BmsBattery ( )
inline

Definition at line 53 of file bmsBattery.h.

Member Function Documentation

◆ close()

bool BmsBattery::close ( )
virtual

Definition at line 79 of file bmsBattery.cpp.

◆ getBatteryCharge()

bool BmsBattery::getBatteryCharge ( double &  charge)
virtual

Definition at line 192 of file bmsBattery.cpp.

◆ getBatteryCurrent()

bool BmsBattery::getBatteryCurrent ( double &  current)
virtual

Definition at line 185 of file bmsBattery.cpp.

◆ getBatteryInfo()

bool BmsBattery::getBatteryInfo ( std::string &  info)
virtual

Definition at line 211 of file bmsBattery.cpp.

◆ getBatteryStatus()

bool BmsBattery::getBatteryStatus ( Battery_status &  status)
virtual

Definition at line 199 of file bmsBattery.cpp.

◆ getBatteryTemperature()

bool BmsBattery::getBatteryTemperature ( double &  temperature)
virtual

Definition at line 205 of file bmsBattery.cpp.

◆ getBatteryVoltage()

bool BmsBattery::getBatteryVoltage ( double &  voltage)
virtual

Definition at line 178 of file bmsBattery.cpp.

◆ open()

bool BmsBattery::open ( yarp::os::Searchable &  config)
virtual

Definition at line 20 of file bmsBattery.cpp.

◆ run()

void BmsBattery::run ( )
virtual

Definition at line 109 of file bmsBattery.cpp.

◆ threadInit()

bool BmsBattery::threadInit ( )
virtual

Definition at line 90 of file bmsBattery.cpp.

◆ threadRelease()

void BmsBattery::threadRelease ( )
virtual

Definition at line 218 of file bmsBattery.cpp.

Member Data Documentation

◆ backpack_status

unsigned char BmsBattery::backpack_status
protected

Definition at line 35 of file bmsBattery.h.

◆ battery_charge

double BmsBattery::battery_charge
protected

Definition at line 30 of file bmsBattery.h.

◆ battery_current

double BmsBattery::battery_current
protected

Definition at line 32 of file bmsBattery.h.

◆ battery_info

std::string BmsBattery::battery_info
protected

Definition at line 34 of file bmsBattery.h.

◆ battery_temperature

double BmsBattery::battery_temperature
protected

Definition at line 33 of file bmsBattery.h.

◆ battery_voltage

double BmsBattery::battery_voltage
protected

Definition at line 31 of file bmsBattery.h.

◆ batteryId

unsigned short BmsBattery::batteryId
protected

Definition at line 26 of file bmsBattery.h.

◆ data

yarp::sig::Vector BmsBattery::data
protected

Definition at line 29 of file bmsBattery.h.

◆ debugEnable

bool BmsBattery::debugEnable
protected

Definition at line 39 of file bmsBattery.h.

◆ driver

PolyDriver BmsBattery::driver
protected

Definition at line 42 of file bmsBattery.h.

◆ localName

std::string BmsBattery::localName
protected

Definition at line 46 of file bmsBattery.h.

◆ mtx

std::mutex BmsBattery::mtx
protected

Definition at line 24 of file bmsBattery.h.

◆ pSerial

ISerialDevice* BmsBattery::pSerial
protected

Definition at line 43 of file bmsBattery.h.

◆ remoteName

std::string BmsBattery::remoteName
protected

Definition at line 45 of file bmsBattery.h.

◆ rf

ResourceFinder BmsBattery::rf
protected

Definition at line 41 of file bmsBattery.h.

◆ screenEnable

bool BmsBattery::screenEnable
protected

Definition at line 38 of file bmsBattery.h.

◆ serial_buff

char BmsBattery::serial_buff[255]
protected

Definition at line 44 of file bmsBattery.h.

◆ status

short BmsBattery::status
protected

Definition at line 27 of file bmsBattery.h.

◆ timeStamp

double BmsBattery::timeStamp
protected

Definition at line 28 of file bmsBattery.h.

◆ verboseEnable

bool BmsBattery::verboseEnable
protected

Definition at line 37 of file bmsBattery.h.


The documentation for this class was generated from the following files: