Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Ok, im trying to generate a PBH to send to the FSD Server, im currently struggling!

public Offset pitch = new FSUIPC.Offset(0x578);

public Offset bank = new FSUIPC.Offset(0x57c);

public Offset heading = new FSUIPC.Offset(0x580);

uint pbh = 0;

pbh = ((uint)pitch.Value << 22) | ((uint)bank.Value << 12) | ((uint)heading.Value << 2);

Console.WriteLine(pbh.ToString);

it returns:

P: 53070376 B: 12994522 H: 4274734951

PBH = 4286430620

but the FSD server, using another client sends for the same pitch, bank and heading:

PBH unsigned value is 50348012

P=12 B=3 H=1019

What am i missing?

Posted
What am i missing?

I'm not answering you in three threads. Please stick to one -- see my answer in the other, which summarised is that you aren't reading the descriptions of what you are reading.

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.