![]() |
Forward and Reverse is normal yet Left and Right turning is inverted
Hi,
our team is having issues with our drive having inverted turning. We're using 4 drive motors, all with VictorSP's. We've also confirmed that they're in ordered ports. the 2 motors on the left are in ports 0, and 1, and the two motors on the right are in ports 2, and 2. Here's our code. Code:
package org.usfirst.frc.team6077.robot; |
Re: Forward and Reverse is normal yet Left and Right turning is inverted
plug your left motor ESCs pwm into your right motor spot and your right motor ESCs pwm into your left motor spot. Basically switch the sides that the motors are on and everything should be better...
Best of luck! Edoga |
Re: Forward and Reverse is normal yet Left and Right turning is inverted
You could either switch your PWM sides either in code or electronically, or you can negate all the turn values in your code. Either way.
|
Re: Forward and Reverse is normal yet Left and Right turning is inverted
Both.
If you just invert all the motor speeds, left and right will still be inverted, but forward and reverse will become inverted. If you just swap left and right, left and right will remain inverted, and forward and reverse will become inverted. Do both - invert all the motors from their current direction, and swap the left and right sides to fix it all at the same time. Edit: I'm surprised that you have forward and reverse being forward and reverse, not spinning, without any inverted motors. Did you invert the motors on one side in wiring? |
Re: Forward and Reverse is normal yet Left and Right turning is inverted
Seems easier to just change
Code:
drive.arcadeDrive(xboxController);Code:
drive.arcadeDrive(xboxController.getRawAxis(1), -xboxController.getRawAxis(0)); |
Re: Forward and Reverse is normal yet Left and Right turning is inverted
Quote:
|
| All times are GMT -5. The time now is 00:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi