Jump to content
The simFlight Network Forums

SimStar001

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by SimStar001

  1. Hello Pete, I´ve got a short question. How to read a special bit of an offset? I am using this code: if FSUIPC_read($7397,1,@Value,dwresult) then if FSUIPC_Process(dwResult) then result := Value; But how to get single bits of this offest? Best Regards Marco
  2. Hello Pete, is there any possibility to write a groundspeed to the FSUIPC to simulate pulling an aircraft after pushback? Offset 02B4 is reading only. Is there any chance to do this? Best regards Marco
  3. Oh Pete, I use Delphi since 7 Years, I know how to use it, and developed a lot of tools, also using the FSUIPC. So now there is the problem with this code: var FSUIPC_connect : boolean; error_code : dword; begin if FSUIPC_Open(SIM_ANY,error_code) then showmessage('FSUIPC connected') else showmessage(ResultText[error_code]); Form1.Caption := 'Voice ATIS 2 BETA ' + ResultText[error_code]; So this doesn´t work: FSUIPC_Open(SIM_ANY,error_code) with Delphi 7 it works, with delphi 2010 not... So I do not know how to search for Problem!
  4. Maybe it helps: this is the error code which returns: "IPC request contains bad data"
  5. Hello Pete, I dont, know if there is a tool to debug it. I think the problem occurs only with the FSX. So I will post the problem as well in a delphi forum. Maybe there is a solution for this problem. Thanks...
  6. Hello Pete, I tried to use the FPCUser.pas with Delphi 2010, so implementation is ok. But when I try to connect to FSUIPC, "FSUIPC_open()" I get all the time "false" as result. With Delphi 7 it works! So is there something special to keep in mind? Best Regards! Marco
  7. thanks fr answer, but I cant find out the offset.... can you give me the offset i need?
  8. Hello, does anybody knows how to disable the automatically ATIS on FS when using the real world ATIS Frequency? I want to disable the voice of FS and the floating text! is it possible?
  9. Hello Pete, thirst thanks for your great support here... I get the same values like your FSInterogate, so there is no fault there. I also solved the problem. Now I get the correct value. But it is strange... because the fault is loceted in this line... This code works correctly: function GetLongitude : double; var dwresult : dword; Longitude : int64; begin FSUIPC_read($0568,8,@Longitude,dwresult); if FSUIPC_Process(dwResult)then result := longitude / (65536.0 *65536.0 * 65536.0) * 360 / 65536.0; //* 360 / (65536.0 * 65536.0 * 65536.0 * 65536.0); end; This code doesn't work: function GetLongitude : double; var dwresult : dword; Longitude : int64; begin FSUIPC_read($0568,8,@Longitude,dwresult); if FSUIPC_Process(dwResult)then result := longitude * 360 / (65536.0 *65536.0 * 65536.0 * 65536.0); //* 360 / (65536.0 * 65536.0 * 65536.0 * 65536.0); end; The fault occurs when using this formating code: longitude * 360 / (65536.0 *65536.0 * 65536.0 * 65536.0); //* 360 / (65536.0 * 65536.0 * 65536.0 * 65536.0); It is very strange...
  10. Hello, I tryed to read out the aircraft position Longitude and Latitude here is my code: procedure TForm1.Button5Click(Sender: TObject); var dwresult : dword; Longitude : int64; Latitude : int64; lat , lon : extended; begin FSUIPC_read($0568,8,@Longitude,dwresult); FSUIPC_read($0560,8,@Latitude,dwresult); if FSUIPC_Process(dwResult)then begin lat := latitude * 90 / (10001750.0 * 65536.0 * 65536.0); lon := Longitude * 360 / (65536.0 * 65536.0 * 65536.0 * 65536.0); showmessage(inttostr(Latitude) + ' / ' + floattostr(lat)); //shows correct value showmessage(inttostr(Longitude) + ' / ' + floattostr(lon)); // shows invalid value end; end; the problem is that I do not get a correct value for the Longitude. example EDDF N50* 1.66' / E8* 32.09' results are 50,0277.... (correct) and -0.465... (incorrect) What is not correct on my code?
×
×
  • 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.