mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
BattMon: has_current true for Bebop
The bebop does not actually provide current but it does estimate the percentage of battery remaining
This commit is contained in:
parent
8403b504d1
commit
3dfb447fd7
@ -200,7 +200,9 @@ bool AP_BattMonitor::has_current(uint8_t instance) const
|
||||
// check for analog voltage and current monitor or smbus monitor
|
||||
if (instance < AP_BATT_MONITOR_MAX_INSTANCES) {
|
||||
if (drivers[instance] != NULL) {
|
||||
return (_monitoring[instance] == BattMonitor_TYPE_ANALOG_VOLTAGE_AND_CURRENT || _monitoring[instance] == BattMonitor_TYPE_SMBUS);
|
||||
return (_monitoring[instance] == BattMonitor_TYPE_ANALOG_VOLTAGE_AND_CURRENT ||
|
||||
_monitoring[instance] == BattMonitor_TYPE_SMBUS ||
|
||||
_monitoring[instance] == BattMonitor_TYPE_BEBOP);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user