mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 07:30:36 +08:00
mission_base: fix validity on abort landing
This commit is contained in:
@@ -831,7 +831,7 @@ MissionBase::do_abort_landing()
|
||||
|
||||
} else {
|
||||
// move mission index back (landing approach point)
|
||||
_is_current_planned_mission_item_valid = goToPreviousItem(false);
|
||||
_is_current_planned_mission_item_valid = (goToPreviousItem(false) == PX4_OK);
|
||||
}
|
||||
|
||||
// send reposition cmd to get out of mission
|
||||
|
||||
Reference in New Issue
Block a user