move(pin, angel) - Sequence of attach(pin), write(angel), if DEACTIVATE_SERVOS_AFTER_MOVE is defined waits SERVO_DEACTIVATION_DELAY, than detaches. As we have jitter on the servos during moves of the steppers, and detaching them improves this behaviour, the usual sequence to handle a servo movement is: attach(pin) write(angel) delay(until the servo finished the move) detache() Here a function to handle the complete sequence.
|
|
||
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
37 |
|
|
38 |
|
|
|
39 |
|
|
38 |
|
40 |
|
39 |
|
41 |
|
40 |
|
42 |
|
41 |
|
43 |
|
42 |
|
44 |
|
43 |
|
|
|
|
45 |
|
|
44 |
|
46 |
|
45 |
|
47 |
|
46 |
|
48 |
|
|
|
||
301 |
|
303 |
|
302 |
|
304 |
|
303 |
|
305 |
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
304 |
|
319 |
|
|
|
||
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
42 |
|
|
43 |
|
|
|
44 |
|
|
43 |
|
45 |
|
44 |
|
46 |
|
45 |
|
47 |
|
|
|
||
120 |
|
122 |
|
121 |
|
123 |
|
122 |
|
124 |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
123 |
|
128 |
|
124 |
|
129 |
|
125 |
|
130 |
|