|
Jiggly servo
We have a two speed transmission that shifts with a servo. We want to press the trigger button to shift between high and low gear. We want the program to Get the Servo angle...decide if it is in high gear (45) or low gear (120)...then shift into the opposing gear.
The problem with the program- program attached below- is... when we pull the trigger button the servo JIGGLES before it decides what gear it sets in. Most of the time it chooses the correct gear but not always.
Are we taking the wrong approach?
|