Sub: Support AP_BattMonitor_Params

This commit is contained in:
Michael du Breuil 2017-10-27 13:07:07 -07:00 committed by Francisco Ferreira
parent ff85f5e9bd
commit 2b81058ca1

View File

@ -180,7 +180,7 @@ void Sub::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());
}