Jump to content
The simFlight Network Forums

lucasneves

Members
  • Posts

    2
  • Joined

  • Last visited

lucasneves's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Dear Pete, At first, thanks for answering me. Do you have some example in C / C++ or another language taking this offset? I can try to write it to delphi. Thanks again. UPDATE: I tried to take the value using a LongInt type variable and it worked! Thanks!
  2. Hi everybody, I've started today in take offsets from FSUIPC and send them to Delphi. For study, I am using the Delphi example of the SDK and trying to implement another offsets. During tests with the IAS (offset 02BC), I am not being able to return the correct value of this offset. Comparing with FsInterrogator, my value is very diferent to the value in Fsint. I am sending the routine that calculates the Airspeed in my program. If somebody can tell me what am I doing wrong, i'll be aprreciate. I believe I am not using some other convertion or taking the value in a wrong way. Here is the code: =========================================== procedure TFrmTPrincipal.MostraVelocidade; var dwResult : DWORD; Velocidade: Byte; Calculo: Double; begin if FSUIPC_Read($02BC, 4, @Velocidade, dwResult) then begin if FSUIPC_Process(dwResult) then begin Calculo := Round(Velocidade / 128); stVelocidade.Caption := FloatToStr(Calculo); end; end; end; ============================================================ Thanks very much!
×
×
  • 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.