Skip to content

HardwareReport: fix ICSR bit 31, .param comment lines and boot messages for unconfigured GPS - #402

Open
j-w9 wants to merge 3 commits into
ArduPilot:mainfrom
j-w9:hardware-report-fixes
Open

j-w9 wants to merge 3 commits into
ArduPilot:mainfrom
j-w9:hardware-report-fixes

Conversation

@j-w9

@j-w9 j-w9 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor
  • ICSR bit 31 showed as NMIPENDSET: 0x-1 because of a signed shift.
  • .param files: lines weren't trimmed and # comment lines were read as params.
  • A boot message naming a GPS that isn't configured in the final params (e.g. GPS2_TYPE 0) threw and the params section never showed.

j-w9 added 3 commits November 22, 2026 11:21
The field value was shifted with the signed >>, so NMIPENDSET was shown as 0x-1 when bit 31 was set.
A "# comment" line was stored as a NaN parameter, which made Save All Parameters throw. Lines are now trimmed and comments skipped.
…onfigured

A boot message naming a GPS that is disabled in the final parameters threw a TypeError and stopped the load.
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