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

GPSFix track source improvements #101

Open
ozzdemir opened this issue Jan 15, 2021 · 3 comments
Open

GPSFix track source improvements #101

ozzdemir opened this issue Jan 15, 2021 · 3 comments

Comments

@ozzdemir
Copy link

I was comparing track angle from bestvel and inspvax and got the following result. Is there a specific reason driver uses track angle from bestvel instead of inspvax? I was curious about it since track from bestvel is not stable at low speeds.
Selection_092

@pjreed
Copy link
Contributor

pjreed commented Jan 15, 2021

Hmm. I'm surprised that bestvel is not stable at low speeds, because it's supposed to be the best velocity estimate from all combined sources (https://docs.novatel.com/oem7/Content/Logs/BESTVEL.htm). The reason not to just use inspvax is because that log isn't available at all on devices that don't have an IMU. There might be an option somewhere that needs to be set to factor that into bestval calculation... if not, it'd probably be best to use inspvax.azimuth if available and fall back to bestvel.track_ground if it's not.

@ozzdemir
Copy link
Author

In the end of the documentation you shared, the following statement exists;

Velocity (speed and direction) calculations are computed from either Doppler or carrier phase measurements rather than from pseudorange measurements. Typical speed accuracies are around 0.03m/s (0.07 mph, 0.06 knots).

Direction accuracy is derived as a function of the vehicle speed. A simple approach would be to assume a worst case 0.03 m/s cross-track velocity that would yield a direction error function something like:

d (speed) = tan-1(0.03/speed)

So, it seems to be not using all the sources, it calculates direction from velocity measurements.

@pjreed
Copy link
Contributor

pjreed commented Jan 15, 2021

Oops, that's what I get for just skimming over the description.

Unfortunately, I haven't yet found a single "best" source of orientation, and in fact there's three four -- inspvax for SPAN receivers, heading2 for ALIGN receivers, dualantennaheading for ALIGN receivers with two antennas, and bestvel for everybody else. So the code should probably figure out which one of those are available and use the best one...

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

No branches or pull requests

2 participants