mission: delay until: mark next setpoint invalid
Build all targets / Scan for Board Targets (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:22.04) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:24.04) (push) Has been cancelled
Container build / Build and Push Container (push) Has been cancelled
EKF Update Change Indicator / unit_tests (push) Has been cancelled
Build all targets / Build Group [${{ matrix.group }}] (push) Has been cancelled
Build all targets / Upload Artifacts to S3 (push) Has been cancelled
Build all targets / Create Release and Upload Artifacts (push) Has been cancelled

Fixes bug with the NAV_CMD_DELAY where the copter would "pace" back and forth while waiting at the delay waypoint
This commit is contained in:
Jacob Dahl
2025-10-09 20:04:38 -08:00
committed by Jacob Dahl
parent 162b7d6372
commit 06ec43629a
+4
View File
@@ -263,6 +263,10 @@ void Mission::setActiveMissionItems()
pos_sp_triplet->next.valid = false;
}
} else if (_mission_item.nav_cmd == NAV_CMD_DELAY) {
// Invalidate next waypoint to ensure vehicle holds position and doesn't try to track ahead
pos_sp_triplet->next.valid = false;
} else {
handleVtolTransition(new_work_item_type, next_mission_items, num_found_items);
}