Jump to content
The simFlight Network Forums

xxallrounderxx

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by xxallrounderxx

  1. Hey Paul! Thanks for your response. I tried the code you sent me and P3D gets the focus. I put my code right after the one you sent, and it works o.O Philipp
  2. 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
  3. Many Thanks Paul! Very well explained. Now I'm a big step further in "developing" my little tool ;) 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 :)
  4. 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
  5. Thanks for your reply :D Will look them up as soon as i can ;)
  6. Hi Pete and all the others who can help! I wanted to make a small Motion Platform for my Desk... and I wanted to know if its possible to get the movement data ,such like pitch, roll, acceleration and so, out of FSUIPC? Are they saved in special Offsets? Hope you're understanding what i'm asking for ;) Thanks Philipp
  7. Hi Pete! So, if it wouldn't be enough a range of 0-255 for heading example, what do i have to write instead of "ipc.writeUB"? For Vertical Speed I will need something bigger for negative values... I don't know how to run the lua file after starting fsuipc/fsx. How do I? Thanks Philipp
  8. 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
  9. Hi there! Thanks for your Replies! 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
  10. Hi Pete! I am building an Airbus x Extended FCU. I already read out all the LVars that I will need for Displaying the Heading, Altitude, Speed, Vertical Speed. Now I'm stuck! For the Arcaze Board I need to write the LVar Data in the Offsets of FSUIPC. I don't know how to do that! Could you/anyone give me an example or a ready *.lua file ( :razz:)? Thanks Allrounder
×
×
  • 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.