Skip to content

fix(arduplane): gate Step 13 QuadPlane tuning on Q_ENABLE - #2299

Draft
nflyernz wants to merge 2 commits into
ArduPilot:masterfrom
nflyernz:fix/arduplane-initial-atc-gating
Draft

nflyernz wants to merge 2 commits into
ArduPilot:masterfrom
nflyernz:fix/arduplane-initial-atc-gating

Conversation

@nflyernz

@nflyernz nflyernz commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Gate ArduPlane Step 13 QuadPlane attitude-controller, hover-throttle, and initial gyro-filter recommendations on the connected flight controller reporting Q_ENABLE=1. Q_FRAME_CLASS alone does not enable these recommendations.

The generic Plane Step 13 templates no longer preassign QuadPlane tuning values or INS_GYRO_FILTER=46. They retain INS_ACCEL_FILTER=10. For enabled QuadPlane, the existing propeller-diameter calculations, coefficients, rounding, limits, and initial values remain unchanged.

Step 13 text now distinguishes the common accelerometer-filter setting from QuadPlane's initial gyro-filter estimate. Conventional fixed-wing gyro-filter selection requires measurements during forward flight at cruise speed; AMC does not automate that measurement.

Tests cover conventional Plane, enabled QuadPlane, nonzero Q_FRAME_CLASS with QuadPlane disabled, missing or unsupported Q_ENABLE, both acceleration parameter generations, stale derived values after disablement, both generic templates, saved and existing FC gyro-filter values, offline projects, and ArduCopter behaviour.

Offline projects preserve saved parameters but receive no new QuadPlane recommendations without connected FC Q_ENABLE data. Existing nondefault FC settings may still appear through autoimport; they are not newly derived recommendations.

F24 and Step 23 remain outside this PR.

Checklist

  • Run pre-commit checks locally
  • Verified by a human programmer
  • All commits are signed off (use git commit --signoff)
  • Code follows our coding standards
  • Documentation updated if needed
  • No breaking changes or properly documented

Testing

  • Unit tests pass — 484 focused tests
  • Integration tests pass
  • Manual testing performed
  • Tested on flight controller hardware

JSON schema validation, Ruff, focused Pylint (10/10), targeted ty, and git diff --check passed.

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