X-Plane 10  Topic is solved solved with post #10805

Here you can talk about creating profiles, discuss your profile settings and share problems with games and plugins.
Please note that you first have to read the the fitting game section in the manual!

X-Plane 10  Topic is solved

Postby meszger » Sun 17. Nov 2013, 16:44

Hi all!

We are currently building a 3DOF R44 helicopter simulator based on X-plane v10.22 ( viewtopic.php?f=37&t=717 )
We are using the X-sim motion platform software v3.0.2.9 with the existing X-plane plugin but we have encountered a problem: It seems that X-sim doesn't recieve pitch, roll and yaw position data, it only gets the lateral, longitudinal and vertical accelerations.
All the six values are needed to produce proper motion clues.
All the needed settings regarding X-plane's data sending options seems to be correct:
I have set the two data sending checkboxes in X-plane's "Data Input & Output" window: no. 4, which is "Mach, VVI, G-load" and no. 17, which is "pitch, roll, headings" and I also have set up the IP address properly on the "Data" tab of "Net Connections" window.
I choose "Standard setup for left dialog" in X-sim Extractor's Motion Driver section and also select X-plane on the left panel.
When I start the simulation, it shows constantly changing values for sideway, vertical and longitudinal accelerations in input slots no. 24, 25, 26 on X-sim Converter's Input Setup screen, but it displays -2147483648 (which is 2 raised on the 31st power) in input slots no. 21, 22, 23 for pitch, heading and roll data.
It is an interesting fact that when I choose data sending checkbox number 18 (AoA, Side-slip, paths) instead of 17 (Pitch, heading, roll) then X-sim finally recieves constantly changing data for input slot 21, 22 and 23!!!

As has been discussed earlier in a forum topic on x-plane.org, it looks like Laminar Research, the maker of X-plane is always changing the UDP packet format from one version to another. The Current UDP_Reference.html Packet format is covered in the Instructions subfolder in X-plane Installation folder.
Since none of us in our small team is a programmer, we cannot solve this problem on our own, but we hope that we can get some help here! :)

Greg M.
szimulator.com
meszger
 
Posts: 4
Joined: Sun 17. Nov 2013, 15:05
Has thanked: 0 time
Been thanked: 0 time

Re: X-Plane 10

Postby sirnoname » Tue 19. Nov 2013, 01:40

Ok, plz send a screenshot of the xplane checkboxes again here and a screeny of the connected running outsim dialog.
The detected number of X-Plane would be interesting.

if (indexzahl==18) //Export # 16 : pitch, roll, heading

So 16 is perfect in older version? In you last screenshot you tick 17. It seems we need a version 10 detection because this is different.

but it displays -2147483648 (which is 2 raised on the 31st power) in input slots no. 21, 22, 23 for pitch, heading and roll data.

Constant or moving?

I have ordered them:
Code: Select all
pitch         =*((float*)(&data[0]));
         roll         =*((float*)(&data[1]));
         heading      =*((float*)(&data[2]));
         sidewayACC      =arrayold.sidewayACC;
         verticalACC   =arrayold.verticalACC;
         longaACC      =arrayold.longaACC;


Check attached plugin for the plugin folder:
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: X-Plane 10

Postby meszger » Tue 19. Nov 2013, 15:37

Hi Martin,
thanks for the fast reply! :D

Ok, so here is X-plane 9's data sending checkboxes screen:
X-plane 9 "Data Input & Output" screen

and the very same screen from X-plane 10:

X-plane 10 "Data Input & Output" screen


As you can see here, they have changed "Pitch, Roll, Headings" data from the former number 18 to number 17 in version 10.
You have mentioned number 16, but it was "Angular accelerations" in version 9 and now they call it "Angular moments" in version 10. As far as I understand we'll need Pitch, Roll and Yaw POSITIONS instead of angular velocity/moment data.

As soon as I will visit our simulator again I will post a screenshot of X-sim's screens, too. It takes a few days.

It displays a constant -2147483648 value for pitch, roll and heading on X-sim Converter's Input Setup screen if I choose checkbox no.17.
As I have written before, if I change the checkbox setting from 17 to 18 (which is "pitch, roll, headings" in v.9 BUT it is "AoA, side-slip, paths" in v.10), it instantly starts to recieve constantly changing (but obviously wrong) data.
It kinda looks like to me that you will have to change no.18 to no.17 in the plugin's code in order to make it compatibile with X-plane 10.
meszger
 
Posts: 4
Joined: Sun 17. Nov 2013, 15:05
Has thanked: 0 time
Been thanked: 0 time

Re: X-Plane 10

Postby meszger » Tue 19. Nov 2013, 15:58

I've downloaded the attached "X-plane.exe" file and I made two screenshots:
I've checked checkbox no.17 (pitch, roll, headings) at this one:


And with checkbox no.18 ("Pitch, Roll, Headings" in earlier versions but "AoA, Side-slip, Paths" in X-plane 10)


I also have noticed that it says "930" for "Detected X-plane version", but it is X-plane 10.
meszger
 
Posts: 4
Joined: Sun 17. Nov 2013, 15:05
Has thanked: 0 time
Been thanked: 0 time

Re: X-Plane 10

Postby sirnoname » Wed 20. Nov 2013, 00:12

Try this one ...
X-Plane.zip
(801.52 KiB) Downloaded 1221 times
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: X-Plane 10

Postby meszger » Wed 20. Nov 2013, 00:31

Ok, I tried the newly uploaded version of X-plane UDP Packet Reader and this new version is working perfectly! :D
All the six values seems correct, however it still says "930" for detected X-plane version.
meszger
 
Posts: 4
Joined: Sun 17. Nov 2013, 15:05
Has thanked: 0 time
Been thanked: 0 time

Re: X-Plane 10

Postby esmadja » Fri 30. May 2014, 05:27

Next best thing to deleting a post is to remove it from existence before others see it :)
esmadja
 
Posts: 9
Joined: Sat 17. May 2014, 17:54
Location: Santa Clara, California
Has thanked: 2 times
Been thanked: 0 time

Re: X-Plane 10

Postby macrokefag » Wed 3. Sep 2014, 19:11

Hi all!

As we continue the developing of our R44 simulator, we have found a few new data on the "Data Input and Output" page that we could use in our future x-plane 10 based simulator projects.
For example we are planning to build a force feedback capable flight control system, which could use data no.77, "control forces".
Our other plan is to build a servo-controlled twist grip throttle on the collective lever of our R-44 sim project. Data no.26, "Throttle Actual" could drive the twist grip's position, the same way as throttle governor does it in real life.
And finally, we could install a variable RPM fan in front of the cockpit. The RPM would be controlled by the actual airspeed to get the sensation of speed in an open cockpit simulator project, such as an old biplane or similar...
Data no. 3, "Speeds" would be perfect to control the fan.

Is it possible to include these data into the X-plane Plugin to drive the unused analog inputs of our Veleman VK-8061 board?

Thanks in advance for any feedback,

Gerg M.
szimulator.com team
User avatar
macrokefag
X-Sim Supporter
 
Posts: 67
Images: 1
Joined: Sun 8. Jul 2012, 13:06
Location: Hungary Budaors airport
Has thanked: 0 time
Been thanked: 1 time

Re: X-Plane 10

Postby macrokefag » Sat 18. Oct 2014, 17:11

Hi all!

As we continue the developing of our R44 simulator, we have found a few new data on the "Data Input and Output" page that we could use in our future x-plane 10 based simulator projects.
For example we are planning to build a force feedback capable flight control system, which could use data no.77, "control forces".
Our other plan is to build a servo-controlled twist grip throttle on the collective lever of our R-44 sim project. Data no.26, "Throttle Actual" could drive the twist grip's position, the same way as throttle governor does it in real life.
And finally, we could install a variable RPM fan in front of the cockpit. The RPM would be controlled by the actual airspeed to get the sensation of speed in an open cockpit simulator project, such as an old biplane or similar...
Data no. 3, "Speeds" would be perfect to control the fan.

Is it possible to include these data into the X-plane Plugin to drive the unused analog inputs of our Veleman VK-8061 board?

Thanks in advance for any feedback,
User avatar
macrokefag
X-Sim Supporter
 
Posts: 67
Images: 1
Joined: Sun 8. Jul 2012, 13:06
Location: Hungary Budaors airport
Has thanked: 0 time
Been thanked: 1 time

Re: X-Plane 10

Postby sirnoname » Sun 19. Oct 2014, 02:11

You must send me a notice with pm!
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Next

Return to Game profile & plugin discussions

Who is online

Users browsing this forum: No registered users and 4 guests