|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: XBOX Controller Triggers is an axis but which one?
Tanner is right, but if he wasn't clear enough, this is how we did it:
-In your teleop VI, go to the block diagram and wire in two "Unbundle by Name" blocks (one for the axes and one for the buttons). -Drag the bottom handle of the Unbundle blocks so every button and axis can be read. -Go to your teleop VI front panel, and drop in one Numeric Indicator for each axis, and one LED for each button. Label them Axis1, Axis2, Button1, etc. - On the block diagram, wire each button and axis to the corresponding indicator. - Make a drawing of the controller. - Deploy your code with the Play button, press each button and axes. Make a note of which indicator does what when you operate the controller. Use this to label your drawing. - Once your drawing is fully labeled, you can start hooking up the axes and buttons to what you want them to control. I know this is a pain, but this is how we did it. I have our drawing so I can't tell you which is which, but doing this process only takes 15 minutes or so. good luck. |
|
#2
|
||||
|
||||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
Somebody could probably make a VI that does this. Would be nice if you could tell what type of joystick you were calling upon so you could make the VI work for any controller that is plugged in. Though how would that capability help the robot? It wouldn't unless your robot has a strange passion for XBox 360 controllers and won't work otherwise. -Tanner |
|
#3
|
||||||
|
||||||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
|
|
#4
|
||||
|
||||
|
Re: XBOX Controller Triggers is an axis but which one?
True, though whatever serves the purpose is great as it doesn't matter how it is constructed.
-Tanner |
|
#5
|
||||
|
||||
|
Re: XBOX Controller Triggers is an axis but which one?
It its axis 3
|
|
#6
|
|||
|
|||
|
Re: XBOX Controller Triggers is an axis but which one?
It is axis number 3, and it defaults to value of 0.0 and goes negative when right trigger is down and goes positive when left trigger is down.
|
|
#7
|
|||||
|
|||||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
|
|
#8
|
|||
|
|||
|
Re: XBOX Controller Triggers is an axis but which one?
Go to control panel --> game controllers --> properties. It shows up what button and axis is what when you press it. We have everything except the rumble. There's some threads, I believe in WindRiver, for using rumble, but does any one know how to do it in Labview? I would love to be able to have it rumble when our robot senses a ball.+
|
|
#9
|
||||
|
||||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
the default code and the DS software prevent writes to the joystick, so you would have to circumvent it using one of the methods above |
|
#10
|
|||||
|
|||||
|
Re: XBOX Controller Triggers is an axis but which one?
Thanks for all your help I hope to try this out at Palmetto.
Just another quick Question. when I wired axis 3 into a True False Selector the true and False changed to 1 and 0 which i put my true code in 1, and my false code in 0. see attached pictures tell me if im doing this right. If the button is true then set the motor speed to the percentage of the button press, for variable control. If the button i...s false, then I made another true/false case for the sensor. In the false case, I set the motor speed to 0.1. In the true case, I set the motor speed to 0. This way, when the button is NOT being hit, it looks for the sensor, and it spins it around REALLY SLOWLY until the sensor is tripped, and then it stops there. ![]() and another ![]() |
|
#11
|
||||||
|
||||||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
The problem with using the 0 and 1 cases is that it is possible that you cannot get to the 1 case if your XBox controller is out of calibration. If you use the 0.5 compare, you will be covered. |
|
#12
|
|||
|
|||
|
Re: XBOX Controller Triggers is an axis but which one?
Quote:
|
|
#13
|
|||
|
|||
|
Re: XBOX Controller Triggers is an axis but which one?
for a controller mapping of the xbox 360 controllers please see this post
http://www.chiefdelphi.com/forums/sh...3&postcount=12 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Xbox Controller | Team1710 | FRC Control System | 9 | 30-06-2010 13:17 |
| Which axis for accelerometer? | bitsoglass | NI LabVIEW | 1 | 23-01-2009 17:42 |
| Xbox Controller? | ScottieDo555 | Technical Discussion | 24 | 29-01-2008 16:24 |
| Which is better? (Xbox 360 or PS3) | 842.001 | Games/Trivia | 29 | 11-11-2006 16:06 |
| Do the Dew... but which one? | OneAngryDaisy | Chit-Chat | 13 | 16-06-2003 16:17 |