Hey everybody,
i'm working with the fsuipcclient 3.0 in my c# project. I've some problems with two offsets (pitch and bank). I get the wrong values from fsuipc. i tested it syncron with simconnect. The values from simconnect are correct, fsuipc send wrong values (i think or i made a mistake). I found some solutions in this forum but it doesnt work for me.
Here my code:
Offsets:
private static readonly Offset<double> AirplanePitch = new Offset<double>(0x0578);
private static readonly Offset<double> AirplaneBank = new Offset<double>(0x057C);
And receive the data:
internal static void GetPitchRoll()
{
MyAircraft.Pitch = AirplanePitch.Value * 360.0 / (65536.0 * 65536.0);
MyAircraft.Roll = AirplaneRoll.Value * 360.0 / (65536.0 * 65536.0);
}
I've got only values between -1.5 deg and + 1.5 deg. Simconnect send me the correct values from -50deg and + 50deg. Is my calculation wrong?
I've tested it with other types (float, int, long) but the same :(