Copter: pass battery resistance estimate to motors

This commit is contained in:
Leonard Hall 2017-05-23 16:14:26 +09:00 committed by Randy Mackay
parent 9e86732edc
commit 8def1d257e

View File

@ -170,6 +170,8 @@ void Copter::read_battery(void)
}
if (battery.has_current()) {
motors->set_current(battery.current_amps());
motors->set_resistance(battery.get_resistance());
motors->set_voltage_resting_estimate(battery.voltage_resting_estimate());
}
// check for low voltage or current if the low voltage check hasn't already been triggered