View Single Post
  #7   Spotlight this post!  
Unread 23-01-2011, 16:15
wjbrauck wjbrauck is offline
Team Mentor
FRC #0768 (Techno Warriors)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Baltimore, Md
Posts: 4
wjbrauck is an unknown quantity at this point
Re: Logitech Dual Action Setup for 2 Axis help please?

We just modified last years code yesterday to get this working. We found axis mapping to be
Axis indexes:
1 - Left joystick X
2 - Left joystick Y
3 - Right joystick X
4 - Right joystick Y
5 - DPad x
6 - DPad y

to stay with tank drive and use both joysticks from one game pad plugged into USB port 1, the code looked like

in the constructor
m_driveStick = new Joystick(1);

in the teleop section
m_robotDrive.tankDrive(m_driveStick, 4, m_driveStick, 2);

where 4 and 2 are the axis numbers assigned to the left and right joystick arguments.

wjb
Reply With Quote