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

gps_common/GPSFix has wrong time data #70

Open
icolwell-as opened this issue Nov 20, 2019 · 4 comments
Open

gps_common/GPSFix has wrong time data #70

icolwell-as opened this issue Nov 20, 2019 · 4 comments
Labels

Comments

@icolwell-as
Copy link
Contributor

icolwell-as commented Nov 20, 2019

The gps/gps topic publishing gps_common/GPSFix messages is using the utc field from the novatel messages to fill the time field in the ROS message instead of GPS time.

@pjreed
Copy link
Contributor

pjreed commented Nov 20, 2019

Ah, that's a good catch. That's definitely not correct, although something to note is that the GPGGA log does not actually report GPS time, so in order to fill that field in properly, the driver would need to get the GPS time from a log that it synchronizes together with GPGGA such as BESTPOS. We could try to estimate it if we fail to synchronize logs for some reason, but I feel like that might be misleading and it'd be better to just leave it blank...

Although the more I look at it, the more I feel like the current approach to generating GPSFix messages -- which is to combine data from GPGGA and GPRMC logs and augment them with BESTPOS logs when possible -- might be better if it were inverted and it used BESTPOS logs as the basis for it and augmented that with GPGGA/GPRMC data when possible. I might test that out and see how it works...

@pjreed pjreed added the bug label Nov 20, 2019
@pjreed
Copy link
Contributor

pjreed commented Nov 21, 2019

All right, if you'd like to take a look at it, I think the branch in #74 should put the correct timestamps in GPSFix messages. It will also use BESTVEL logs to fill in the speed/track and PSRDOP2 logs to fill in the DoP values if it is configured to publish those.

This is actually a pretty significant rewrite of how GPSFix messages are generated, so I'd like to get some more testing for it before I merge it into master.

@icolwell-as
Copy link
Contributor Author

Does it make sense to use INSPVA as the basis for GPSFix? I didn't compare the fields in detail, but they seem to have some overlapping data. INSPVA has gps week and seconds.

@pjreed
Copy link
Contributor

pjreed commented Nov 21, 2019

I think BESTPOS is preferable over INSPVA; BESTPOS is supposed to be the best position calculated by the receiver, which can incorporate INS data, but also INS logs are only available on receivers with SPAN support.

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

No branches or pull requests

2 participants