Skip to content

fix(ArduPlane): gate Step 28 throttle controller on QuadPlane enable - #2298

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

nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-throttle-controller-gating

Conversation

@nflyernz

Copy link
Copy Markdown
Contributor

Description

Resolve ArduPlane Walkthrough Audit 5 finding F31. Step 28_throttle_controller.param tunes QuadPlane hover and vertical-acceleration controllers, so conventional fixed-wing Plane must not be required to complete it.

AMC now uses the connected FC's Q_ENABLE to determine whether Step 28 is mandatory. Offline projects use an explicitly saved Q_ENABLE; missing or unsupported values are treated conservatively. Q_FRAME_CLASS alone does not establish QuadPlane enablement.

For conventional Plane, the displayed mandatory level becomes 0% and simple-mode next/previous navigation skips Step 28. Advanced navigation still permits deliberate inspection of saved project data. Step 28's derived parameters require Q_ENABLE=1, and the two generic Plane templates no longer preassign hover-controller values.

Enabled QuadPlane retains the firmware-dependent gain formulas and uses the connected FC's learned Q_M_THST_HOVER. Existing user project files are not migrated or deleted. ArduCopter navigation and tuning are unchanged.

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 — 762 focused tests passed
  • Integration tests pass — full integration testing was not run
  • Manual testing performed
  • Tested on flight controller hardware

Configuration-step schema validation, Ruff check and format, focused Pylint, targeted ty, and git diff --check passed.

Two selected GUI tests passed. One selected GUI test could not initialize tk.BooleanVar because the test run had no default Tk root; this did not establish an application regression.

An offline project with an explicitly saved Q_ENABLE=1 retains mandatory Step 28 review. FC-derived gains remain unavailable until the controller provides the learned Q_M_THST_HOVER value.

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