Board index FlightGear Support Hardware

FAQs: customizing joystick controls; XP/Vista joystick issue

Joysticks, pedals, monitors.

Re: FAQs: customizing joystick controls; XP/Vista joystick i

Postby sim » Thu Feb 28, 2013 10:52 am

2 buttons used for rudder? Does it not have a suitable rudder axis?
Also If it has a trigger button at top of stick you could use that as a modifier.
That'll double the uses you can get out of the other buttons. ( 8 buttons otherwise doesn't give many choices)
User avatar
sim
 
Posts: 1388
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: FAQs: customizing joystick controls; XP/Vista joystick i

Postby EGQK1 » Thu Feb 28, 2013 8:21 pm

Thank you very much for your reply Sim
no axis for rudder correct
use trigger (button 1)as modifier correct
that is what I am trying to do with
<button n="1+2">
<desc>trigger cannon</desc>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.cannon(1,-1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.cannon(0,-1)</script>
</binding>
</mod-up>
</button>
but my syntax is wrong n="1+2" wont work
tried thinking up ,down,sideways and standing on my head
I know the syntax is stupid I just cant see how stupid

I want to use this joystick for the arms control

the flying joystick is 6 channel 2.4ghz RC programable controler
works perfect took me a long time to write the code
here it is if you know where to post it for others to use

HK-T6A V2 hobbyking.com

<?xml version="1.0" encoding="utf-8"?>
<!--
************************************************************************
* Bindings for HK-T6AV2 radio controler.
*
*
* Axis 0: rudder
* Axis 1: elevator
* Axis 2: Throttle
* Axis 3: Aileron
* Axis 4: brakes HAT B
* Axis 5: flaps HAT A

* Switch A throttle CUT
* Switch B ?????

************************************************************************
$Id$
-->
<PropertyList>
<name>PPM</name>
<axis n="3">
<desc>Aileron</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/aileron</property>
<squared type="bool">true</squared>
</binding>
</axis>
<axis n="1">
<desc>Elevator</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/elevator</property>
<factor type="double">1.0</factor>
<squared type="bool">true</squared>
</binding>
</axis>
<axis n="2">
<desc>Throttle</desc>
<binding>
<command>nasal</command>
<script>controls.throttleAxis(1)</script>
</binding>
</axis>
<axis n="0">
<desc>Rudder</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
<factor type="double">1.0</factor>
<power type="int">1</power>
</binding>
</axis>
<axis n="4">
<desc>Brakes</desc>
<binding>
<command>nasal</command>
<script>controls.applyBrakes(1)</script>
</binding>
</axis>
<axis n="5">
<desc>Flaps Down</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>controls.flapsDown(1)</script>
</binding>
</axis>


</PropertyList>

EGQK1 (EGQK south 1 mile)
EGQK1
 
Posts: 3
Joined: Mon Feb 27, 2012 9:14 pm

Re: FAQs: customizing joystick controls; XP/Vista joystick i

Postby sim » Sat Mar 02, 2013 3:41 pm

Microsoft SideWinder Joystick

<axis n="2"> Is that a conventional throttle (move fore and aft)? Or does it move (left and right) or (up and down)?
Just wondering if it might operate rudder? Using buttons for rudder is not ideal. An analogue axis would give finer
control, better still if that axis is self centering!

Throttle on buttons is not such a problem as Rudder on buttons!

Also are you sure <button n="1"> is trigger ? On mine (Windows 7) that's <button n="0">
User avatar
sim
 
Posts: 1388
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: FAQs: customizing joystick controls; XP/Vista joystick i

Postby sim » Mon Mar 04, 2013 8:31 am

See if this TRIGGER MODIFIER code works for your sidewinder. It has a little built-in aileron/rudder coordination and on the ground aileron gives differential wheel left/right braking. Slider axis No 2 gives Throttle but if TRIGGER is pressed you will find it moves rudder. (best observe how rudder moves by using keyboard "v" to get helicoptor view.
Four buttons are used to pan view horizontally and vertically but when trigger is pressed they serve to trim ailerons and elevator. If the view or trim moves the wrong way for you, just switch the negative signs between each button pair.

http://db.tt/srCisgEd

PS Tested above link code in this video (buttons were in very odd places! Didn't suit my joystick configuration)

User avatar
sim
 
Posts: 1388
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: FAQs: customizing joystick controls; XP/Vista joystick i

Postby shawn » Sat Jul 27, 2013 7:59 am

wow. a spam message with possibly real content.

Kudos.
shawn
 
Posts: 23
Joined: Mon Feb 11, 2013 12:30 pm
Location: Singapore
Callsign: shawn / SFshawn
Version: 2.10
OS: Win 7 x64

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 12 guests