mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
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.
This commit is contained in:
parent
136c03c3c0
commit
61baa666c4
@ -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…
Reference in New Issue
Block a user