View Single Post
  #3   Spotlight this post!  
Unread 15-12-2016, 21:38
minisolarclown minisolarclown is offline
Registered User
FRC #3603
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2015
Location: Reed City
Posts: 7
minisolarclown is an unknown quantity at this point
Re: Holonomic Drive Issues With Strafing

Quote:
Originally Posted by Christopher149 View Post
How did you initialize mainDrive? Are the motors in the order (int frontLeftMotor, int rearLeftMotor, int frontRightMotor, int rearRightMotor) (from documentation)?
I initialized it a little differently. I used victors instead of ints, but it still gives the same effect. All of the victors are programmed and wired correctly. The parameters inside Victor(x) is its pin.

Code:
Victor backLeftMotor = new Victor(1);
Victor backRightMotor = new Victor(2);
Victor frontLeftMotor = new Victor(3);
Victor frontRightMotor = new Victor(4);
	
RobotDrive mainDrive = new RobotDrive(frontLeftMotor, backLeftMotor, frontRightMotor, backRightMotor);
Reply With Quote