View Single Post
  #13   Spotlight this post!  
Unread 15-02-2006, 12:59
hoag's Avatar
hoag hoag is offline
Press any key
no team
Team Role: Programmer
 
Join Date: Jul 2004
Rookie Year: 2003
Location: My Computer
Posts: 30
hoag is on a distinguished road
Re: Control Problems

If anything is moving in the wrong direction, you could just subtract the Limit_Mix result from 254. (To reverse direction)

for the right motor I use
(254-(Limit_Mix(2000 + p1_y + p1_x - 127)));


for the left motor I use
(Limit_Mix(2000 + p1_y - p1_x + 127));


I've used this setup for all of my team's robots.