![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Battery Management and System Energy Monitoring (BMSEM) Class. More...
#include <laeBatt.h>
Public Member Functions | |
LaeBattery () | |
Default constructor. | |
virtual | ~LaeBattery () |
Destructor. | |
bool | getChargingState () |
Get the most recently updated battery charging state. More... | |
double | getBatteryVoltage () |
Get the most recently sensed battery voltage. More... | |
double | getBatteryStateOfCharge () |
Get the most recently estimated battery state of charge. More... | |
double | getMotorCurrent () |
Get most recently sensed current pulled by all motors. More... | |
double | getMotorPowerElec (const double fMotorWatts) |
Get most recently calculated power used by all motors. More... | |
double | getTotalCurrent () |
Get most recently estimated total current pulled by the robot. More... | |
double | getTotalPower () |
Get most recently estimated power consumed by robot. More... | |
virtual void | calcMotorEnergyState () |
Calculate the present energy state of the robot motors. More... | |
virtual void | calcLogicEnergyState () |
Calculate the present energy state of all logic curcuitry. More... | |
virtual double | estimateBatteryStateOfCharge () |
Estimate batteries State of Charge given the present energy state. More... | |
virtual void | update () |
Update the energy state for all of the robot's subsystems. | |
Protected Attributes | |
bool | m_bIsCharging |
the battery is [not] being charged | |
double | m_fBatteryVoltage |
sensed battery output voltage (V) | |
double | m_fBatterySoC |
battery state of charge (0% - 100%) | |
double | m_fMotorAmps |
sensed current for all motors (A) | |
double | m_fMotorWatts |
sensed power for all motors (watts) | |
double | m_fLogicAmps |
current consumed by logic circuitry (A) | |
double | m_fLogicWatts |
power consumed by logic circuitry (watts) | |
double | m_fTotalAmps |
total system current draw (A) | |
double | m_fTotalWatts |
total system power used (watts) | |
Battery Management and System Energy Monitoring (BMSEM) Class.
|
virtual |
Calculate the present energy state of all logic curcuitry.
Logic circuitry includes odroid, motor controllers, battery chargers, IMU, watchdog sub-processor, sensors, and supporting hardware.
Definition at line 317 of file laeBatt.cxx.
Referenced by getTotalPower().
|
virtual |
Calculate the present energy state of the robot motors.
Definition at line 266 of file laeBatt.cxx.
References LAE_VERSION.
Referenced by getTotalPower().
|
virtual |
Estimate batteries State of Charge given the present energy state.
Definition at line 326 of file laeBatt.cxx.
References linearInterp(), and lookupSoC().
Referenced by getTotalPower().
|
inline |
Get the most recently estimated battery state of charge.
Definition at line 106 of file laeBatt.h.
References m_fBatterySoC.
|
inline |
Get the most recently sensed battery voltage.
The battery voltage is the (weighted) average of all voltage sensors from all batteries.
Definition at line 96 of file laeBatt.h.
References m_fBatteryVoltage.
|
inline |
Get the most recently updated battery charging state.
Definition at line 83 of file laeBatt.h.
References m_bIsCharging.
|
inline |
Get most recently sensed current pulled by all motors.
Motor | current (amps). |
Definition at line 116 of file laeBatt.h.
References m_fMotorAmps.
|
inline |
Get most recently calculated power used by all motors.
Definition at line 126 of file laeBatt.h.
References m_fMotorWatts.
|
inline |
Get most recently estimated total current pulled by the robot.
Definition at line 136 of file laeBatt.h.
References m_fTotalAmps.
|
inline |
Get most recently estimated power consumed by robot.
Definition at line 146 of file laeBatt.h.
References calcLogicEnergyState(), calcMotorEnergyState(), estimateBatteryStateOfCharge(), m_fTotalWatts, and update().