Plane: moved LANDING_GEAR to common RC_Channel
This commit is contained in:
parent
4eb867efc2
commit
f89c770c46
@ -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;
|
||||
|
@ -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
|
||||
|
@ -27,7 +27,6 @@ def build(bld):
|
||||
'AC_Fence',
|
||||
'AP_Stats',
|
||||
'AP_Landing',
|
||||
'AP_LandingGear',
|
||||
'AP_Beacon',
|
||||
'PID',
|
||||
'AP_Soaring',
|
||||
|
Loading…
Reference in New Issue
Block a user