Jump to content
The simFlight Network Forums

sniperfull

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by sniperfull

  1. now that the Qualitywings 787 is out i am doing some flying in it and i noticed that my program is not recognizing the 787 as an aircraft...

     

    'offset
    Dim aircraftType As Offset(Of String) = New FSUIPC.Offset(Of String)("AircraftType", &H3500, 24)
    
    
    
    ' and under a timer 
    
    Try
    
    FSUIPCConnection.Process("AircraftType")
    
    
    lblAircraft.Text = aircraftType.Value
    
    Catch ex As Exception
    
    MessageBox.Show(ex.Message, AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Error)
    
    End Try

     

     http://prntscr.com/gxet22

  2. i've just noticed a "bug" in my program  as the heading value goes above 360 .... and its sometimes in accurate by a couple of degrees  here's my code:

     

    Dim HDG As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H580) ' aircraft heading
    
    
    Dim Heading As Double = (HDG.Value * 360 / 65536 * 65536)
                TxtHDG.Text = Heading.ToString("0" & "°")

     

  3. Hi i am coding in VB.net and want to add current FS version that is connected and im struggeling to get it working what i have sofar : 
     

    Dim SimVers As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H308) '  Shows what sim its connected to 

    and then on a timer i have : 


    LblSimVers.Text = SimVers.Value

     

    and it displays : 655294464 when on P3D v4 
    when the documentation says it should return numbers 1 thrue 10 


    1=FS98, 2=FS2K, 3=CFS2, 4=CFS1, 5=reserved, 6=FS2002, 7=FS2004, 8=FSX, 9=ESP, 10=P3D

×
×
  • 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.