Skip to content

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

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

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

Conversation

@nflyernz

Copy link
Copy Markdown
Contributor

Summary

Addresses F07 from the AMC 5.0.0 ArduPlane Basic Mandatory Configuration walkthrough. Both generic Plane ESC telemetry templates contained hardware-specific SERIAL5_BAUD and SERIAL5_PROTOCOL values. Remove only those four lines. Keep SERVO_BLH_TRATE, Q_M_PWM_TYPE, conditional serial protocol derivation, and port rename behavior unchanged. The normal_plane protocol 42 was DisplayPort, unrelated to ESC telemetry.

Testing

  • 18 focused regression tests pass: both templates; no telemetry; ESC Telemetry on SERIAL5 and SERIAL3; scripting and SCR_ENABLE; bidirectional DShot; FETtec OneWire serial control; saved baud/protocol; eligible FC import; and editor display of a derived UART protocol.
  • 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. Verify the baud rate against actual UART ESC telemetry hardware. Existing FETtec control does not resolve Q_M_PWM_TYPE from that protocol label; this unrelated rule is unchanged. The commit is signed off.

@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 92d61c5322.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2287/1.html#prMethodicConfigurator-2287

The template cleanup and its tests are sound, and CI failures match base, but two template side effects should be addressed before merge.

Should fix

  • normal_plane/08_esc_telemetry.param:3: SERIAL5_PROTOCOL,42 was the template's only MSP DisplayPort port, and 21_osd.param still sets OSD_TYPE,5. Move it to normal_plane/21_osd.param instead of deleting it, or also neutralise OSD_TYPE.
  • empty_4.7.x/08_esc_telemetry.param:2: without a SERIAL placeholder, picking a telemetry UART in the step-08 inline component editor computes SERIALn_PROTOCOL but never adds it to the saved or uploaded parameters until the step is reloaded. ArduCopter already has the same gap. Make refresh_current_step_computed_parameters insert newly applicable derived parameters, and add an inline-transition test alongside the full-rebuild test.

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