Copter: Support AP_BattMonitor_Params

This commit is contained in:
Michael du Breuil 2017-10-27 13:06:34 -07:00 committed by Francisco Ferreira
parent 8712fbd55d
commit 0ddcb0a6fb
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ void Copter::read_battery(void)
}
// update motors with voltage and current
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) {
if (battery.get_type() != AP_BattMonitor_Params::BattMonitor_TYPE_NONE) {
motors->set_voltage(battery.voltage());
AP_Notify::flags.battery_voltage = battery.voltage();
}