Go to Post Eating at Pappy's is the only St Louis activity for me. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2012, 14:10
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2012, 16:04
BradAMiller BradAMiller is online now
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
  #3   Spotlight this post!  
Unread 21-01-2012, 16:33
commonsense commonsense is offline
Registered User
FRC #3452
 
Join Date: Jan 2012
Location: Berrien Springs FRC
Posts: 16
commonsense will become famous soon enoughcommonsense will become famous soon enough
Re: RobotDrive problem

I was gonna say exactly what Brad said.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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