Thread: Tank Drive
View Single Post
  #11   Spotlight this post!  
Unread 14-02-2005, 23:14
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Tank Drive

Quote:
Originally Posted by Idaman323
So as long as I hav ethat included it should work?
Depends.

On our bot last year, the motors were placed such that we had to reverse motor output to one side.

So,
Code:
pwm01 = p1_y; //put the joystick input to motor output directly
pwm02 = 255-p2_y; //reverse this motor
worked. You might need this depending on how your gearboxes/motors are put in. I'm guessing you'll have to reverse one (try which one) of the motors.

And this is, of course, assuming you are using one motor for left drive and one motor for right drive (no more no less).
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother