Browse Source

Plane: use mission.resume() not mission.start()

master
Andrew Tridgell 11 years ago committed by Randy Mackay
parent
commit
4992e2e2cf
  1. 8
      ArduPlane/system.pde

8
ArduPlane/system.pde

@ -341,8 +341,12 @@ static void set_mode(enum FlightMode mode) @@ -341,8 +341,12 @@ static void set_mode(enum FlightMode mode)
case AUTO:
prev_WP.content.location = current_loc;
// start the mission
mission.start();
// start the mission. Note that we use resume(), not start(),
// as the correct behaviour for plane when entering auto is to
// continue the mission. If the pilot wants to restart the
// mission they need to either use RST_MISSION_CH or change
// waypoint number to 0
mission.resume();
break;
case RTL:

Loading…
Cancel
Save