Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   RobotDrive problem (http://www.chiefdelphi.com/forums/showthread.php?t=100801)

shuhao 21-01-2012 14:10

RobotDrive problem
 
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

Re: RobotDrive problem
 
Quote:

Originally Posted by shuhao (Post 1110516)
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

Re: RobotDrive problem
 
I was gonna say exactly what Brad said.


All times are GMT -5. The time now is 22:20.

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