mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:17:35 +08:00
mission_base: on mission end, set loiter position from previous position type setpoint
This commit is contained in:
committed by
Matthias Grob
parent
32a74afbb8
commit
6c69d86d7e
@@ -556,7 +556,9 @@ void MissionBase::setEndOfMissionItems()
|
||||
_mission_item.nav_cmd = NAV_CMD_IDLE;
|
||||
|
||||
} else {
|
||||
if (pos_sp_triplet->current.valid && pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_LOITER) {
|
||||
if (pos_sp_triplet->current.valid &&
|
||||
(pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_LOITER ||
|
||||
pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_POSITION)) {
|
||||
setLoiterItemFromCurrentPositionSetpoint(&_mission_item);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user