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:
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.