Repository navigation
Conversation
Signed-off-by: nflyernz <319460892+nflyernz@users.noreply.github.com>
Previous review (2026-10-27)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Requesting changes: the new derived GNSS serial rules are correct when evaluated, but they break the inline GNSS connection edit on step 18. Blocking
Should fix
|
Signed-off-by: nflyernz <319460892+nflyernz@users.noreply.github.com>
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head No blockers remain; one should-fix depends on #2289 landing first. Since the last review, the ParameterForcedOrDerivedError on inline GNSS port changes with a saved SERIALn_PROTOCOL is fixed by the new guard, and tests now cover it. Should fix
Minor (1)
|
F17: ArduPlane GNSS serial-port defaults
The AMC 5.0.0 ArduPlane Basic Mandatory Configuration walkthrough found that both generic Plane GNSS templates unconditionally set
SERIAL3_PROTOCOL=5. That can change a port without a physical GPS receiver. Serial protocol 5 selects the GPS transport; it is distinct fromGPS1_TYPE=5, the NMEA driver.Remove that hardcoded line from
empty_4.7.x/18_gnss.paramandnormal_plane/18_gnss.param. Plane Step 18 now derivesSERIAL1_PROTOCOLthroughSERIAL9_PROTOCOLas 5 only for the selected UART and a physical serial GPS driver. The firmware-dependentGPS_TYPEandGPS1_TYPErules are unchanged. The new change reason was added to the generated configuration-step translation strings.The rules make no serial assignment for None, DroneCAN, MAVLink, MSP, HIL, or ExternalAHRS. No baud rate is inferred.
Validation
ty check, andgit diff --check: passed.Inline editor follow-up and dependency
Commit
928697ad11e3e6ffixes the GNSS inline rename exception. Forced, derived, and F17 rule-owned serial destinations are left to their owning rules. Regression tests cover saved GNSS port changes, special transports, repeated changes, and final export.Validation: 432 focused tests passed, with Ruff, focused Pylint, targeted ty, and
git diff --checkpassing.Remaining dependency: Changing from None to a physical GNSS UART while Step 18 is open requires the shared inline derived-parameter refresh correction in #2289. Until integrated, reloading the step makes the newly derived parameter available.
No physical flight controller was used. Leave this PR in draft for upstream CI and automated review.