View Single Post
  #12   Spotlight this post!  
Unread 09-02-2014, 17:42
PANTHERPROJECT's Avatar
PANTHERPROJECT PANTHERPROJECT is offline
Registered User
FRC #2064 (The Panther Project)
Team Role: Webmaster
 
Join Date: Dec 2013
Rookie Year: 2007
Location: Southbury, Middlebury
Posts: 14
PANTHERPROJECT will become famous soon enoughPANTHERPROJECT will become famous soon enough
Re: Programming Mecanum

Quote:
Originally Posted by nyaculak View Post
I think you instantiated your RobotDrive instance with the motors in the wrong order. Correct me if I'm wrong, but the order should be frontLeft, rearLeft, frontRight, rearRight. Try changing the instatiation to

Code:
RobotDrive drivetrain = new RobotDrive(1, 2, 3, 4);
If that doesn't work, try as others have suggested and mount the robot up on blocks to isolate the wheels. This helps tremendously in debugging a faulty drive train.
That is how I instantiated it originally. When I did that, the wheels moved forward, backward and rotated but did not move side to side.
Reply With Quote