Browse Source

Plane: removed terrain home correction

apm_2208
Andrew Tridgell 3 years ago
parent
commit
72087335f7
  1. 4
      ArduPlane/altitude.cpp

4
ArduPlane/altitude.cpp

@ -628,8 +628,8 @@ void Plane::rangefinder_terrain_correction(float &height)
return; return;
} }
float terrain_amsl1, terrain_amsl2; float terrain_amsl1, terrain_amsl2;
if (!terrain.height_amsl(current_loc, terrain_amsl1, false) || if (!terrain.height_amsl(current_loc, terrain_amsl1) ||
!terrain.height_amsl(next_WP_loc, terrain_amsl2, false)) { !terrain.height_amsl(next_WP_loc, terrain_amsl2)) {
return; return;
} }
float correction = (terrain_amsl1 - terrain_amsl2); float correction = (terrain_amsl1 - terrain_amsl2);

Loading…
Cancel
Save