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

getPOSI is not giving sensible LLA #300

Open
brendan-waters opened this issue May 27, 2023 · 1 comment
Open

getPOSI is not giving sensible LLA #300

brendan-waters opened this issue May 27, 2023 · 1 comment

Comments

@brendan-waters
Copy link

Hi All,

I have been tinkering with XplaneConnect and have noticed some unusual behaviour with the getPOSI matlab function. I notice that if I start from a known airport (i.e. Sydney Kingsford Smith Airport (Lat: -33.930 Lon: 151.17 Alt: 0) ), getPOSI returns a completely different LLA i.e. (-109.107, -3.0158, 0). Furthermore, if the aircraft is stationary, this LLA changes quite significantly.

Has anyone had similar experience or know why this might be happening?

@brendan-waters
Copy link
Author

An example is the following code:

POSI = [lat0, lon0, alt,  0,    0,   0,  0];
sendPOSI(POSI, 0, Socket); 
POSI = getPOSI(0, Socket);
sendPOSI(POSI , 0, Socket);

where the getPOSI produces a LLA significantly different to the initial lat0, lon0, alt

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

1 participant