mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: moved MAV_CMD_AIRFRAME_CONFIGURATION to common code
This commit is contained in:
parent
4a2b0dabaf
commit
ab07a2ecf3
@ -946,23 +946,6 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
|
||||
return MAV_RESULT_FAILED;
|
||||
#endif
|
||||
|
||||
#if AP_LANDINGGEAR_ENABLED
|
||||
case MAV_CMD_AIRFRAME_CONFIGURATION: {
|
||||
// Param 1: Select which gear, not used in ArduPilot
|
||||
// Param 2: 0 = Deploy, 1 = Retract
|
||||
// For safety, anything other than 1 will deploy
|
||||
switch ((uint8_t)packet.param2) {
|
||||
case 1:
|
||||
copter.landinggear.set_position(AP_LandingGear::LandingGear_Retract);
|
||||
return MAV_RESULT_ACCEPTED;
|
||||
default:
|
||||
copter.landinggear.set_position(AP_LandingGear::LandingGear_Deploy);
|
||||
return MAV_RESULT_ACCEPTED;
|
||||
}
|
||||
return MAV_RESULT_FAILED;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Solo user presses Fly button */
|
||||
case MAV_CMD_SOLO_BTN_FLY_CLICK: {
|
||||
if (copter.failsafe.radio) {
|
||||
|
Loading…
Reference in New Issue
Block a user