Copter: update motors.throttle_interlock every time motors_output is run

This commit is contained in:
Robert Lefebvre 2015-03-12 19:20:47 -04:00 committed by Randy Mackay
parent 7d745587a4
commit 4a0a4de687

View File

@ -752,6 +752,14 @@ static void motors_output()
if (ap.motor_test) {
motor_test_output();
} else {
if (ap.using_interlock){
// pass in motor interlock status to motors class
// true means motors run, false motors don't run
motors.set_interlock(ap.motor_interlock);
} else {
// if not using interlock switch, force interlock true
motors.set_interlock(true);
}
motors.output();
}
}