Skip to content

fix(ArduPlane): gate servo output assistant on QuadPlane enable - #2297

Draft
nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-servo-output-gating
Draft

nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-servo-output-gating

Conversation

@nflyernz

Copy link
Copy Markdown
Contributor

Description

Fix ArduPlane Walkthrough Audit 5 finding F10. In Step 11_servo_outputs.param, the multicopter motor-output assistant is shown only when QuadPlane is explicitly enabled.

For a connected ArduPlane, AMC uses the flight controller's Q_ENABLE. For an offline project, it uses an explicitly saved Q_ENABLE=1 from the project's compounded parameter files. Q_FRAME_CLASS or a frame-component label alone does not establish that QuadPlane is enabled. Missing or unknown enablement hides the assistant.

The normal Step 11 servo-function and output-limit parameter workflow remains available. This change does not set or invent SERVOx_FUNCTION values, change the motor-assignment algorithm, or affect ArduCopter's assistant. Step 14 and PR #2296 are untouched.

Checklist

  • Run pre-commit checks locally — the full pre-commit suite was not run
  • Verified by a human programmer
  • All commits are signed off (use git commit --signoff)
  • Code follows our coding standards
  • Documentation updated if needed — no documentation change was needed
  • No breaking changes or properly documented

Testing

  • Unit tests pass — 580 focused tests plus 3 display-free servo UI tests passed
  • Integration tests pass — full integration testing was not run
  • Manual testing performed
  • Tested on flight controller hardware

Ruff check and format, focused Pylint, targeted ty, configuration-step schema validation, and git diff --check passed. A targeted Tk GUI test could not execute: macOS Tk aborted while creating the test root window, before application code ran.

Offline QuadPlane recommendations remain available when the project explicitly saves Q_ENABLE=1. When that value is unavailable, AMC conservatively hides the motor-assignment assistant while retaining the Step 11 parameter editor.

Signed-off-by: nflyernz <319460892+nflyernz@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant