Skip to content

Remove unnecessary COMMAND_ACK#3705

Open
av-remco wants to merge 1 commit into
ArduPilot:masterfrom
av-remco:master
Open

Remove unnecessary COMMAND_ACK#3705
av-remco wants to merge 1 commit into
ArduPilot:masterfrom
av-remco:master

Conversation

@av-remco
Copy link
Copy Markdown
Contributor

In a mission upload operation the flight controller confirms the upload with a COMMAND_ACK. MissionPlanner then replies with another unnecessary COMMAND_ACK. This PR removes it.

Does not cause any regression, since the GCS should never send COMMAND_ACK with type = 0 during mission upload

@meee1 meee1 requested a review from Copilot April 15, 2026 21:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes an extra GCS-side acknowledgment during mission upload so MissionPlanner doesn’t send a redundant COMMAND_ACK after the flight controller already acknowledged the operation.

Changes:

  • Removed port.setWPACK(sysid, compid, type); calls from the mission upload and partial mission update flows.
  • Leaves mission upload completion reliant on the FC’s COMMAND_ACK only (no GCS echo-ack).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 148 to 153
}
}

port.setWPACK(sysid, compid, type);

}
catch (Exception ex)
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment is unnecessary. Someone in the future should consult the mavlink mission protocol

@av-remco
Copy link
Copy Markdown
Contributor Author

av-remco commented May 5, 2026

@meee1 Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants