Plane: Support AP_BattMonitor_Params
This commit is contained in:
parent
0ddcb0a6fb
commit
ff85f5e9bd
@ -127,7 +127,7 @@ void Plane::read_battery(void)
|
||||
battery.exhausted(g.fs_batt_voltage, g.fs_batt_mah)) {
|
||||
low_battery_event();
|
||||
}
|
||||
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) {
|
||||
if (battery.get_type() != AP_BattMonitor_Params::BattMonitor_TYPE_NONE) {
|
||||
AP_Notify::flags.battery_voltage = battery.voltage();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user