From c3fd354452ea83cc98ba49aad3be923a3bd8521c Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 4 Aug 2017 15:40:55 +0900 Subject: [PATCH] Copter: enable landing gear based on RC output previously it was enabled based on the transmitter's auxiliary switch being setup --- ArduCopter/landing_gear.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/landing_gear.cpp b/ArduCopter/landing_gear.cpp index 6b5ea38ea9..47a44b07bb 100644 --- a/ArduCopter/landing_gear.cpp +++ b/ArduCopter/landing_gear.cpp @@ -4,8 +4,8 @@ // Run landing gear controller at 10Hz void Copter::landinggear_update() { - // exit immediately if no landing gear switch is enabled - if (!check_if_auxsw_mode_used(AUXSW_LANDING_GEAR)) { + // exit immediately if no landing gear output has been enabled + if (!SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) { return; }