Quote:
Originally Posted by Christopher149
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);