Go to Post I gave up football and a chance to be ignorant the remainder of my hs career....so ive gained more than loss - TheNotoriousKid [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi