|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Programming Extra Joystick Buttons
I just had a question about how the joystick buttons are programmed. We're using a joystick that has more buttons than the default code has assigned. I was looking at how they're assigned, and just wanted to know if the "bit#" at the end of the RC feedback variable corresponds to the pin on the connector. In other words, say the button I want to assign uses pin 14 of the connector, would that be "xx.xxxxxx.bit14"? If not, how would I be able to figure out the bit value?
|
|
#2
|
||||||
|
||||||
|
Re: Programming Extra Joystick Buttons
The OI Reference Guide availible from http://ifirobotics.com/oi.shtml shows the pinouts of the joystick ports and the appropriate variables on pages 7-10.
The ones listed are the only ones connected. If you have a joystick with switches on other pins, you will have to make your own adapter so that they map to the correct pins. |
|
#3
|
||||
|
||||
|
Re: Programming Extra Joystick Buttons
Quote:
In any case, each OI port only allows 4 switch inputs. To get more, you need to either wire to other ports, or make a circuit that encodes the extra switchs as analog inputs (this is how the USB Chicklet handles extra buttons, for example). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Victors Controlled By Joystick Buttons | douglass1371 | Electrical | 2 | 17-02-2006 01:57 |
| Programming motors with joystick buttons | TMHStitans | Programming | 5 | 21-03-2005 21:07 |
| Victors controlled with joystick Buttons | JamesBrown | Programming | 2 | 18-02-2005 23:39 |
| Using the extra buttons on the joystick. | Code\\Pilot | Programming | 7 | 04-12-2004 19:30 |
| Assigning Joystick buttons.... | archiver | 2001 | 5 | 24-06-2002 00:59 |