The FRC code for 1 joystick control is
Code:
p1_x = 255 - p1_y;
p1_y = 255 - pwm05;
pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
how ever when i move the joystick left and right the robot goes forward and backwards
and when in move the joystick up and down the robot moves left and right
should is switch all the axises to the opposite or what
Thanks in advance
Barry Preston
STAG Robotics
Team #1997
Programming and Communications Officer