plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

ZenMusic avatar image
ZenMusic asked ZenMusic answered

Intially determine the TUG heading offset?

C# and simconnect ... I have a TUG for pushbacks working very well ..

HOWEVER when I first connection to a flight (simconnect) I have to determine the "True North" offset for the tug directions ... it is different for varying locations on the globe.


Now what I do is issue a pushback direction and see where I end up HEADING ... and it is off like 11 degrees in KLAX and then I know the offset. How can I know this initially? thanks

simconnect
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @ZenMusic

I guess you can use the MAGVAR simulation variable for this.
And if you need this for a distant object, maybe you can get the magnetic variation from a nearby waypoint through the facilities API:
SIMCONNECT_DATA_FACILITY_WAYPOINT (flightsimulator.com)

Regards,
Sylvain

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

ZenMusic avatar image
ZenMusic answered

thanks, that worked

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.