adafruit / Adafruit_GPS

An interrupt-based GPS Arduino library for no-parsing-required use
Other
471 stars 319 forks source link

New source ids observed in the wild #159

Open sellensr opened 2 months ago

sellensr commented 2 months ago

Adafruit_GPS.h includes:

const char *sources[7] = {"II", "WI", "GP", "PG", "GN", "P", "ZZZ"}; ///< valid source ids

for the first letters of valid sentence names. I've recently encountered some additional source ids on a network including Raymarine and Standard Horizon components.

const char *sources[11] = {"II", "WI", "GP", "PG", "HC", "TI", "SD", "AI", // added 2024-07-24 after observing "GN", "P", "ZZZ"}; ///< valid source ids

Should we add them directly, or with a conditional compile on #ifdef NMEA_EXTENSIONS to keep the data footprint on the minimal library small?

attempt parsing a sentence starting with $TI or others above.