Commit 5343a7f
committed
Extend MSP_GPSSTATISTICS to include GPS hardware version
Add hwVersion field to MSP_GPSSTATISTICS (166) for GPS module detection:
- Field added at end of message (backward compatible)
- Exposes gpsState.hwVersion (800=M8, 900=M9, 1000=M10, 0=Unknown)
- Enables configurator auto-detection of GPS module type
Changes:
- src/main/fc/fc_msp.c: Add sbufWriteU32(dst, gpsState.hwVersion)
- docs/development/msp/msp_messages.json: Document hwVersion field
Used by configurator GPS preset UI to automatically configure optimal
constellation/rate settings based on hardware capability (M8/M9/M10).
Backward compatible: Old configurators ignore extra bytes, new configurators
check byteLength before reading hwVersion field.
Related configurator PR: feature-gps-preset-ui branch
Research: claude/developer/docs/gps/m9-16-satellite-limitation-official.md1 parent a7932b9 commit 5343a7f
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4896 | 4896 | | |
4897 | 4897 | | |
4898 | 4898 | | |
| 4899 | + | |
| 4900 | + | |
| 4901 | + | |
| 4902 | + | |
| 4903 | + | |
| 4904 | + | |
4899 | 4905 | | |
4900 | 4906 | | |
4901 | 4907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| 1012 | + | |
1012 | 1013 | | |
1013 | 1014 | | |
1014 | 1015 | | |
| |||
0 commit comments