BatteryStatus message contains the current battery state. More...
#include <creos/messages/battery_status.hpp>
Classes | |
struct | Alerts |
Public Types | |
enum | State { kUnknown , kOffline , kCharging , kDischarging , kBalancing , kError } |
Public Member Functions | |
auto | operator<=> (const BatteryStatus &other) const =default |
Compare two BatteryStatus messages. | |
Public Attributes | |
float | voltage = 0.0f |
The current voltage of the battery pack [V], NaN if not available. | |
float | state_of_charge |
The current state of charge of the battery pack (0.0 - 1.0), NaN if not available. | |
float | state_of_health = 0.0f |
How healthy is the battery pack (0.0 - 1.0), NaN if not available. | |
float | temperature = 0.0f |
The current temperature of the battery pack [°C], NaN if not available. | |
State | state = kUnknown |
The current state of the battery pack. | |
Alerts | alerts |
The current alerts of the battery pack. | |
BatteryStatus message contains the current battery state.
float creos_messages::BatteryStatus::state_of_charge |
The current state of charge of the battery pack (0.0 - 1.0), NaN if not available.