Browse Source

Plane: change location refence frame correctly

zr-v5.1
Iampete1 4 years ago committed by Andrew Tridgell
parent
commit
fd2909d53f
  1. 2
      ArduPlane/altitude.cpp

2
ArduPlane/altitude.cpp

@ -463,7 +463,7 @@ void Plane::setup_terrain_target_alt(Location &loc) const @@ -463,7 +463,7 @@ void Plane::setup_terrain_target_alt(Location &loc) const
{
#if AP_TERRAIN_AVAILABLE
if (terrain_enabled_in_current_mode()) {
loc.terrain_alt = true;
loc.change_alt_frame(Location::AltFrame::ABOVE_TERRAIN);
}
#endif
}

Loading…
Cancel
Save