Jump to content
The simFlight Network Forums

Recommended Posts

Posted
I'm using fsuipc for .cs
This conversion yeilds the correct GS speed. but as mentioned "GS: Ground Speed, as 65536*metres/sec. Not updated in Slew" is not retrieving the correct value.
mode!
fsuipc.FSUIPC_Read(0x02B4, 4, ref token, ref resultValue);
fsuipc.FSUIPC_Process(ref resultValue);
fsuipc.FSUIPC_Get(ref token, ref resultValue);
double groundpseed = resultValue* 3600 / 65536 / 1852;

 

 

Similarly for TAS,doesn't give the correct value.

 

fsuipc.FSUIPC_Read(0x02B8, 4, ref token, ref resultValue);
fsuipc.FSUIPC_Process(ref resultValue);
fsuipc.FSUIPC_Get(ref token, ref resultValue);
double tas = resultValue * 128;
 
 
 
Also for fuel weight, not the correct reading
 
fsuipc.FSUIPC_Read(0x0AF4, 2, ref token, ref resultValue);
fsuipc.FSUIPC_Process(ref resultValue);
fsuipc.FSUIPC_Get(ref token, ref resultValue);
double fuelonboard = resultValue*256;

 

Same goes for heading too.

 

 

 

 

  • 2 weeks later...
Posted

What is ".cs"?

 

I don't know the coding you are using I'm afraid. Are you using Paul Henty's .NET DLL? If so you need to use the Subforum for this, above.

 

As for "doesn't give the correct value", have you not tried to debug the code to see why? Is there no relation?

 

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.