Log in

View Full Version : Adding more axes and joysticks Confused!


Tom317
11-01-2015, 09:34
Hey, I am a rookie and I am trying to assign more axes and buttons on the code. I tried to use the unbundle thing according to the secret book of FRC but it gives me a broken wire. My question is how to assign more axes than just the x and y. How do I add more motors and what not. Am I doing it right? The teleop and begin below

Greg McKaskle
11-01-2015, 10:02
The secret book is a year behind. The new joystick VIs now support more buttons and more axes. In order to do this, the datatype isn't a cluster that you unbundle, but an array that you index.

To access the third axis, put the mouse cursor on the bottom edge of the node that accesses X and Y, and grow it down by one ... or more.

The same node can be used for buttons.

Greg McKaskle