View Single Post
  #1   Spotlight this post!  
Unread 15-02-2015, 21:35
JacobD's Avatar
JacobD JacobD is offline
Registered User
AKA: Jacob
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: New Jersey
Posts: 93
JacobD is an unknown quantity at this point
Re: Strafing Problem

Quote:
Originally Posted by Tweety View Post
I read somewhere that I have to invert motors. How do I do it in java?
Code:
mecDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
mecDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);
Those are the motors that my team had to invert in order to strafe. But, we also had problems with driving forward and back at the time. So, if this messes up the forward and backward driving, ensure that the motor channels for your mecanum drive are like so:

0(frontLeft), 1(rearLeft), 2(frontRight), 3(rearRight)

This should fix any problems you might have. Otherwise, you might have to invert the motors when you get and X-input and then switch them back when you get Y. But, you should avoid this at all costs.
Reply With Quote