View Single Post
  #3   Spotlight this post!  
Unread 19-01-2007, 23:31
slloyd slloyd is offline
Registered User
AKA: Sonny
FRC #1221 (Nerbotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: CANADA -eh?
Posts: 20
slloyd is an unknown quantity at this point
Re: Axes in Default Code?

hey, that code is assuming that the shaft of the two motors are facing each other...

if you mount your motors with the shafts pointing away from each other then your motors will run backwards (up on joystick means drive backwards, left on joystick causes robot to turn right).

you need to invert the signal in the code to support the motors aligned with shafts facing away.

try this modification:

p1_x = p1_y- 255 ;
p1_y = pwm05 - 255;

slloyd