Log in

View Full Version : How do we get the scroll wheels (behind buttons 8 and 9) on the attack3 to interface?


Quellek2
01-02-2012, 17:34
We want to use them as a way of controlling the max power, but we have no idea how to get data from them. Anyone know?0

Joe Ross
01-02-2012, 17:50
It's axis 3.

sometimestommy
02-02-2012, 10:02
Yes. It is axis 3 on your joystick.

All you have to do is to unbundle the joystick and then "select" axis 3 from the context menu on the unbundle by name.

Important! Check the value on the scroll wheel as it could go past 1 or -1 which is really bad for motor control (since they only go to these values)

Quellek2
02-02-2012, 16:40
Huh. Not sure how I missed that one. Thanks! :D

Wildcat Robotic
05-02-2012, 02:04
If you take the value of Axis 3 and add 1 then divide by 2, it changes the scale from [-1, 1] to [0, 1]. Just a helpful hint if you wanted to use it to control one direction of a motor. :)