mihai-dinculescu / msfs-2020-gps-link

Transmit GPS data from Microsoft Flight Simulator 2020 to navigation apps.
MIT License
13 stars 1 forks source link

Ground track discrepancy #56

Closed johnpayne closed 1 year ago

johnpayne commented 1 year ago

Hello,

It seems the track in MSFS 2020 disagrees with the track in GPS Link [v0.3.1] by about 10 degrees.

Example : MSFS 2020 says I'm tracking 268° and GPS Link says I'm tracking 258°.

Microsoft Flight Simulator Screenshot 2023 03 12 - 14 31 08 15 (2)

Screenshot_20230312-143217_Avare

I'm using an Android phone with AVARE for the external client.

mihai-dinculescu commented 1 year ago

Thank you for reporting this.

I'll have to get a bit creative with testing. Screenshot_20230319_113252_Google Play Store

mihai-dinculescu commented 1 year ago

I'll try and debug it once this BlueStacks saga is over. https://www.reddit.com/r/BlueStacks/comments/11unik2/trojan_virus/

johnpayne commented 1 year ago

I had trouble getting my local environment to compile this code...but I made the changes I believe it needs in branch "ground_track_refactor". See what you think. I can retest it if you can compile it for me.

mihai-dinculescu commented 1 year ago

The issue is with the track calculation. It correctly subtracts the westerly variation, but instead of adding the easterly one, it subtracts it.

I'll have a fix out tomorrow.

mihai-dinculescu commented 1 year ago

Fixed in https://github.com/mihai-dinculescu/msfs-2020-gps-link/releases/tag/v0.3.2.

johnpayne commented 1 year ago

Confirmed. Thanks!!