Browse Source

Copter: enable landing gear based on RC output

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

4
ArduCopter/landing_gear.cpp

@ -4,8 +4,8 @@
// Run landing gear controller at 10Hz // Run landing gear controller at 10Hz
void Copter::landinggear_update() void Copter::landinggear_update()
{ {
// exit immediately if no landing gear switch is enabled // exit immediately if no landing gear output has been enabled
if (!check_if_auxsw_mode_used(AUXSW_LANDING_GEAR)) { if (!SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) {
return; return;
} }

Loading…
Cancel
Save