Skip to content

Issue with Timestamp Parsing #41

Description

@171930433

$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,,,A
43

Here is a summary of the issues I've encountered and a suggestion:

  1. 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.
  2. Even with GPGGA enabled, which does provide access to time, the library discards the fractional part of the seconds, losing all sub-second precision.
  3. 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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions