mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
System: Added handler for the new APPROACH flight mode which will initiate an approach to a target alt as defined by the user.
This commit is contained in:
parent
a24b7bcf14
commit
a2b338c052
@ -484,6 +484,13 @@ static void set_mode(byte mode)
|
||||
do_land();
|
||||
break;
|
||||
|
||||
case APPROACH:
|
||||
yaw_mode = LOITER_YAW;
|
||||
roll_pitch_mode = LOITER_RP;
|
||||
throttle_mode = THROTTLE_AUTO;
|
||||
do_approach();
|
||||
break;
|
||||
|
||||
case RTL:
|
||||
yaw_mode = RTL_YAW;
|
||||
roll_pitch_mode = RTL_RP;
|
||||
|
Loading…
Reference in New Issue
Block a user