APM:Libraries
|
#include <AP_BattMonitor_UAVCAN.h>
Public Types | |
enum | BattMonitor_UAVCAN_Type { UAVCAN_BATTERY_INFO = 0 } |
Public Member Functions | |
AP_BattMonitor_UAVCAN (AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, BattMonitor_UAVCAN_Type type, AP_BattMonitor_Params ¶ms) | |
Constructor. More... | |
void | read () override |
Read the battery voltage and current. Should be called at 10hz. More... | |
void | init () override |
bool | has_current () const override |
returns true if battery monitor instance provides current info More... | |
void | handle_bi_msg (float voltage, float current, float temperature) override |
![]() | |
AP_BattMonitor_Backend (AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params ¶ms) | |
virtual | ~AP_BattMonitor_Backend (void) |
virtual bool | has_consumed_energy () const |
returns true if battery monitor instance provides consumed energy info More... | |
virtual bool | has_cell_voltages () const |
uint8_t | capacity_remaining_pct () const |
capacity_remaining_pct - returns the % battery capacity remaining (0 ~ 100) More... | |
void | update_resistance_estimate () |
Protected Attributes | |
BattMonitor_UAVCAN_Type | _type |
![]() | |
AP_BattMonitor & | _mon |
AP_BattMonitor::BattMonitor_State & | _state |
AP_BattMonitor_Params & | _params |
Definition at line 9 of file AP_BattMonitor_UAVCAN.h.
Enumerator | |
---|---|
UAVCAN_BATTERY_INFO |
Definition at line 13 of file AP_BattMonitor_UAVCAN.h.
AP_BattMonitor_UAVCAN::AP_BattMonitor_UAVCAN | ( | AP_BattMonitor & | mon, |
AP_BattMonitor::BattMonitor_State & | mon_state, | ||
BattMonitor_UAVCAN_Type | type, | ||
AP_BattMonitor_Params & | params | ||
) |
Constructor.
|
overridevirtual |
Reimplemented from AP_BattMonitor_Backend.
Referenced by has_current().
|
inlineoverridevirtual |
returns true if battery monitor instance provides current info
Implements AP_BattMonitor_Backend.
Definition at line 25 of file AP_BattMonitor_UAVCAN.h.
|
overridevirtual |
Implements AP_BattMonitor_Backend.
|
overridevirtual |
Read the battery voltage and current. Should be called at 10hz.
Implements AP_BattMonitor_Backend.
|
protected |
Definition at line 32 of file AP_BattMonitor_UAVCAN.h.