$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,76
$GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A43
Here is a summary of the issues I've encountered and a suggestion:
- When I configure the library to parse only GPRMC for timestamping (e.g., for PPS synchronization), the time-of-day fields are not parsed and are therefore inaccessible.
- Even with GPGGA enabled, which does provide access to time, the library discards the fractional part of the seconds, losing all sub-second precision.
- I am not using the LWGPS_CFG_STATEMENT_PUBX_TIME option as it is for a non-standard, vendor-specific sentence.
Suggestion: For improved clarity, would it be better if the data structure for parsed statements more directly mapped the fields from each sentence type? For example, using a single unified struct for all common data (time, date, position, etc.) that each parser populates, rather than separate structs in a union.
Best regards,
$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,76
$GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A43
Here is a summary of the issues I've encountered and a suggestion:
Suggestion: For improved clarity, would it be better if the data structure for parsed statements more directly mapped the fields from each sentence type? For example, using a single unified struct for all common data (time, date, position, etc.) that each parser populates, rather than separate structs in a union.
Best regards,