Log in

View Full Version : RobotDrive problem


shuhao
21-01-2012, 14:10
I'm currently having some trouble with the robotdrive class with 2 jaguar attached to pwm 1 (left) and pwm3 (right).

I call .drive(1.0, 0) and the pwm3 jaguar moves backwards (blinking red) and the pwm1 jaguar moves forward.

If I do rightjaguar.set(1.0), the right jaguar will go forward.

What's going on?

BradAMiller
21-01-2012, 16:04
I'm currently having some trouble with the robotdrive class with 2 jaguar attached to pwm 1 (left) and pwm3 (right).

I call .drive(1.0, 0) and the pwm3 jaguar moves backwards (blinking red) and the pwm1 jaguar moves forward.

If I do rightjaguar.set(1.0), the right jaguar will go forward.

What's going on?

The RobotDrive.drive method should drive one motor forward and the other reversed. This is because the motors are typically mounted left/right both facing in opposite directions. You can invert a single motor by using the RobotDrive.setInvertedMotor() method.

Brad

commonsense
21-01-2012, 16:33
I was gonna say exactly what Brad said.