Jump to content
The simFlight Network Forums

hks76

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by hks76

  1. Hi Pete, Thanks for the information. Yes, you're right Ineed more information. That's why I looking on Google and this forum. I'm trying to understand the language of visuel basic and the Arduin Uno. With every little step forwart I as happy as a child :mrgreen: . So Thanks for your time and information. I'm verry pleased with the registerd FSUIPC. I't a wonderful program. Thanks!!!
  2. Hello Pete, Thanks for the reply. I thought I read in a topic that I have to juse the acceleration value? And yes you are right it is given in rad/sec/sec. I want to built a 6 DOF motionbase, but I have little knowledge of programming. Thats why I try to read the value first to visual basic. I have also thried the 0578 (fsuipc offset) but I can't get a decent value out of it. So thanks for your reply. I will try to find the the actual current pitch, roll and yaw values Thanks and greeting, Henk (Holland)
  3. Hello, I want to read the Pitch, Roll and the Yaw out of fsuipc. I made a program that reed the value out of FSX. this is a part of my program; Public Class MotionBase Private Const AppTitle As String = "MotionBase" ' Register the Offsets we're interesing in for this application Dim Pitch As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H3078) Dim Roll As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H3080) Dim Yaw As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H3088) ' Basic integer read example Private serialPort As New IO.Ports.SerialPort _____________________________________________________________________________________ ' FSUIPC documentation for this offset and display the result. Dim PitchDegrees = (Pitch.Value * 360.0# / (65536.0# * 65536.0#)) Me.TextPitch.Text = PitchDegrees Dim RollDegrees As Double = (Roll.Value * 360.0# / (65536.0# * 65536.0#)) Me.TextRoll.Text = RollDegrees Dim YawDegrees As Double = (Yaw.Value * 360.0# / (65536.0# * 65536.0#)) Me.TextYaw.Text = YawDegrees _____________________________________________________________________________________ Private Function PitchDegrees() As String Throw New NotImplementedException End Function Private Function RollDegrees() As String Throw New NotImplementedException End Function Private Function YawDegrees() As String Throw New NotImplementedException End Function I get stranges values (zie picture) the jump from a minus and maxium number will the plane is flying horizontal (pitch has to be zero than). The 3078, 3080 and the 3088 acceleration in radians/sec/sec relative to the body axes in double floating point format. If have try to translate the value to defrees like this; DimYawDegrees As Double= (Yaw.Value /3.14159265# * 180#) but it doesn't seem to help. I want the value in a range of -50 degrees to +50 degrees to juse for a servo. How can I do that??? (I'm sorry I'm still learning the programm language) :oops:
  4. Thanks al lot!!!!! :razz: I will try this, I hope I can get it working. greetings and best wish voor 2013
  5. Hello, Can anybody help me? I want to read the pitch and roll in visual basic 2010. But how do I program this? I juse FSX and FSUIPC. I can read the airspeed in visual basic 2010, but how has the vb 2010 program to look like voor the pitch and roll?
  6. Hello, the FSUIPCDotNetClient2.0 works, I read the FSUIPC4 Offsets Status but know I was wondering, How can I read the pitch, roll and yaw of the plane in VB 2010 (I want to juse it for a input for a servo motor) do I need the 3060 / 3068 or 30A0 / 30A8 or 310 A/ B???
  7. I am currently using FSUIPC 3.9.6.0 to pull some values from FS2004. I have been able to get Pitch, Roll, and Yaw velocity (rad/s) Can you tell my how to do that? I' m using FSUIPC 4 and FSX and want to read the data in VB 2010. When I read the FSUIPC4 Status of offset I don't know witch one I need.
  8. Thanks for the replay, I have to learn programming,I don't know anything about it. So is there a step by step guide how to load FSUIPC in VB2010 and control FSX? I have tried this page; http://stavroskcy.blogspot.nl/2011/12/connecting-arduino-to-flight-simulator.html but the gear didn't respond. Do I have to set somthing in FSUIPC? I'm sorry I'm new with this an I can't find information on the internet for it.
  9. Hello, I need some help. I want to build a stewart platform powerd by a Arduino uno. But first I want to get FSUIPC to communicate with VB 2010. How do I do that? Is there A tutorial? I tried the sample of FSUIPCDotNetClient2.0 but I got only errors. I tried the VB6 and strings in FSUIPC (in the file FSUIPC_SDK) but I got the error "Statement is not valid in a namespace" Public Function GetAircraftTitle(ByRef AircraftTitle As String) As Boolean Can enybody help My? Greetings, Henk Holland
×
×
  • 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.