Browse Source

AP_HAL_SITL: removed terrain home correction

gps-1.3.1
Andrew Tridgell 3 years ago
parent
commit
7a9ac498cf
  1. 2
      libraries/AP_HAL_SITL/SITL_State.cpp

2
libraries/AP_HAL_SITL/SITL_State.cpp

@ -906,7 +906,7 @@ void SITL_State::set_height_agl(void)
AP_Terrain *_terrain = AP_Terrain::get_singleton(); AP_Terrain *_terrain = AP_Terrain::get_singleton();
if (_terrain != nullptr && if (_terrain != nullptr &&
_terrain->height_amsl(location, terrain_height_amsl, false)) { _terrain->height_amsl(location, terrain_height_amsl)) {
_sitl->height_agl = _sitl->state.altitude - terrain_height_amsl; _sitl->height_agl = _sitl->state.altitude - terrain_height_amsl;
return; return;
} }

Loading…
Cancel
Save