| 
    APM:Libraries
    
   | 
 
#include <AP_BattMonitor_Backend.h>
Public Member Functions | |
| AP_BattMonitor_Backend (AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params ¶ms) | |
| virtual | ~AP_BattMonitor_Backend (void) | 
| virtual void | init ()=0 | 
| virtual void | read ()=0 | 
| virtual bool | has_consumed_energy () const | 
| returns true if battery monitor instance provides consumed energy info  More... | |
| virtual bool | has_current () const =0 | 
| returns true if battery monitor instance provides current 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 () | 
| virtual void | handle_bi_msg (float voltage, float current, float temperature) | 
Protected Attributes | |
| AP_BattMonitor & | _mon | 
| AP_BattMonitor::BattMonitor_State & | _state | 
| AP_BattMonitor_Params & | _params | 
Private Attributes | |
| uint32_t | _resistance_timer_ms | 
| float | _voltage_filt | 
| float | _current_max_amps | 
| float | _current_filt_amps | 
| float | _resistance_voltage_ref | 
| float | _resistance_current_ref | 
Definition at line 21 of file AP_BattMonitor_Backend.h.
| AP_BattMonitor_Backend::AP_BattMonitor_Backend | ( | AP_BattMonitor & | mon, | 
| AP_BattMonitor::BattMonitor_State & | mon_state, | ||
| AP_BattMonitor_Params & | params | ||
| ) | 
Definition at line 25 of file AP_BattMonitor_Backend.cpp.
      
  | 
  inlinevirtual | 
| uint8_t AP_BattMonitor_Backend::capacity_remaining_pct | ( | ) | const | 
capacity_remaining_pct - returns the % battery capacity remaining (0 ~ 100)
Definition at line 34 of file AP_BattMonitor_Backend.cpp.
Referenced by AP_BattMonitor::capacity_remaining_pct(), and has_cell_voltages().
      
  | 
  inlinevirtual | 
Reimplemented in AP_BattMonitor_UAVCAN.
Definition at line 53 of file AP_BattMonitor_Backend.h.
      
  | 
  inlinevirtual | 
Reimplemented in AP_BattMonitor_SMBus.
Definition at line 44 of file AP_BattMonitor_Backend.h.
Referenced by AP_BattMonitor::has_cell_voltages().
      
  | 
  inlinevirtual | 
returns true if battery monitor instance provides consumed energy info
Reimplemented in AP_BattMonitor_Analog.
Definition at line 38 of file AP_BattMonitor_Backend.h.
Referenced by AP_BattMonitor::has_consumed_energy().
      
  | 
  pure virtual | 
returns true if battery monitor instance provides current info
Implemented in AP_BattMonitor_Analog, AP_BattMonitor_SMBus, AP_BattMonitor_Bebop, and AP_BattMonitor_UAVCAN.
Referenced by has_consumed_energy(), AP_BattMonitor::has_current(), and update_resistance_estimate().
      
  | 
  pure virtual | 
Implemented in AP_BattMonitor_Analog, AP_BattMonitor_SMBus, AP_BattMonitor_Bebop, and AP_BattMonitor_UAVCAN.
Referenced by AP_BattMonitor::init(), and ~AP_BattMonitor_Backend().
      
  | 
  pure virtual | 
Implemented in AP_BattMonitor_Analog, AP_BattMonitor_SMBus, AP_BattMonitor_Bebop, and AP_BattMonitor_UAVCAN.
Referenced by AP_BattMonitor::read(), and ~AP_BattMonitor_Backend().
| void AP_BattMonitor_Backend::update_resistance_estimate | ( | ) | 
Definition at line 48 of file AP_BattMonitor_Backend.cpp.
Referenced by has_cell_voltages(), and AP_BattMonitor::read().
      
  | 
  private | 
Definition at line 66 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
      
  | 
  private | 
Definition at line 65 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
      
  | 
  protected | 
Definition at line 57 of file AP_BattMonitor_Backend.h.
      
  | 
  protected | 
Definition at line 59 of file AP_BattMonitor_Backend.h.
Referenced by AP_BattMonitor_Analog::AP_BattMonitor_Analog(), AP_BattMonitor_SMBus::AP_BattMonitor_SMBus(), capacity_remaining_pct(), AP_BattMonitor_Analog::has_current(), AP_BattMonitor_SMBus::read(), AP_BattMonitor_Analog::read(), and AP_BattMonitor_SMBus::read_remaining_capacity().
      
  | 
  private | 
Definition at line 68 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
      
  | 
  private | 
Definition at line 63 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
      
  | 
  private | 
Definition at line 67 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
      
  | 
  protected | 
Definition at line 58 of file AP_BattMonitor_Backend.h.
Referenced by AP_BattMonitor_Analog::AP_BattMonitor_Analog(), capacity_remaining_pct(), AP_BattMonitor_Analog::read(), AP_BattMonitor_SMBus::read_remaining_capacity(), AP_BattMonitor_SMBus::read_temp(), AP_BattMonitor_SMBus_Solo::timer(), AP_BattMonitor_SMBus_Maxell::timer(), and update_resistance_estimate().
      
  | 
  private | 
Definition at line 64 of file AP_BattMonitor_Backend.h.
Referenced by update_resistance_estimate().
 1.8.13