View Single Post
  #6   Spotlight this post!  
Unread 20-02-2006, 04:06
jrmarenda jrmarenda is offline
Registered User
AKA: Jason Marenda
FRC #1887 (Russet Robotix)
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Pocatello, ID
Posts: 8
jrmarenda will become famous soon enough
Re: Control Problems

This shoudl fix your problem:
pwm13 = pwm14 = Limit_Mix(2000 - p1_y - p1_x + 381);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);

I had the same problem, and figured out the answer by simply setting up a table with actual and desired values using the dashboard viewer. I have tried this on our robot and it works. Le t me know if it doesn't work out for you.