Browse Source

commands

fixed logic bug to make a copter loiter after the mission is ended.
mission-4.1.18
Jason Short 13 years ago
parent
commit
fd97eb5a8d
  1. 6
      ArduCopter/commands_process.pde

6
ArduCopter/commands_process.pde

@ -65,11 +65,11 @@ static void update_commands() @@ -65,11 +65,11 @@ static void update_commands()
// we will disarm the motors after landing.
} else {
// If the approach altitude is valid (above 1m), do approach, else land
if(g.rtl_approach_alt >= 1){
if(g.rtl_approach_alt == 0){
set_mode(LAND);
}else{
set_mode(LOITER);
set_new_altitude(g.rtl_approach_alt);
}else{
set_mode(LAND);
}
}
}

Loading…
Cancel
Save