|
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
|