|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Drive is inverted!
This year we are using 4 talons to drive our robot. We have two of them hooked up per pwm using andymarks slpiced pwm cable. So in the robotdrive code we have two talons, the left and the right. We are using an xbox controller for tank drive but when we drive, everything is inverted. The motors are hooked up right but front on the xbox is back, back is forward, left is right and right is left. Can this be fixed in our code?
|
|
#2
|
|||
|
|||
|
Re: Drive is inverted!
Instead of:
drive.tankDrive(joystick1.getRawAxis(2), joystick1.getRawAxis(5)); Try: drive.tankDrive(-joystick1.getRawAxis(2), -joystick1.getRawAxis(5)); //Xbox Putting a negative sign in front of joystick it will invert and now it should work fine. Last edited by Dinoyan : 01-02-2014 at 19:24. |
|
#3
|
||||
|
||||
|
Re: Drive is inverted!
Ok ill try that tomorrow morning whenever i can stop by my school
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|