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

rust: check more messages for time validity #1376

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

notoriaga
Copy link
Contributor

@notoriaga notoriaga commented Nov 14, 2023

Description

Same as #1375 but accounts for the other 3 time messages and msg_odometry

@swift-nav/devinfra

API compatibility

Does this change introduce a API compatibility risk?

API compatibility plan

If the above is "Yes", please detail the compatibility (or migration) plan:

JIRA Reference

https://swift-nav.atlassian.net/browse/BOARD-XXXX

@@ -59,6 +59,12 @@

BASE_TIME_MSGS = ["MSG_OBS", "MSG_OSR", "MSG_SSR"]

CHECK_FLAGS = """
if self.time_source().ok()? == TimeSource::None {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually like this one more because it checks against a specific variant. So if a message gets added that has a TimeSource but no None state for some reason we'll get a compile error

@notoriaga notoriaga marked this pull request as ready for review November 14, 2023 18:19
@notoriaga notoriaga requested review from pcrumley, jungleraptor and a team as code owners November 14, 2023 18:19
Copy link
Contributor

@pcrumley pcrumley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up on this and getting the remaining messages

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

Successfully merging this pull request may close these issues.

2 participants