Parse GGA/GSA fix quality from NMEA, add PAIR command init sequence
Replace altitude-validity heuristic with authoritative GGA quality field (SPS/DGPS/RTK) and GSA nav mode (2D/3D) via TinyGPSCustom extractors. Send $PAIR062 commands at boot to filter NMEA output to only GGA/GSA/RMC/GSV and configure PPS for fix-only pulses. GpsPayload struct gains fix_quality field (16 -> 14 bytes packed).
This commit is contained in:
parent
80158e10d7
commit
7db4204d26
3 changed files with 143 additions and 13 deletions
|
|
@ -59,6 +59,10 @@
|
|||
#define BARO_REPORT_MS 1000 // 1Hz pressure/temperature
|
||||
#define STATUS_PRINT_MS 1000 // 1Hz USB serial status line
|
||||
|
||||
// GPS PAIR command init
|
||||
#define GPS_INIT_DELAY_MS 200 // Wait after UART open before sending commands
|
||||
#define PAIR_ACK_TIMEOUT_MS 500 // Timeout waiting for $PAIR001 acknowledgment
|
||||
|
||||
// --- LED ---
|
||||
#define LED_BRIGHTNESS 30 // 0-255, keep low to avoid blinding in enclosure
|
||||
#define LED_COUNT 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue