#include <Battery.h>

Public Member Functions | |
| Battery (byte id, float voltageDividerRatio, float max, float min, byte batteryPin, TransportLayer *transportLayer) | |
| virtual void | buildDevice () |
| virtual void | deviceAck (const DeviceAck *ack) |
| virtual void | update (const DeviceMessage *deviceMessage) |
| virtual void | write () |
Private Attributes | |
| byte | _batteryPin |
| float | _currentRead |
| float | _max |
| float | _min |
| ros::Publisher | _pub |
| float | _voltageDividerRatio |
| robotican_hardware::Battery::Battery | ( | byte | id, |
| float | voltageDividerRatio, | ||
| float | max, | ||
| float | min, | ||
| byte | batteryPin, | ||
| TransportLayer * | transportLayer | ||
| ) |
Definition at line 25 of file Battery.cpp.
| void robotican_hardware::Battery::buildDevice | ( | ) | [virtual] |
Implements robotican_hardware::Device.
Definition at line 34 of file Battery.cpp.
| void robotican_hardware::Battery::deviceAck | ( | const DeviceAck * | ack | ) | [virtual] |
Reimplemented from robotican_hardware::Device.
Definition at line 47 of file Battery.cpp.
| void robotican_hardware::Battery::update | ( | const DeviceMessage * | deviceMessage | ) | [virtual] |
Implements robotican_hardware::Device.
Definition at line 13 of file Battery.cpp.
| void robotican_hardware::Battery::write | ( | ) | [virtual] |
Implements robotican_hardware::Device.
Definition at line 9 of file Battery.cpp.
byte robotican_hardware::Battery::_batteryPin [private] |
float robotican_hardware::Battery::_currentRead [private] |
float robotican_hardware::Battery::_max [private] |
float robotican_hardware::Battery::_min [private] |
float robotican_hardware::Battery::_voltageDividerRatio [private] |