5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-02-20 14:54:09 -04:00

Plane: change location refence frame correctly

This commit is contained in:
Iampete1 2021-04-07 18:41:53 +01:00 committed by Andrew Tridgell
parent 1a182a52da
commit fd2909d53f

View File

@ -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
}