Jump to content
The simFlight Network Forums

Nikko Agustino

new Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Indonesia

Nikko Agustino's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Pete, I'm sorry it's a misunderstanding here. I think the xpdr value is hexadecimal and need to be converted to integer. I was wrong, it was the opposite. And now the following code is fully working. FSUIPC_Read($0354, 2, @xpdr, dwResult); FSUIPC_Process(dwResult); label2.Caption := IntToHex(xpdr, 1); [/CODE] Thank you very much Pete.
  2. Hi Pete, Sorry for my mistake. I already change the code to integer value and the result is different from FS Interrogate value. Here is the result for some squawk. squawk result 1200 4608 2000 8192 7500 29952 7600 30208 7700 30464 I have no idea how to convert this. Or maybe I make another mistake to retrieve the value? FSUIPC_Read($0354, 2, @xpdr, dwResult); FSUIPC_Process(dwResult); label2.Caption := IntToStr(xpdr); [/CODE]
  3. Hello forums, Currently I'm building an ACARS for my virtual airline. And I have a problem with BCD data from offset $034C, $034E, $0350, $0352, and $0354 which is shown as BCD. How can I store BCD data to delphi variable? I have searched on this forum and google but I can't find how to do it. FSUIPC_Read($0354, 4, @xpdr, dwResult); FSUIPC_Process(dwResult); label2.Caption := FloatToStr(xpdr); [/CODE] If I use the above code it only show 0 on the label. Regards, Nikko
×
×
  • 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.