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:
Ryan Malloy 2026-02-11 18:28:59 -07:00
parent 80158e10d7
commit 7db4204d26
3 changed files with 143 additions and 13 deletions

View file

@ -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