Browse Source

Copter: remove do_land's use of RTL_ALT_MAX

master
Randy Mackay 11 years ago
parent
commit
4b6f03cc11
  1. 2
      ArduCopter/commands_logic.pde

2
ArduCopter/commands_logic.pde

@ -301,7 +301,7 @@ static void do_land(const AP_Mission::Mission_Command& cmd) @@ -301,7 +301,7 @@ static void do_land(const AP_Mission::Mission_Command& cmd)
// calculate and set desired location above landing target
Vector3f pos = pv_location_to_vector(cmd.content.location);
pos.z = min(current_loc.alt, RTL_ALT_MAX);
pos.z = current_loc.alt;
auto_wp_start(pos);
}else{
// set landing state

Loading…
Cancel
Save