I’m doing some Python app/web and I was able to reach out all the simvars needed.
Except for heading… based on SDK Documentation it says:
and as you can see I’m getting completely different values.
At first I thought I was getting radiants… so a simple math.cos(math.radians(foo)) will solve the issue.
This is the raw value that I’m getting when calling “PLANE_HEADING_DEGREES_GYRO”
That one can drift because it’s simulating a gyro. To check if it’s having any effect hit D on the keyboard to compensate for any drift. That seems a way out though.
I tried TRUE, and i’m still getting the same value… that’s the weird part
PLANE HEADING DEGREES TRUE
And yes… I did the proper convertion radians to degrees and still getting the same value.
So… to answer my own topic… I went to the manual route with a function.
and it works!!
So your radians conversion was wrong. Be aware though that the heading true variable references a heading from true north rather than magnetic north so depending on what you want it for you may need a different one.