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:

We can’t read minds (as much as we try). Give us the code your using and we might be able to help you.

Well we have

pwm01 = p1_y
pwm02 = 255 - p2_y

the joysticks are in port 1 and port 2

Does that help?

i think that shoudl work fine, watch out for the trims on your joysticks. Maybe try printing them out, sometimes that helps