|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: Joystick Assigning/ Change to Tank Drive
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); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tank Drive Joystick | thatoneguy23 | Programming | 8 | 08-02-2010 21:28 |
| Tank Drive vs. Omni Directional Drive | jamie_1930 | General Forum | 9 | 24-01-2010 22:50 |
| Change joystick to pwm mapping | Joe Lewis | Programming | 3 | 30-03-2005 19:27 |
| Assigning Joystick buttons.... | archiver | 2001 | 5 | 24-06-2002 00:59 |
| Single Joystick Tank Steering | archiver | 2001 | 5 | 23-06-2002 22:49 |