Jump to content
The simFlight Network Forums

xxallrounderxx

Members
  • Content Count

    10
  • Joined

  • Last visited

Posts posted by xxallrounderxx


  1. Hey!

     

    Im using this FSUIPC Client DLL for a while now and i have to say: BRILLIANT :)

     

    Yesterday i found your 3.0 BETA Version of the client...

     

    Cause I wanted to send a keypress to Prepar3D, I used the new function:

    FSUIPCConnection.SendKeyToFS(Keys.K, SendModifierKeys.Control, Me)
    

    ...im writing in vb...

     

    The code works perfectly in FSX, but in Prepar3D simply nothing happens. But there is no error though...

     

    Does anybody have an idea, why it doesnt work in Prepar3D?

     

    Thanks,

    Philipp


  2. Many Thanks Paul!

     

    Very well explained. Now I'm a big step further in "developing" my little tool ;)

     

     

     

    I assume you're not using .NET and so can't use these facilities, so here's what's 'under the hood':

     

    Actually I'm using Visual Studio and working with .NET  :smile:

     

     

    Thanks a lot

     

    Philipp

     

    EDIT:

     

    I just realized that you added an example project to the FSUIPC Client DLL Package  :oops: . I took the code for positioning the plane on the runway and edited it a bit(the distance, the heading, and the start position):

            Dim latFS As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H560)
            Dim lonFS As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H568)        
    
            slewMode.Value = 1
            CMD_PAUSE.Value = 1
            FSUIPCConnection.Process()
    
            Dim lon As FsLongitude = New FsLongitude(lonFS.Value)
            Dim lat As FsLatitude = New FsLatitude(latFS.Value)
            Dim newPos As FsLatLonPoint = New FsLatLonPoint(lat, lon)
            Dim rwyTrueHeading As Double = 161.18D
    
            newPos = newPos.OffsetByNauticalMiles(rwyTrueHeading, 4)
            latFS.Value = newPos.Latitude.ToFSUnits8()
            lonFS.Value = newPos.Longitude.ToFSUnits8()
            speed.Value = 180 * 128
            alt.Value = 1870 / 3.28
            FSUIPCConnection.Process()
    
            slewMode.Value = 0
            FSUIPCConnection.Process()
    
            CMD_WRITE.Value = REFRESH_SCENERY
            FSUIPCConnection.Process()
    

    It works quite well and everything seems logical, BUT: The plane is positioned 4nm away from the runway edge but not infront of it. It's a bit aside(see at the attached picture).

     

    What did I wrong?

     

    Thanks again :)

    post-73733-0-23149600-1419941535_thumb.p


  3. Hi there!

     

    I'm working at the moment on a little tool which positions (or should) your plane 4nm away from the runway. I already got it working setting the altitude and speed, but when it comes to longitude and latitude i have a problem.

     

    As said i want to position the aircracft 4 nautical miles away from the runway. I thought it should work with picking the runway coordinates and adding values to the latitude and longitude (Offsets 0560, 0568). I was able to calculate with the law of sines the the values i have to add. But those values are in nautical miles (because I used the 4nm as  my hypotenuse for my calculation)... so how do I convert them into FS Values?

     

    Thanks in advance

     

    Philipp


  4. Hi there!

     

    I wanted to create a lua file for writing values from Airbus X Extended in the free Offsets 66C0-66FF, for further output to my "Arcaze Board" via "Arcaze FSUIPC Connector". I tried, but failed :(

    a = 0
    while a < 255 do
    b = 0
    c = 0
    d = 0
    e = 0
    
    
    --IAS
    b = ipc.readLvar("L:AB_AP_Speed_Select")
    --HDG
    c = ipc.readLvar("L:AB_AP_HDG_Select")
    --ALT
    d = ipc.readLvar("L:AB_AP_ALT_Select")
    --VS
    e = ipc.readLvar("L:AB_AP_VS_Select2")
    
    
    
    --Writing Speed
    ipc.writeUB(0x66C0,b)
    
    --Writing Heading
    ipc.writeUB(0x66C1,c)
    
    --Writing Altitude
    ipc.writeUB(0x66C2,d)
    
    --Writing Vertical Speed
    ipc.writeUB(0x66C3,e)
    
    ipc.sleep(800)
    end
    

    The code should write the values of Speed, Heading, Altitude, VS in the Offsets. I put the Script in the Modules Folder of FSX. Any ideas why it down't work?

     

     

     

    Thanks,

     

    Philipp

     

    PS: Sorry for my english


  5. Hi there!

     

    Thanks for your Replies! 

     

    Your happiness is here :

     

    http://forum.aerosoft.com/index.php/topic/37876-lua-scripts-for-airbusx-real-throttle%3B-upd-16th-sept/

     

    Michel (a fan of AXE)  :razz:

     

     

    I already know this File, but is this not just for Inputs? However I created a *.lua File that should write Speed, Altitude, Heading, Vertical Speed in free Offsets. 

     

    a = 0
    while a < 255 do
    b = 0
    c = 0
    d = 0
    e = 0
    
    
    --IAS
    b = ipc.readLvar("L:AB_AP_Speed_Select")
    --HDG
    c = ipc.readLvar("L:AB_AP_HDG_Select")
    --ALT
    d = ipc.readLvar("L:AB_AP_ALT_Select")
    --VS
    e = ipc.readLvar("L:AB_AP_VS_Select2")
    
    
    --Writing Speed
    ipc.writeUB(0x66C0,b)
    
    --Writing Heading
    ipc.writeUB(0x66C1,c)
    
    --Writing Altitude
    ipc.writeUB(0x66C2,d)
    
    --Writing Vertical Speed
    ipc.writeUB(0x66C3,e)
    
    ipc.sleep(800)
    end

    I don't know if the Code Will work, because I still don't have my Arcaze Board. What do you Guys think? Would it work?

     

    @Pete

    I hope now you know what I want it to do ;)

     

    @Gardan (Michel)

    How did you write the Data in the Displays? With the File in the Link you gave me?

     

    Thanks!

     

    Philipp

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