Jump to content
The simFlight Network Forums

Dragonsigns

Members
  • Posts

    7
  • Joined

  • Last visited

Dragonsigns's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This is the interface that you created, it is called FSUIPC4 and I'm using the C# sdk example from your site.
  2. Heading Indicator not returning same result. Heading Displays 30 Dec but my code returns 18 Dec. double Heading = 0; double Variation = 0; result = fsuipc.FSUIPC_Read(0x0580, 4, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Get(ref token, ref dwResult); Heading = dwResult; result = fsuipc.FSUIPC_Read(0x02A0, 4, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Get(ref token, ref dwResult); Variation = dwResult; Heading = Heading * 360 / (65536.0 * 65536.0); Variation = Heading - (Variation * 360 / 65536.0); if (Variation < 0) { Variation += 360; } else if (Variation > 360) { Variation -= 360; } textBox11.Text = String.Format("{0:#}", Variation) + " Dec";
  3. Heading Indicator not returning same result. Heading Displays 30 Dec but my code returns 18 Dec. double Heading = 0; double Variation = 0; result = fsuipc.FSUIPC_Read(0x0580, 4, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Get(ref token, ref dwResult); Heading = dwResult; result = fsuipc.FSUIPC_Read(0x02A0, 4, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Get(ref token, ref dwResult); Variation = dwResult; Heading = Heading * 360 / (65536.0 * 65536.0); Variation = Heading - (Variation * 360 / 65536.0); if (Variation < 0) { Variation += 360; } else if (Variation > 360) { Variation -= 360; } textBox11.Text = String.Format("{0:#}", Variation) + " Dec";
  4. Hi, I'm using FSX but not the delux version with fsuipc4 (registered) the demo's that came with the fsuipc sdk just give me the following error "IPC sendmessage failed all retries". Both read and write IPC is checked in the fsuipc add-on.
×
×
  • 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.