From 4a0a4de6872e93a52e8e5cbc15ff58dde4785dab Mon Sep 17 00:00:00 2001 From: Robert Lefebvre Date: Thu, 12 Mar 2015 19:20:47 -0400 Subject: [PATCH] Copter: update motors.throttle_interlock every time motors_output is run --- ArduCopter/motors.pde | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ArduCopter/motors.pde b/ArduCopter/motors.pde index f79c5e28f4..e6bb84275a 100644 --- a/ArduCopter/motors.pde +++ b/ArduCopter/motors.pde @@ -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(); } }