Skip to content

Difference between latitude & longitude sent by sendPOSI and read by getPOSI #181

@yuhao-z

Description

@yuhao-z

Hello,

I'm currently using X-plane Connect with X-Plane 11 in MATLAB (R2018b) and there is an issue I found when I used the 'sendPOSI' and 'getPOSI' commands.

First, I used 'sendPOSI' to place the regarding aircraft at a specific longitude & latitude while X-Plane was paused. Then without moving the aircraft and keeping X-Plane paused, I used 'getPOSI' to read the current longitude & latitude. However, those two longitude & latitude pairs are not exactly the same.

For example, using following commands:
posi_send = [42.2257528, -83.7499732, -998, -998, -998, -998, -998];
sendPOSI(posi_send, 0, socket);
posi = getPOSI(0, socket);

'posi' will return [42.2257538, -83.7499695, ,,,,]; (The elements represented by '' are not concerned.)

As you can see, longitude & latitude in 'posi' and longitude & latitude in 'posi_send' are not the same. Is this caused by some round-off error or I'm not using X-Plane Connect correctly?

Really appreciate it if you could look into this issue at your convenience.

Thanks,
Yuhao

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions