Browse Source

Copter: Guided add terrain failsafe

gps-1.3.1
Leonard Hall 4 years ago committed by Randy Mackay
parent
commit
0132b30d27
  1. 4
      ArduCopter/mode_guided.cpp

4
ArduCopter/mode_guided.cpp

@ -552,8 +552,8 @@ void ModeGuided::pos_control_run() @@ -552,8 +552,8 @@ void ModeGuided::pos_control_run()
// calculate terrain adjustments
float terr_offset = 0.0f;
if (guided_pos_terrain_alt && !wp_nav->get_terrain_offset(terr_offset)) {
// if we don't have terrain altitude then stop
init(true);
// failure to set destination can only be because of missing terrain data
copter.failsafe_terrain_on_event();
return;
}

Loading…
Cancel
Save