Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (http://www.chiefdelphi.com/forums/showthread.php?t=34913)

Idaman323 18-02-2005 14:55

Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
We have our robot set up for a tank drive system, but we are having lots of trouble getting it to run right. Does anyone know the right code to use for hte robot in tank drive so we can figure out of its the code or if its the joystick. thanks :eek:

Mike 18-02-2005 15:01

Re: Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
We can't read minds (as much as we try). Give us the code your using and we might be able to help you.

Idaman323 18-02-2005 15:09

Re: Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
Well we have

pwm01 = p1_y
pwm02 = 255 - p2_y

the joysticks are in port 1 and port 2

Does that help?

pakrat 18-02-2005 15:17

Re: Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
i think that shoudl work fine, watch out for the trims on your joysticks. Maybe try printing them out, sometimes that helps


All times are GMT -5. The time now is 09:45.

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