Quote:
|
Originally Posted by MikeWasHere05
Hmm, never thought of having the speed that it's approaching at be proportional to the tilt value. It's so simple, but such an effective idea. How did you figure out what the "magic number" was? Trial and error?
|
Which magic number, the proportion? I just set it as 1:1, as in:
Code:
pwm01-=(tilt_servo-127);
Under normal operation, tilt_servo never gets larger than my speed setting, so this works just fine.