5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-14 04:38: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:
Adam M Rivera 2012-04-15 16:55:34 -05:00
parent d1a7fdb9ef
commit 70d67b0791

View File

@ -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;