Hi Peter Dawson, first let me say I cannot thank you enough for writing your FSUIPCSDK, it has become invaluable for writing addons.
Secondly, I am trying to create an addon in C# .net, that sends data to our webserver, so far I have the heading and speed working, and I tried to take the long and lat from the example program and they work, but what is an FS unit? How can i convert the FS units to normal decimal degrees?
Finally, my altitude is not working at all, I have tried to use this:
int dwResult = -1;
int token = -1;
double alt;
result = fsuipc.FSUIPC_Read(0x0570,8, ref token, ref dwResult);
result = fsuipc.FSUIPC_Process(ref dwResult);
result = fsuipc.FSUIPC_Get(ref token, ref dwResult);
alt = dwResult;
//-1740701696 << That's the number i'm getting from memory, but it should be 3185125031936, as stated in the FSUIPCSDK program
if (result)
{
return alt.ToString();
}
else
{
return 0;
}
Could you please tell me what I'm doing wrong, and how to convert the FS units to decimal degrees?
Thank you again for your SDK and help.