mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
AP_HAL_SITL: removed terrain home correction
This commit is contained in:
parent
5560dc24b5
commit
535d7f0d85
@ -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…
Reference in New Issue
Block a user