-
Notifications
You must be signed in to change notification settings - Fork 0
/
testServo.pd
63 lines (63 loc) · 1.93 KB
/
testServo.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#N canvas 1183 221 558 474 10;
#X declare -path Fraise;
#X obj 21 38 pied/pied 0 41424;
#X text 206 40 Output RC servo waveforms to K11 (channel 0) and K12
(channel 1).;
#X text 209 20 RC servo example for Versa1.0;
#X floatatom 88 252 8 0 0 0 - - -;
#X obj 91 211 hsl 128 15 3500 18000 0 0 empty empty empty -2 -8 0 10
-262144 -1 -1 12700 1;
#X text 102 175 example range 4000 to 16000 = 0.5 ms to 2 ms (adjust
the ranges for your servos and mechanical assembly);
#X msg 88 275 c 20 c 0 i \$1;
#X obj 255 372 route 20;
#X obj 255 393 route 0 1;
#X msg 178 310 c 20 c 254 c 0;
#X floatatom 255 427 8 0 0 3 pos_0 - -;
#X floatatom 315 427 8 0 0 3 pos_1 - -;
#X text 205 65 Here main servo channel is set to 20 in firmware (see
example1/main.c).;
#X text 271 310 get current pos of servo 0;
#X text 310 373 Receive requested channel positions.;
#X obj 22 120 fruit/fruit 1 servoMaster 20 testServoFW;
#X obj 19 278 / 8000;
#X floatatom 19 299 5 0 0 1 ms - -;
#X obj 88 382 fruit/send2 servoMaster;
#X obj 255 352 fruit/receive servoMaster;
#X text 92 235 position of servo channel 0 \, in 1/8 us steps.;
#X obj 22 6 declare -path Fraise;
#X msg 424 229 18000;
#X obj 424 250 t b f;
#X obj 424 271 timer;
#X obj 474 223 bng 40 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 424 292 8 0 0 0 - - -;
#X obj 394 113 t b b;
#X obj 395 94 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X floatatom 464 116 5 0 0 0 - - -;
#X msg 44 181 0;
#X obj 423 135 del 200;
#X msg 393 135 10;
#X connect 3 0 6 0;
#X connect 3 0 16 0;
#X connect 4 0 3 0;
#X connect 6 0 18 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 8 1 11 0;
#X connect 9 0 18 0;
#X connect 16 0 17 0;
#X connect 19 0 7 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 23 1 4 0;
#X connect 24 0 26 0;
#X connect 25 0 24 1;
#X connect 27 0 32 0;
#X connect 27 1 31 0;
#X connect 28 0 27 0;
#X connect 29 0 31 1;
#X connect 30 0 4 0;
#X connect 31 0 22 0;
#X connect 32 0 4 0;