Thread: Joystick issues
View Single Post
  #2   Spotlight this post!  
Unread 01-02-2012, 11:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Joystick issues

Here's a simple view:


For the Logitech (or other) game controllers, an easy approach is to:
  1. Start with a default or current project.
  2. Create Indicators for the Joystick 1 outputs of axes and buttons (you can also create a new Joystick on an unused USB port)
  3. Plug the new game controller into the Driver Station and use the Setup tab to move it to the #1 slot
  4. Run the project in debug mode from Robot Main
  5. Open the Teleop front panel where the joystick Indicators are shown
  6. Run the Driver Station to Enable the robot.
  7. Watch the Teleop Indicators as you push the buttons and move the stick to see what maps to what
Attached Thumbnails
Click image for larger version

Name:	NewJoystick.jpg
Views:	24
Size:	104.5 KB
ID:	11674  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2012 at 12:00.
Reply With Quote