|
Re: Help again with Servo Programming
Eliminate your ELSE cases and everything should work fine. They're negating the effect of the first IF and always set the PWMs to 0. You also may want to find the values at which the gear engages, but does not push the servo beyond its mechanical limit. Although I'm not sure it is needed.
|