Message: 3
From: "Hal V. Engel" <[EMAIL PROTECTED]>
To: [email protected]
Date: Thu, 20 Apr 2006 19:33:02 -0700
Subject: [Flightgear-users] Using a CH combatstick hat for controlling mixture
and prop pitch
Reply-To: [email protected]
I am trying to setup my joystick so that I can control engine mixture and prop
pitch using the hat on my CH combatstick. I have setup the mixture controls
this way:
<axis n="4">
<desc>Mixture</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[0]/mixture</property>
<step type="double">0.01</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[0]/mixture</property>
<step type="double">-0.01</step>
</binding>
</high>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[1]/mixture</property>
<step type="double">0.01</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[1]/mixture</property>
<step type="double">-0.01</step>
</binding>
</high>
</axis>
This works for some single engine aircraft or for the one engine of some
twins. But it will not work for the other engine of a twin.
I am also trying to use the other axis of the hat to control prop pitch and
can not get it to work at all. I have tried this with the C310 since I can
control mixture and prop pitch with the keyboard.
Here is how I have the controls setup for prop pitch:
<axis n="3">
<desc>Pitch</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[0]/pitch</property>
<step type="double">0.01</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[0]/pitch</property>
<step type="double">-0.01</step>
</binding>
</high>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[1]/pitch</property>
<step type="double">0.01</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine[1]/pitch</property>
<step type="double">-0.01</step>
</binding>
</high>
</axis>
As a test I also swapped the axis of these (mixture axis n="3" and pitch axis
n="4") and I got the same results in that mixture only worked for the left
engine and prop pitch did not work at all. So I know both axis 3 and 4 are
from the hat. In addition I removed the engine[0] section from the mixture
control setup and it worked with the other engine. So it appears to only
work with one engine.
Another interesting test was to try different aircraft. The above setup does
not work at all for the P-51, Beaver, C172, Sia Marchetti S211, Spitfire,
Seafire, Sopwith Camel and Folker Dr 1. All responded to m/M on the keyboard
but not the joystick control. It worked the same on the C310, DC3
(engine[0] is on right engine other twins are on left) and PA-28 in that
mixture worked on one engine but prop pitch did not work at all.
It is probably something simple that I need to do to get this to work. Anyone
have any idea what I am doing wrong?
Hal
Hi Hal ,
the first thing that jumped out at me was the property 'pitch'
I think <property>/controls/engines/engine[1]/pitch</property>
should be
<property>/controls/engines/engine[1]/propeller-pitch</property>
Syd
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users