-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
NED location and GPS location are not strictly consistent #1855
Comments
If the distance is far enough the curvature of the earth may be responsible (equations that calculate the distance between gps coordinates takes the curvature of the earth into account). Do you have the figures outlining the inconsistency? Apologies if you've already ruled this out |
@DavidLSmyth thanks for your reply, and I am not considering the curvature thing. |
I did some of the calculations and as far as I could see there should be a small error in the gps location due to the non-planar geometry of the earth, the points are close enough to be considered on a plane. I'm not sure how the NED figures are calculated, it might be worth having a look at the source code. The calculation of GPS location is easy to find in the source code but it could be worth checking that too |
So, I did some digging: the NED<->geodetic conversions are handled by Now, PawnSimApi.cpp uses the above
Now, EarthUtils.hpp#L306 does mention Also, |
Yet another problem exposed after long flights. I am using NED location for navigation and GPS location for monitor, and I found that when endpoint was far from home position, the NED location and GPS location of the endpoint were not strictly consistent, which is obvious in ground station monitors. Any way to make it better? Thx
The text was updated successfully, but these errors were encountered: