|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Help with Joystick command
We are having an issue where a joystick command (Left and right trigger on XBox controller) are not working properly.
In the driver station, i can push the button and the signal is being read (i can see the signal on the screen) but when we probe the code, no signal is read... i cannot figure this thing out.... We switch to a different controller and we have the same issue so we are pretty sure its in the code.... |
|
#2
|
||||
|
||||
|
Re: Help with Joystick command
What programing language are you using?
|
|
#3
|
||||
|
||||
|
Re: Help with Joystick command
Can you post a snapshot of your code and a description of what you expect it to be doing?
|
|
#4
|
|||
|
|||
|
Re: Help with Joystick command
Coach Seb,
I had a chance to do a little work to your program since we last talked. I am posting a vi sniplet of your teleop code with the automated arm and winch removed. Use this as an example and go from there for further trouble shooting. Last edited by Matt-T-FRC : 20-03-2016 at 22:59. |
|
#5
|
||||
|
||||
|
Re: Help with Joystick command
Quote:
Any reason why y'all are using the "Array to Cluster" and "Unbundle by Name" instead of using "index array" directly? |
|
#6
|
|||
|
|||
|
Re: Help with Joystick command
Wow, it shows up in Teleop, I posted an updated version. Also I use array to clusters and then unbundle by name because that is what I am use to using and haven't completely adapted to using array to clusters yet. It also makes it a little easier to read.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|