View Single Post
  #2   Spotlight this post!  
Unread 21-01-2012, 16:04
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: RobotDrive problem

Quote:
Originally Posted by shuhao View Post
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
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote