Jump to content
The simFlight Network Forums

sirbenson

new Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sirbenson

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sirbenson

    C# Get correct pitch and bank values

    Wow thank you Paul, it works!
  2. 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 :(
×

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.