float _resistance_current_ref
#define AP_BATT_MONITOR_RES_EST_TC_1
bool is_positive(const T fVal1)
float _resistance_voltage_ref
AP_BattMonitor_Backend(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params ¶ms)
AP_BattMonitor_Params & _params
static auto MAX(const A &one, const B &two) -> decltype(one > two ? one :two)
AP_Int32 _pack_capacity
offset voltage that is subtracted from current pin before conversion to amps
bool is_zero(const T fVal1)
#define AP_BATT_MONITOR_RES_EST_TC_2
virtual bool has_current() const =0
returns true if battery monitor instance provides current info
uint8_t capacity_remaining_pct() const
capacity_remaining_pct - returns the % battery capacity remaining (0 ~ 100)
Common definitions and utility routines for the ArduPilot libraries.
float constrain_float(const float amt, const float low, const float high)
AP_BattMonitor::BattMonitor_State & _state
void update_resistance_estimate()
uint32_t _resistance_timer_ms
float voltage_resting_estimate