• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

KEY_TUG_HEADING

Messages
129
Country
unitedstates
I have created a slider that outputs values 2147483647 to -2147483647 (MSFS 2020)

Notes say "Triggers tug and sets the desired heading. The units are a 32 bit integer (0 to 4294967295) which represent 0 to 360 degrees. To set a 45 degree angle, for example, set the value to 4294967295 / 8."

I start pushback and send the value of the slider as I change it ... and I can't see any relationship

TransmitEvent(EventEnum.KEY_TUG_HEADING, uintDirection);

I can do pushback start and end, pushback speed .. but the angle I can't control. Help?
 
Last edited:
According to Prepar3D forums this event works. If it's not working in MSFS, then it's a bug. Yes, I realize they are not the same sim... but the SImConnect in MSFS started in FSX, as did the SimConnect in Prepar3D.
 
I'm back to this again .. I have made progress
The DOCUMENTATION says:
The units are a 32 bit integer (0 to 4294967295) which represent 0 to 360 degrees. To set a 45 degree angle, for example, set the value to 4294967295 / 8.

  1. int32 max size is 2147483647 so it must mean -2147483647 to +2147483647
so I made a slider control with that range … and when it changes (value) I trigger

TransmitEvent(EventEnum.KEY_TUG_HEADING, iValue);

and it works, but isn’t going to the heading I calculate .. , it seems to be relative to the starting position of the spawn …

so (for example, depends on my initial heading) I can make heading from SOUTH through EAST to NORTH , but not to 359 and to WEST

BUT , if I swing the slider in the opposite direction (that I started) it crosses 0 to 359 358 .. etc.

the heading must be passing through a direction that then needs negative number to continue the turn.

any help or examples greatly appreciated

(I can divide the iValue by 5,965,232.35 to get the range within +360 and -360))


I can't find a value to read what the current VALUE is from simconnect , so I take the current heading multiply by 5,965,232.35 to read value -2147483647 + value
 
Last edited:
I solved it by brute force ... I turned the aircraft in a 360 degree turn and captured all the TUG HEADING values...

then I shift them all to match the original direction and it works .. have to make adjustment at the 2147483647 value as it wraps around -2147483647 etc.
 
Last edited:
Back
Top