View Single Post
  #4   Spotlight this post!  
Unread 23-02-2016, 18:49
JeffB JeffB is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 55
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
Re: Joystick Trouble

It should only big a single USB. If you change to the USB number that matches, probe the wires in your code to make sure you're reading the values from your joystick in the code. If you see the values updating going into your various motor controllers, you should see some performance. If you're not seeing anything update here, there's something in the code that isn't quite right.

It'd be easier to know what you're doing with the relevant code available. I'm mostly guessing where you might run into issues.

By right joystick, do you mean you have two joysticks or you want the right joystick from an xbox controller? If that's the case, you'll want to leave the USB where it was and then use the "Index Array" to pull off elements 4 and 5 instead of 0 and 1. (I believe 0 and 1 are the left joystick). This gives you the X and Y axis from the right joystick so that you're able to use this joystick instead.
Reply With Quote