View Single Post
  #4   Spotlight this post!  
Unread 20-01-2005, 16:27
RIgnazio RIgnazio is offline
Registered User
no team
Team Role: Webmaster
 
Join Date: Jan 2005
Rookie Year: 2004
Location: .
Posts: 45
RIgnazio will become famous soon enough
Re: How to get the robot to stop...

Quote:
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
Love it!
Ok, anyways, back to the making the robot stop. In autonomous mode, what I find that works best is at the end of the loop, use
Quote:
else
{
pwmXX = 127;
pwmXX = 127;
}
where XX is your PWM number. Now, you can create a little snippet like this:
Quote:
#define pwm_neutral 127
What that will do is let you use pwm_neutral and it will equal 127. If you don't like working with numbers, that is. I also do a
Quote:
#define pwm_max 254
#define pwm_min 0
for max and min speeds.