Jump to content
The simFlight Network Forums

jd

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by jd

  1. you have to do some conversions

    here is my routine to set the plane at the proper lat/long/alt

    Public Function set_plane(lat As Single, lon As Single, alt As Single, hdg As Single) As Boolean

    Dim x As Long

    Dim dwresult As Long

    x = FTOM(CLng(alt))

    Call FSUIPC_Write(&H574, 4, VarPtr(x), dwresult)

    x = lat * 10001750 / 90

    Call FSUIPC_Write(&H564, 4, VarPtr(x), dwresult)

    x = lon * 65536 * 65536 / 360

    Call FSUIPC_Write(&H56C, 4, VarPtr(x), dwresult)

    x = hdg * 65536 * 65536 / 360

    Call FSUIPC_Write(&H580, 4, VarPtr(x), dwresult)

    Call FSUIPC_Process(dwresult)

  2. here is my code snippet

    Public Function Plane_heading() As Single ' degrees Plane's magnetic heading.

    Dim x As Long

    Dim dwResult As Long

    Call FSUIPC_Read(&H580, 4, VarPtr(x), dwResult)

    Call FSUIPC_Process(dwResult)

    Plane_heading = norm360((x / 65536 / 65536 * 360) - magvar)

    end function

    you may have to adjust for the magnetic variation, which is what magvar is (another function, to get the current magnetic variation)

    norm360 is a normalize function, which brings all heading to a range of 1-360 degrees

  3. i don't know what to say. this is the function i have used in radar contact since v3. it works, because i'm constantly checking the plane heading..

    Public Function Plane_heading() As Single

    Dim x As Long

    Dim dwResult As Long

    Call FSUIPC_Read(&H580, 4, VarPtr(x), dwResult)

    Call FSUIPC_Process(dwResult)

    Plane_heading = x / 65536 / 65536 * 360

    End Function

  4. Press Release

    JDT LLC Announces Radar Contact Version 4 will begin shipping December 10, 2005.

    Flight Simulator will now have the best ATC at every airport, every hour, every day.

    Memphis, TN, November 11 2005: John Dekker and Doug Thompson report that Radar Contact Version 4 has been released to manufacturing, with an expected general availability of December 10, 2005. Radar Contact, a highly successful Flight Simulator ATC add-on, provides a realistic experience to Flight Simulator enthusiasts, wherever and whenever they fly.

    Version 4 offers:

    · Interaction with traffic on the ground and in the air around you. Realistic chatter to and from the traffic.

    · Internationalization – which means realistic Transition Altitude/Transition Level, proper phraseology outside the United States, more accurate ATC procedures.

    · Enroute holds now tied to arrival weather.

    · Support for pilot's discretion (PD) descent clearance from cruise to allow descents that are better aligned with those calculated by FMCs/CDUs.

    · Centers accurately divided into real world sectors.

    · More pilots, more controllers, 109 popular airport names recorded, over 700 carrier names recorded, all center names recorded, all aircraft types recorded.

    · More realistic crossing restrictions based on runway in use. Runways chosen based on AI activity.

    · More efficient arrival vectors.

    More information available at http://www.jdtllc.com

  5. Hi There guys,

    I have been playing around with this FSUIPC module for a few days now and i just cant figure this out.

    Im trying to get my VB program to read and check FS if im slewing or not.

    I currecntly have this code..

    Private Sub Command1_Click()
    Dim dwResult As Long
    Dim Slew As Integer
    
    If FSUIPC_Read(&H5DC, 2, VarPtr(Slew), dwResult) Then
        If FSUIPC_Process(dwResult) Then
            If dwResult = 1 Then
                MsgBox "Slewing
            Else
                MsgBox "Not slewing
            End If
        End If
    Else
        MsgBox "Cant read FSUIPC"
    End If
    End Sub
    

    I just keep getting the error "Cant read FSUIPC".

    Also the example in the SDK doesnt work either.

    Please can someone help me.

    Thanks in Advance..

    Dave

    definately fsuipc_open, also

    test for slew = 1 not dwresult = 1

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