Repository navigation
fix(mavlink): MAV_CMD_NAV_DELAY should not be handled as a command - #28236
Conversation
🔎 Flash and RAM Analysis
px4_io-v2 firmware image, which an FMU flashes to its IO at boot: unchanged. px4_fmu-v2 — Bloaty section/symbol breakdownpx4_fmu-v5x — Bloaty section/symbol breakdownpx4_fmu-v6x — Bloaty section/symbol breakdownpx4_io-v2 — Bloaty section/symbol breakdownUpdated: 2026-11-25T22:42:10 |
…ands Navigator turned every mission item without a position into a vehicle_command, NAV_DELAY included, even though the delay is executed entirely within navigator. Commander only stayed quiet because VEHICLE_CMD_NAV_DELAY was on its "handled elsewhere" list, which also stopped it from rejecting the command when a ground station sent it. Skip NAV_DELAY in issue_command() so commander can reply UNSUPPORTED to the external command without warning or playing the negative tune during missions.
b5bbd43 to
2bc1348
Compare
MaEtUgR
left a comment
There was a problem hiding this comment.
Well 96458d3184 was adding this exclusion for a reason. The mission command was also published and commander would report unsupported mid mission even though it's the right way of using. So the fix is in my eyes that navigator which handles the command within a mission doesn't publish it as a vehicle_command anymore. Then your removal of exclusion only handles external commands and doesn't break the mission with a delay anymore.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of the change addressing standalone delay acknowledgments while preserving local mission-delay handling.
No open issues 🎉
What changed in this PR
Fixes missing acknowledgments for standalone MAV_CMD_NAV_DELAY requests while keeping mission delays handled locally by Navigator.
Changes:
- Removes delay commands from Commander’s handled-elsewhere list so they reach the unsupported-command handler.
- Prevents Navigator from publishing mission delays as vehicle commands, preserving local execution and avoiding unnecessary rejection warnings.
| File | Description |
|---|---|
src/modules/navigator/mission_block.cpp |
Skips command publication for locally executed mission delays. |
src/modules/commander/Commander.cpp |
Allows standalone delay commands to receive an unsupported acknowledgment. |
Review effort: Balanced
This fixes the
MAV_CMD_NAV_DELAYnot providing a NACK or ACK. This was happening because it was in the list of commands handled elsewhere, but it isn't handled anywhere, Worse, it can't be handled as a command - it makes no sense in this context as it is intended to delay a step in a mission.The fix is simply to remove it from the list of commands so that it falls to the default handler.
Tested, and it now returns unsupported. Claude also deems this good, and as having no side effects.