View Single Post
  #1   Spotlight this post!  
Unread 30-01-2008, 20:18
penguain penguain is offline
Registered User
AKA: Barry Preston
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2007
Location: Bishop Miege High School
Posts: 18
penguain is an unknown quantity at this point
1 Joystick Control

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
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists