Contains the battery state and can control the robot's power.
More...
#include <RBCXBattery.h>
Contains the battery state and can control the robot's power.
◆ bMidVoltageMv()
uint32_t rb::Battery::bMidVoltageMv |
( |
| ) |
const |
|
inline |
returns current temperature as measured by the STM32 coprocessor in °C
◆ isPoweredByBattery()
bool rb::Battery::isPoweredByBattery |
( |
| ) |
const |
|
inline |
◆ pct()
uint32_t rb::Battery::pct |
( |
| ) |
const |
returns current battery percentage (0-100)
returns current battery voltage in mV
◆ shutdown()
void rb::Battery::shutdown |
( |
| ) |
|
shuts the robot's battery power
Returns true if the Robot's battery power branch is on (battery is connected)
◆ temperatureC()
int32_t rb::Battery::temperatureC |
( |
| ) |
const |
|
inline |
◆ voltageMv()
uint32_t rb::Battery::voltageMv |
( |
| ) |
const |
|
inline |
returns battery Mid point voltage in mV
◆ Manager
◆ BATTERY_IN_THRESHOLD
constexpr uint32_t rb::Battery::BATTERY_IN_THRESHOLD = 5000 |
|
staticconstexpr |
◆ VOLTAGE_MAX
constexpr uint32_t rb::Battery::VOLTAGE_MAX = 4200 * 2 |
|
staticconstexpr |
Maximal battery voltage, in mV.
◆ VOLTAGE_MIN
constexpr uint32_t rb::Battery::VOLTAGE_MIN |
|
staticconstexpr |
Initial value:
Minimal battery voltage, in mV, at which the robot shuts down.
The documentation for this class was generated from the following files: