View Single Post
  #3   Spotlight this post!  
Unread 24-04-2011, 17:38
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Joystick Controller Help

Quote:
Originally Posted by bladetech932 View Post
1) is simple. The controller is treated as 1 joystick with four axis
Ly=1 Lx=2 Ry=3 Rx=4 so use it in the same way you used other joysticks.
2) I am curious why you used axis 3 for speed instead of the normal y or x axis but the answer to your question is yes you can assign the speed to any axis even if its on a different controller
3) is a little harder but one thing you could do is if your joystick is out of a certain value, for example if the x or y value of your joystick is greater than the absolute value of .1 then, you have control if not then the student has control.

Hope that helps.
~Jon
Thanks for the help. Answer to #1 makes sense now. For number 2, we initially had the speed at 80% normally, then 50% when the trigger was pushed. It did not really work so well on the practice day at our regional. Luckily, our programmer that graduated last year was there, and helped me make the speed adjustable with the dial on the bottom of the joystick. It made driving so much easier. With regards to question 3, I don't think it will be a big problem, because I probably won't put the speed too high anyway.

Lastly, is there anyway I could put a speed adjuster on the controller too?
Reply With Quote