View Single Post
  #5   Spotlight this post!  
Unread 01-02-2012, 01:12
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Logitech Controller Programming

We are using the logitech F310.

left Y axis is Axis 2, right Y axis is Axis 5

Code:
Joystick joy1 = new Joystick(1); // create a joystick on USB port 1 (configured through driverstation)

joy1.getRawAxis(2); //this will return the left stick Y value
joy1.getRawAxis(5); //this will return the right stick Y value
__________________
http://team2168.org
Reply With Quote