Skip to content

fix(ArduPlane): Remove generic SERIAL2 RC receiver default - #2284

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

nflyernz wants to merge 1 commit into
ArduPilot:masterfrom
nflyernz:fix/arduplane-rc-serial-default

Conversation

@nflyernz

Copy link
Copy Markdown
Contributor

Summary

Addresses F05 from the AMC 5.0.0 ArduPlane Basic Mandatory Configuration walkthrough. Both generic Plane receiver templates unconditionally set SERIAL2_PROTOCOL=23 (RCIN), even when the receiver is connected elsewhere. Remove that assignment from empty_4.7.x and normal_plane; the existing configuration-step rules still derive RCIN for the serial port selected in the Component Editor.

Testing

  • Nine focused regression tests pass: both templates, SERIAL2, SERIAL3, non-serial RCIN, saved settings, and eligible FC auto-imports.
  • Ruff check and format, focused Pylint, targeted ty check, and git diff --check pass.
  • No physical flight controller used.

The commit is signed off. No other vehicle templates or RC configuration 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: REQUEST CHANGES

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

The template change is correct for initial step loading, but it breaks inline changes to the RC receiver's FC Connection in step 05.

Blocking

  1. ArduPlane/empty_4.7.x/05_remote_controller_receiver.param:4 (same for normal_plane): without this line, changing FC Connection in the step's inline component editor no longer moves the RCIN assignment. refresh_current_step_computed_parameters (data_model_parameter_editor.py:2785) only patches derived rows that already exist and renames only parameters present in the file. So SERIAL2→SERIAL3 leaves SERIAL2_PROTOCOL=23 and no SERIAL3_PROTOCOL, and RCIN→SERIAL3 sets no serial port at all. The base handled both. Make the inline refresh add newly derived parameters and drop previously added ones that are no longer derived (or repopulate the step), and test the transition through ParameterEditor.

Low

  • tests/test_arduplane_rc_serial_default.py:90: the saved-setting test is named "preserved" and asserts SERIAL2_PROTOCOL=2 survives (R95), but the editor then applies the discarded SERIAL2_PROTOCOL→SERIAL3_PROTOCOL rename. Say it checks processor output, or assert the editor's final state.

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.

3 participants