Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MsgGpsTime implementation of gps_time is not checking status flags #1363

Closed
marcomaida94 opened this issue Oct 16, 2023 · 4 comments
Closed

Comments

@marcomaida94
Copy link

marcomaida94 commented Oct 16, 2023

Hello,
I have experienced some inconsistency in MsgGpsTime

{"crc":11885,"length":11,"msg_type":258,"msg_name":"MSG_GPS_TIME","payload":"AADM7g0AAAAAAAA=","preamble":85,"sender":789,"wn":0,"tow":913100,"ns_residual":0,"flags":0}

As you can see here, week number is zero (this data is recent) and the flags field is also 0, which is supposed to communicate that the message is invalid. By reading the docs:
Screenshot 2023-10-16 at 18 17 51

However, the gps_time function does not check for this flag, and when called it returns an invalid timestamp for the above case.

Should the function be fixed and return None if the status flag is 0?

Thank you!

@silverjam
Copy link
Contributor

Hello @marcomaida94 -- we're discussing this internally, we should have a response for you soon. Thanks for raising the issue!

@marcomaida94
Copy link
Author

Thank you @silverjam for the quick reply !

@pcrumley
Copy link
Contributor

Hi @marcomaida94 -- Thanks for bringing this issue to our attention. It should be closed by PR: #1375

@marcomaida94
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants