
25-04-2010, 09:38
|
|
1771 Alum, 1771 Mentor
AKA: Matt B
 FRC #1771 (1771)
Team Role: Mentor
|
|
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
|
|
|
Re: Joystick Assigning/ Change to Tank Drive
Quote:
Originally Posted by mikets
There are five overloaded TankDrive methods in RobotDrive.h. One of them takes two joystick pointers. Another one takes two jockstick references. So TankDrive(stick, stick2) would work.
Code:
void TankDrive(GenericHID *leftStick, GenericHID *rightStick);
void TankDrive(GenericHID &leftStick, GenericHID &rightStick);
void TankDrive(GenericHID *leftStick, UINT32 leftAxis, GenericHID *rightStick, UINT32 rightAxis);
void TankDrive(GenericHID &leftStick, UINT32 leftAxis, GenericHID &rightStick, UINT32 rightAxis);
void TankDrive(float leftValue, float rightValue);
|
Ah! I stand corrected, nevermind!
|