|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: Inverting controls in Java
Code:
RobotDrive myDrive = new RobotDrive(1,2,3,4);
if( invertMyDrive == true )
{
myDrive.setInvertedMotor(kFrontLeft, true);
myDrive.setInvertedMotor(kFrontRight, true);
myDrive.setInvertedMotor(kRearLeft, true);
myDrive.setInvertedMotor(kRearRight, true);
}
myDrive.tankDrive(leftStick, rightStick);
It sounds like if your axes got switched, you only inverted half of the drive. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems Inverting Wheels? | Must Be Drama | NI LabVIEW | 1 | 15-02-2010 17:41 |
| **FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** | Pjohn1959 | Programming | 37 | 31-08-2009 15:55 |
| Inverting x-axis | jkjohnson | Control System | 8 | 22-02-2007 02:24 |
| Inverting Joysticks? | The yellowdart | Programming | 5 | 20-02-2006 20:05 |
| Inverting Y axis on joystick | FormatteD_C | Programming | 7 | 24-02-2004 16:56 |