diff --git a/libraries/AP_HAL_SITL/sitl_gps.cpp b/libraries/AP_HAL_SITL/sitl_gps.cpp index 1900c4ce2b..d9235d1d28 100644 --- a/libraries/AP_HAL_SITL/sitl_gps.cpp +++ b/libraries/AP_HAL_SITL/sitl_gps.cpp @@ -1126,6 +1126,8 @@ void SITL_State::_update_gps(double latitude, double longitude, float altitude, if (AP_HAL::millis() < _sitl->gps_lock_time*1000UL) { have_lock = false; } + + altitude += _sitl->gps_alt_offset; //Capture current position as basestation location for if (!_gps_has_basestation_position) {