Jump to content
The simFlight Network Forums

Hans Zeng

new Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    ZSWZ

Hans Zeng's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yeah, I should check it because I want to support FS9. I think I will have much work to do tomorrow, and thanks for your patient answer.
  2. It is my first time to develop a VB program, I am just a php coder before, and I will take your advice. :razz: The FSUIPC4 Offsets Status.pdf told me that "11B8 G-Force: copy of 11BA on touchdown." So I use it.... Hans
  3. Ok, I will refer to the standard code later. I have tested out some issues last night. 'GND-SKY Dim strGND As Integer dwOffset = (&H366) dwSize = 2 If FSUIPC_Read(dwOffset, dwSize, VarPtr(strGND), dwResult) Then If FSUIPC_Process(dwResult) Then GND = strGND End If End If 'VS on Touchdown Dim strLDGVS As Long dwOffset = (&H30C) dwSize = 4 If FSUIPC_Read(dwOffset, dwSize, VarPtr(strLDGVS), dwResult) Then If FSUIPC_Process(dwResult) Then LDGVS = strLDGVS * 60# * 3.28084 / 256# End If End If 'G-Force on Touchdown Dim strLDGGF As Double dwOffset = (&H11B8) dwSize = 2 If FSUIPC_Read(dwOffset, dwSize, VarPtr(strLDGGF), dwResult) Then If FSUIPC_Process(dwResult) Then LDGGF = strLDGGF / 625 LDGGF = Format(LDGGF, "0.00") End If End If 'Timer1 is enabled by other code, and interval is 100ms Private Sub Timer1_Timer() If LDGVS <> "0" And GND = 1 Then 'When touchdown Debug.Print "VS:" & LDGVS & " GForce:" & LDGGF End If End Sub Here is a part of my code, the VS is always accurate but not G-Force, in fact, G-Force sometimes will be 0.
  4. Hi, I am developing a new ACARS with detailed QAR, but there is a problem which puzzled me a lot. I use some timers to execute the QAR in VB, but when I run the ACARS, I have to click a button to connect to FSUIPC, and before submit the flight, I have to click to disconnect, too. It's unconvenient. Even worse, when FS crashed with some error, like "A FATAL ERROR OCCURRED....", my ACARS will be in a "not responding" status. I have to use taskmgr to close it. So, I wonder if there is a way to disconnect/connect to FSUIPC automaticaly. Sorry for my poor English. Hans
×
×
  • 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.