APM:Libraries
Public Types | Public Member Functions | Protected Attributes | List of all members
AP_BattMonitor_UAVCAN Class Reference

#include <AP_BattMonitor_UAVCAN.h>

Inheritance diagram for AP_BattMonitor_UAVCAN:
[legend]
Collaboration diagram for AP_BattMonitor_UAVCAN:
[legend]

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 &params)
 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
 
- Public Member Functions inherited from AP_BattMonitor_Backend
 AP_BattMonitor_Backend (AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params &params)
 
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
 
- Protected Attributes inherited from AP_BattMonitor_Backend
AP_BattMonitor_mon
 
AP_BattMonitor::BattMonitor_State_state
 
AP_BattMonitor_Params_params
 

Detailed Description

Definition at line 9 of file AP_BattMonitor_UAVCAN.h.

Member Enumeration Documentation

◆ BattMonitor_UAVCAN_Type

Enumerator
UAVCAN_BATTERY_INFO 

Definition at line 13 of file AP_BattMonitor_UAVCAN.h.

Constructor & Destructor Documentation

◆ AP_BattMonitor_UAVCAN()

AP_BattMonitor_UAVCAN::AP_BattMonitor_UAVCAN ( AP_BattMonitor mon,
AP_BattMonitor::BattMonitor_State mon_state,
BattMonitor_UAVCAN_Type  type,
AP_BattMonitor_Params params 
)

Constructor.

Member Function Documentation

◆ handle_bi_msg()

void AP_BattMonitor_UAVCAN::handle_bi_msg ( float  voltage,
float  current,
float  temperature 
)
overridevirtual

Reimplemented from AP_BattMonitor_Backend.

Referenced by has_current().

Here is the caller graph for this function:

◆ has_current()

bool AP_BattMonitor_UAVCAN::has_current ( ) const
inlineoverridevirtual

returns true if battery monitor instance provides current info

Implements AP_BattMonitor_Backend.

Definition at line 25 of file AP_BattMonitor_UAVCAN.h.

Here is the call graph for this function:

◆ init()

void AP_BattMonitor_UAVCAN::init ( )
overridevirtual

◆ read()

void AP_BattMonitor_UAVCAN::read ( )
overridevirtual

Read the battery voltage and current. Should be called at 10hz.

Implements AP_BattMonitor_Backend.

Member Data Documentation

◆ _type

BattMonitor_UAVCAN_Type AP_BattMonitor_UAVCAN::_type
protected

Definition at line 32 of file AP_BattMonitor_UAVCAN.h.


The documentation for this class was generated from the following file: