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 a24b7bcf14
commit a2b338c052

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;