Browse Source

commands_process.pde: Bug fix 427. By default, the copter would land after an AUTO mission. Updated to check for valid approach altitude at end of mission.

mission-4.1.18
Adam M Rivera 13 years ago
parent
commit
61baa666c4
  1. 3
      ArduCopter/commands_process.pde

3
ArduCopter/commands_process.pde

@ -64,7 +64,8 @@ static void update_commands() @@ -64,7 +64,8 @@ static void update_commands()
if (land_complete == true){
// we will disarm the motors after landing.
} else {
set_mode(LAND);
// If the approach altitude is valid (above 1m), do approach, else land
set_mode(((g.rtl_approach_alt >= 1) ? APPROACH : LAND));
}
}
}

Loading…
Cancel
Save