View Single Post
  #2   Spotlight this post!  
Unread 27-03-2008, 20:43
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: 1 joystick controls not turning properly

before the 1 joystick drive portion, do this:

p1_x = 254 - p1_x

This will make the math controlling the 1-joystick drive believe that the joystick is facing the opposite direction than it is.