Jump to content
The simFlight Network Forums

ziqabo

Members
  • Posts

    2
  • Joined

  • Last visited

About ziqabo

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

ziqabo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I don't know Delphi -- is "single" a 16-bit unsigned integer, because if it isn't there's your first mistake? The heading at 07CC is! Then, if you divide a 16 bit value by 65536 you are bound to get a fraction and you can't hold fractions in a 16-bit integer. Try copying the value into a floating point variable before you do the conversion. If a Delphi "single" is a 32-bit "float" then you cannot read the 16-bit integer directly into that and expect it to make any sense. Floating point formats are completely different. Regards, Pete Roger thanks the unsigne 16 bit is "word" in delphi and now run ok. Thanks.
  2. Hi, i have a problem when i read the offset 07CC, i wrote in delphi this lines ff : single; FSUIPC_Read($07cc, 2, @ff, result); FSUIPC_Process(result); label4.Caption := floatToStr((ff/65536)*360); but i get a value that not is de HDG of Autopilot. Thanks.
×
×
  • 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.