July 10, 200223 yr Can anyone help me, please? I did some changes in FSUIPC_SDK for Delphi, as the following code and, although I had followed SDK's documentation, the results were not the expected. Can anybody explain me what is wrong? vardwResult : DWORD;LatHi,LatLo,LongHi,LongLo,AltHi,Heading : Integer;rLatHi,rLatLo,rLongHi,rLongLo,rAltHi,rHeading : Real;ResultLatitude,ResultLongitude : Real;begin if FSUIPC_Read($0564, 8, @LatHi, dwResult) and FSUIPC_Read($0560, 8, @LatLo, dwResult) and FSUIPC_Read($056C, 8, @LongHi, dwResult) and FSUIPC_Read($0568, 8, @LongLo, dwResult) then begin rLatHi := (LatHi / (90 * 10001750); rLatLo := ((LatLo / (90 * 10001750) / 4294967296; ResultLatitude:= rLatHi + rLatLo; LabelLat.Caption := FloatToStr(ResultLatitude); rLongHi := LongHi / (360 * 4294967296); rLongLo := LongLo / (360 * 4294967296); ResultLongitude := rLongHi + rLongLo; LabelLong.Caption := FloatToStr(ResultLongitude); end; if FSUIPC_Read($0580, 1, @Heading, dwResult) then begin rHeading := Heading / 65536; LabelHeading.Caption := FloatToStr(rHeading); end; end; Thank you!
July 11, 200223 yr Author I believe you posted this message to the wrong forum. This forum is for tools used to generate AI traffic.Hope this helps,-- Tom GibsonCalifornia Classic Propliners: http://www.calclassic.com/Cal Classic Alco Page: http://www.calclassic.com/alco/Freeflight Design Shop: http://www.freeflightdesign.com/ San Diego Model RR Museum: http://www.sdmodelrailroadm.com/Drop by! ___x_x_(")_x_x___ Tom Gibson CalClassic Propliner Page
Create an account or sign in to comment