Hi Paul,
first of all let me say thank you for this great .dll. It helped me pulling out the necessary data I need to get from FS 2k2 so far.
There's only one problem left, which I can't seem to solve all by myself.
I want to get the x,y,z acceleration data from FS to feed these back into a motion platform for a flightsimulator. According to the FSUIPC documentation the offset values for those are:
31C0 //x acc
31C8 //y acc
31D0 //z acc
And these seem to be the right offset values.
Furthermore the data format should be FLOAT64 and the fs units should be in ft/sec/sec.
Here is what i do to get the data:
...
Offset xAccFS = new Offset(0x31C0)
...
double xAccel = ((double)xAccFS.Value);
this.txtXAcc.Text = xAccel.ToString("f1");
...
Ok, so far so good. The data I get seems to be right since when I turn the plane left/right it changes the sign. But the values are somewhat crooked since they are really high...
Maybe you are laughing because this is most certainly a really stupid question, but how can I convert these values so the make sense? Am I missing a conversation there? Or is the "long" type not what i want to use?
Thank you very much,
Philipp