We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150dd0b commit f3979c0Copy full SHA for f3979c0
src/modules/navigator/mission_base.cpp
@@ -553,7 +553,9 @@ void MissionBase::setEndOfMissionItems()
553
_mission_item.nav_cmd = NAV_CMD_IDLE;
554
555
} else {
556
- if (pos_sp_triplet->current.valid && pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_LOITER) {
+ if (pos_sp_triplet->current.valid &&
557
+ (pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_LOITER ||
558
+ pos_sp_triplet->current.type == position_setpoint_s::SETPOINT_TYPE_POSITION)) {
559
setLoiterItemFromCurrentPositionSetpoint(&_mission_item);
560
561
0 commit comments