Jump to content
The simFlight Network Forums

Reading doubles (Payload stations) problem


Recommended Posts

I am playing with the C# version and noticed it does not have a member to read doubles (Float64) items from FSUIPC.

I am trying to read the payload stations, and for example while the weight of the first station (0x1400) displays on FS as 2720, when I read an 8 byte array (don't know how to convert that) I get

[0] = 0
[1] = 0
[2] = 0
[3] = 0
[4] = 0
[5] = 64
[6] = 165
[7] = 64

I come up with numbers much much greater than 2720 pounds! How can I read doubles from what FS returns?

Link to comment
Share on other sites

Incase you don't already know, I have a .NET dll available for interfacing with FSUIPC.

It has a number of advantages over the original SDK, for example it has support for doubles and it's object-oriented rather than procedural.

Details and download in the sticky near the top of this forum.

Paul

Link to comment
Share on other sites

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.