diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp index cdfa3f9c51..a9a8a6a096 100644 --- a/ArduPlane/RC_Channel.cpp +++ b/ArduPlane/RC_Channel.cpp @@ -34,7 +34,6 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option, // the following functions do not need to be initialised: case ARMDISARM: case INVERTED: - case LANDING_GEAR: break; default: RC_Channel::init_aux_function(ch_option, ch_flag); @@ -64,20 +63,6 @@ void RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const aux_swi plane.inverted_flight = (ch_flag == HIGH); break; - case LANDING_GEAR: - switch (ch_flag) { - case LOW: - plane.g2.landing_gear.set_position(AP_LandingGear::LandingGear_Deploy); - break; - case MIDDLE: - // nothing - break; - case HIGH: - plane.g2.landing_gear.set_position(AP_LandingGear::LandingGear_Retract); - break; - } - break; - default: RC_Channel::do_aux_function(ch_option, ch_flag); break; diff --git a/ArduPlane/make.inc b/ArduPlane/make.inc index d8ec6e769e..4407b402bc 100644 --- a/ArduPlane/make.inc +++ b/ArduPlane/make.inc @@ -53,7 +53,6 @@ LIBRARIES += AC_Fence LIBRARIES += AP_Tuning LIBRARIES += AP_Stats LIBRARIES += AP_Landing -LIBRARIES += AP_LandingGear LIBRARIES += AP_Beacon LIBRARIES += PID LIBRARIES += AP_Soaring diff --git a/ArduPlane/wscript b/ArduPlane/wscript index ff52227304..81cc188ed7 100644 --- a/ArduPlane/wscript +++ b/ArduPlane/wscript @@ -27,7 +27,6 @@ def build(bld): 'AC_Fence', 'AP_Stats', 'AP_Landing', - 'AP_LandingGear', 'AP_Beacon', 'PID', 'AP_Soaring',