Browse Source

Copter: enable landing gear based on RC output

previously it was enabled based on the transmitter's auxiliary switch
being setup
master
Randy Mackay 8 years ago
parent
commit
c3fd354452
  1. 4
      ArduCopter/landing_gear.cpp

4
ArduCopter/landing_gear.cpp

@ -4,8 +4,8 @@ @@ -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;
}

Loading…
Cancel
Save