Jump to content
The simFlight Network Forums

craig1231

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by craig1231

  1. Ahh I didnt know that. What do you mean by, "Each one requires a process change." When you dont expect me to call for each variable? Is the following code correct? I know its in VB6, should be easy enough to interpret :D Dim aInt As Integer Dim dwResult As Long While running FSUIPC_Read &H8BE, 2, VarPtr(aInt), dwResult Label4.Caption = aInt / 16384 * 860 Wend FSUIPC_Process dwResult Compared with how the N1 display updates the EGT is very slow. Updates ~5 times a second when I can read the N1 at ~18 times a second. Craig P
  2. I thought the offset for reading/writing doors was 3367 not 2A70 Craig
  3. The code below gets the Engine 1 EGT to display in a label, however it is very slow. Other calls to Eng 1 N1 are usually quite smooth. Is there anything you can see I am doing incorrectly? Dim aInt As Integer Dim dwResult As Long While running FSUIPC_Read &H8BE, 2, VarPtr(aInt), dwResult FSUIPC_Process dwResult Label4.Caption = aInt / 16384 * 860 DoEvents Wend Cheers Craig P
  4. OK thanks Pete that now works adding the &, but another problem has occured :? When I read the offset F096 (Aircraft ID) it returns ???4. '4' being the last character in the callsign SKY2304, any suggestions?? :D Thanks Craig
  5. I am trying to read TCAS data and tried to read offset F068 (Traffic Range) but it returns 0, see if you can see where I am going wrong :D Dim dwResult As Long Dim range As Byte FSUIPC_Read &HF000, 1, VarPtr(range), dwResult FSUIPC_Process dwResult MsgBox range I have also tried to 'inject' the TCAS structure in to offset 1F80 as it says to in the FSUIPC SDK, but still no avail. Public Type TCASData id As Single lat As Long lon As Long alt As Long hdg As Integer gs As Integer vs As Integer comm As Integer stat As Byte call As String * 15 End Type Dim tDat As TCASData Dim dwResult As Long FSUIPC_Write &H1F80, Len(tDat), VarPtr(tDat), dwResult FSUIPC_Process (dwResult) And then I try reading the offset above and it still doesnt work :? . I hope I have explained it ok and I hope you are able to help. Thanks Craig
  6. I couldn't find anything that relates to... But heres the next best thing http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=39615&lngWId=1 Craig
  7. Hi Pete, I am creating a program in VB, in which needs to read all/most of the FSUIPC offsets. Is there a way of intergrating the FSUIPC.FSI file into the program? Is it a random or a serial file? How is the file broken down? I.e into data segments - 0280 (Nav Lights) U8 size=1 cockpit... It'll be so helpfull if the file is able to intergrate, rather than typing each and every offset :? Thanks Craig Phillips
×
×
  • 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.