View Single Post
  #8   Spotlight this post!  
Unread 28-01-2005, 00:04
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Re: problem with the default code

Quote:
Originally Posted by MichaelGoldfarb
You can switch the X-axis in the default code by subtracting p1_x value from 255.

Example:
Code:
Limit_Mix(2000 + p1_y + (255 - p1_x) - 127);
You would need to invert the whole thing if the robot is driving correctly and you have the motors "backwards" not just invert the x-axis.

But I say leave the wires "backwards" and let the processor have a few extra cycles for other things. Heck, the victors aren't labeled this year, so just put your own lables on them, and have the N+ and M- switched on those to prevent confusion.