Browse Source

System: Added handler for the new APPROACH flight mode which will initiate an approach to a target alt as defined by the user.

mission-4.1.18
Adam M Rivera 13 years ago
parent
commit
a2b338c052
  1. 7
      ArduCopter/system.pde

7
ArduCopter/system.pde

@ -484,6 +484,13 @@ static void set_mode(byte mode) @@ -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…
Cancel
Save