iCub-main
Public Member Functions | Public Attributes | List of all members
CanBatteryData Class Reference

#include <embObjBattery.h>

Public Member Functions

void decode (eOas_battery_timedvalue_t *data, double timestamp)
 
bool operator== (const CanBatteryData &other) const
 
bool operator!= (const CanBatteryData &other) const
 

Public Attributes

int16_t temperature_ {0}
 
float32_t voltage_ {0}
 
float32_t current_ {0}
 
float32_t charge_ {0}
 
uint16_t status_ {0}
 
uint16_t prevStatus_ {0}
 
double timeStamp_ {0}
 
std::string sensorName_ {}
 
eObrd_type_t sensorType_ {eobrd_unknown}
 

Detailed Description

Definition at line 31 of file embObjBattery.h.

Member Function Documentation

◆ decode()

void CanBatteryData::decode ( eOas_battery_timedvalue_t *  data,
double  timestamp 
)

Definition at line 36 of file embObjBattery.cpp.

◆ operator!=()

bool CanBatteryData::operator!= ( const CanBatteryData other) const

Definition at line 475 of file embObjBattery.cpp.

◆ operator==()

bool CanBatteryData::operator== ( const CanBatteryData other) const

Definition at line 453 of file embObjBattery.cpp.

Member Data Documentation

◆ charge_

float32_t CanBatteryData::charge_ {0}

Definition at line 37 of file embObjBattery.h.

◆ current_

float32_t CanBatteryData::current_ {0}

Definition at line 36 of file embObjBattery.h.

◆ prevStatus_

uint16_t CanBatteryData::prevStatus_ {0}

Definition at line 39 of file embObjBattery.h.

◆ sensorName_

std::string CanBatteryData::sensorName_ {}

Definition at line 41 of file embObjBattery.h.

◆ sensorType_

eObrd_type_t CanBatteryData::sensorType_ {eobrd_unknown}

Definition at line 42 of file embObjBattery.h.

◆ status_

uint16_t CanBatteryData::status_ {0}

Definition at line 38 of file embObjBattery.h.

◆ temperature_

int16_t CanBatteryData::temperature_ {0}

Definition at line 34 of file embObjBattery.h.

◆ timeStamp_

double CanBatteryData::timeStamp_ {0}

Definition at line 40 of file embObjBattery.h.

◆ voltage_

float32_t CanBatteryData::voltage_ {0}

Definition at line 35 of file embObjBattery.h.


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