Skip to content

fix(ArduPlane): Remove generic telemetry serial defaults - #2285

Draft
nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-telemetry-serial-defaults
Draft

nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-telemetry-serial-defaults

Conversation

@nflyernz

Copy link
Copy Markdown
Contributor

Summary

Addresses F06 from the AMC 5.0.0 ArduPlane Basic Mandatory Configuration walkthrough. Both generic Plane telemetry templates contained unconditional serial protocol, baud, and flow-control values that could configure unrelated ports when telemetry was absent or elsewhere. Remove those assignments and leave the step files empty. The existing Component Editor rules still derive the selected SERIAL1–9 protocol, and existing serial rename behavior remains intact.

Testing

  • 14 focused regression tests pass: empty templates, None, SERIAL1/2/4, saved baud values, existing rename behavior, current no-autoimport rules, and derived protocol display from an initially empty step.
  • Ruff check and format, focused Pylint, targeted ty check, and git diff --check pass.
  • No physical flight controller used.

No automatic baud-rate derivation is added. Users with a physical telemetry radio must verify its appropriate baud rate. The commit is signed off. No other vehicle templates or component rules changed.

@amilcarlucas amilcarlucas added the AIReview Request an automated AI review; picked up by the reviewprs sweep label Oct 27, 2026
@AP-Review

Copy link
Copy Markdown

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: COMMENT

Reviewed at head 78daa8aa23.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2285/1.html#prMethodicConfigurator-2285

This draft correctly stops the generic Plane telemetry step from clobbering the RC receiver port and from inventing baud and flow-control values. The new tests pass, and the red Windows CI is the same 3 GUI-layout failures seen on master.

Should fix

  • normal_plane/07_telemetry.param:2: step 07 now shows only SERIAL4_PROTOCOL, so the port silently keeps its previous GPS baud (230 in the template defaults) even though the plugin text says to change the parameters below. Consider a conditional add_parameters entry for each SERIALn_BAUD with no New Value in configuration_steps_ArduPlane.json step 07, so the selected port's current baud is shown for the user to check.
Minor (1)

An earlier concern about the use of protected members in the tests was withdrawn, since it matches existing editor tests.

@Sne-k

Sne-k commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

I checked whether any step after 07 sets SERIAL1 again. In empty_4.7.x, step 62 (62_range_finder.param) does: SERIAL1_PROTOCOL,2 and SERIAL1_BAUD,57 are still present in the param file although RNGFND1_TYPE is 0 there. The values are uploaded as they are (no derived or forced rules), so a component put on SERIAL1 in the component editor gets reset at step 62.

In normal_plane, step 62 sets SERIAL1 to a rangefinder. It looked like it was intended for that vehicle, so I left it alone.

I have a small fix with a test. Should I send it as a follow-up PR after this one, or would you rather fold it into this series?

@nflyernz

nflyernz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@Sne-k Thanks for catching this. I agree a separate, focused PR with your regression test would be preferable, particularly while #2285 awaits #2289 integration.

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

AIReview Request an automated AI review; picked up by the reviewprs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants