mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 11:00:34 +08:00
rtl direct: fix setting of previous altitude (abs vs rel)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -265,7 +265,7 @@ void RtlDirect::set_rtl_item()
|
||||
// location and land location after exiting the loiter circle
|
||||
pos_sp_triplet->previous.lat = _land_approach.lat;
|
||||
pos_sp_triplet->previous.lon = _land_approach.lon;
|
||||
pos_sp_triplet->previous.alt = _mission_item.altitude;
|
||||
pos_sp_triplet->previous.alt = get_absolute_altitude_for_item(_mission_item);
|
||||
pos_sp_triplet->previous.valid = true;
|
||||
|
||||
_rtl_state = RTLState::TRANSITION_TO_MC;
|
||||
|
||||
Reference in New Issue
Block a user