kostepper.pd 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. #N canvas 296 114 871 626 10;
  2. #X obj 85 172 cnv 15 130 200 empty empty Status 2 8 0 14 -233017 -128992
  3. 0;
  4. #X obj 85 377 cnv 15 130 100 empty empty MANUEL 2 8 0 14 -233017 -128992
  5. 0;
  6. #X obj 220 172 cnv 15 180 305 empty empty Move 2 8 0 14 -233017 -128992
  7. 0;
  8. #X obj 65 9 r /fromOSC;
  9. #X floatatom 145 283 10 0 0 0 - - -, f 10;
  10. #X floatatom 145 311 10 0 0 0 - - -, f 10;
  11. #X floatatom 145 339 10 0 0 0 - - -, f 10;
  12. #X text 105 283 target;
  13. #X text 111 311 speed;
  14. #X text 93 339 maxspeed;
  15. #X obj 110 54 print stepper\$1;
  16. #N canvas 1 55 450 300 filter\$1 0;
  17. #X obj 60 41 t a a;
  18. #X obj 92 89 == \$1;
  19. #X obj 60 132 spigot;
  20. #X msg 92 67 \$1;
  21. #X obj 60 21 inlet;
  22. #X obj 60 153 outlet;
  23. #X connect 0 0 2 0;
  24. #X connect 0 1 3 0;
  25. #X connect 1 0 2 1;
  26. #X connect 2 0 5 0;
  27. #X connect 3 0 1 0;
  28. #X connect 4 0 0 0;
  29. #X restore 65 29 pd filter\$1;
  30. #N canvas 123 519 450 300 conversion 0;
  31. #X obj 97 9 inlet;
  32. #X obj 97 30 unpack f f f f f;
  33. #X obj 97 94 outlet;
  34. #X obj 120 134 outlet;
  35. #X obj 143 174 outlet;
  36. #X obj 166 214 outlet;
  37. #X obj 190 254 outlet;
  38. #X obj 97 75 steps2camrot;
  39. #X obj 120 115 steps2camrot;
  40. #X obj 143 155 steps2camrot;
  41. #X obj 166 195 steps2camrot;
  42. #X obj 190 235 steps2camrot;
  43. #X connect 0 0 1 0;
  44. #X connect 1 0 7 0;
  45. #X connect 1 1 8 0;
  46. #X connect 1 2 9 0;
  47. #X connect 1 3 10 0;
  48. #X connect 1 4 11 0;
  49. #X connect 7 0 2 0;
  50. #X connect 8 0 3 0;
  51. #X connect 9 0 4 0;
  52. #X connect 10 0 5 0;
  53. #X connect 11 0 6 0;
  54. #X restore 65 96 pd conversion;
  55. #X obj 65 74 route /status /onTarget;
  56. #X obj 180 382 vsl 12 60 0 2 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
  57. speed -10 70 0 10 -262144 -1 -1 5900 1;
  58. #X obj 105 444 hradio 15 1 0 2 /stepper/\$1/manualDirection /stepper/\$1/manualDirection
  59. direction -10 22 0 10 -262144 -1 -1 0;
  60. #X obj 270 175 bng 25 250 50 0 /stepper/\$1/move/go /stepper/\$1/move/go
  61. GO 6 13 0 10 -4034 -1 -1;
  62. #X obj 285 686 list prepend add;
  63. #X obj 285 707 list trim;
  64. #X obj 281 586 ofGetPatchDirectory;
  65. #X obj 281 511 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  66. -1 -1;
  67. #X text 302 511 get the list of file names in a directory.;
  68. #X msg 282 634 symbol \$1/moves;
  69. #X symbolatom 281 607 50 0 0 0 - - -, f 50;
  70. #X obj 608 582 print;
  71. #X obj 290 664 ofGetDirectoryFileNames move;
  72. #N canvas 421 242 906 607 \$0-osc 0;
  73. #X obj 44 54 kollabs/osc_bi \$2 /stepper/\$1/driveMode;
  74. #X obj 44 164 kollabs/osc_bi \$2 /stepper/\$1/moveTo;
  75. #X obj 44 224 kollabs/osc_bi \$2 /stepper/\$1/setSpeed;
  76. #X obj 44 244 kollabs/osc_bi \$2 /stepper/\$1/setMaxSpeed;
  77. #X obj 44 264 kollabs/osc_bi \$2 /stepper/\$1/acceleration;
  78. #X obj 44 74 kollabs/osc_bi \$2 /stepper/\$1/accMode;
  79. #X obj 44 94 kollabs/osc_bi \$2 /stepper/\$1/manualDrive;
  80. #X obj 44 35 kollabs/osc_bi \$2 /stepper/\$1/updateStatus;
  81. #X obj 44 304 kollabs/osc_bi \$2 /stepper/\$1/sequences/list;
  82. #X obj 44 354 kollabs/osc_bi \$2 /stepper/\$1/pos/current;
  83. #X obj 44 374 kollabs/osc_bi \$2 /stepper/\$1/pos/current/deg;
  84. #X obj 533 37 loadbang;
  85. #X obj 533 58 f \$1;
  86. #X msg 532 79 \; /stepper/\$1/accMode 0 \; /stepper/\$1/manualDrive
  87. 0 \; /stepper/\$1/setSpeed 1 \; /stepper/\$1/setMaxSpeed 1 \; /stepper/\$1/acceleration
  88. 1;
  89. #X obj 44 124 kollabs/osc_bi \$2 /stepper/\$1/move;
  90. #X obj 44 144 kollabs/osc_bi \$2 /stepper/\$1/move/deg;
  91. #X connect 11 0 12 0;
  92. #X connect 12 0 13 0;
  93. #X restore 661 40 pd \$0-osc;
  94. #X obj 106 398 tgl 35 0 /stepper/\$1/manualDrive /stepper/\$1/manualDrive
  95. empty 17 7 0 10 -204800 -33289 -1 0 1;
  96. #X obj 365 264 tgl 12 0 /stepper/\$1/accMode empty 0/1 17 7 0 10 -262144
  97. -1 -1 0 1;
  98. #X obj 223 292 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move /stepper/\$1/move
  99. tours 48 8 0 10 -262144 -1 -1 0 256;
  100. #X obj 168 459 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
  101. empty 0 -8 0 10 -262144 -1 -1 2 256;
  102. #X obj 315 282 vsl 12 60 0 2 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
  103. speed -10 70 0 10 -262144 -1 -1 2950 1;
  104. #X obj 303 359 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
  105. empty 0 -8 0 10 -262144 -1 -1 1 256;
  106. #X obj 365 282 vsl 12 60 0 2 0 0 /stepper/\$1/acceleration /stepper/\$1/acceleration
  107. acc -2 70 0 10 -233017 -233017 -195568 2950 1;
  108. #X obj 353 359 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/acceleration
  109. /stepper/\$1/acceleration empty 0 -8 0 10 -233017 -233017 -195568 1
  110. 256;
  111. #X obj 434 838 cnv 15 180 100 empty empty presets 2 8 0 14 -233017
  112. -128992 0;
  113. #X obj 197 175 bng 15 250 50 0 /stepper/\$1/updateStatus /stepper/\$1/updateStatus
  114. refresh -45 8 0 10 -262144 -1 -1;
  115. #X obj 298 175 bng 25 250 50 0 /stepper/\$1/stop /stepper/\$1/stop
  116. STOP 1 14 0 10 -258113 -1 -1;
  117. #X obj 281 531 t b b;
  118. #X obj 286 765 s /stepper/\$1/sequences/list;
  119. #X msg 309 559 clear \, align 0 \, add none \, set 0;
  120. #X obj 83 127 s /stepper/\$1/pos/current;
  121. #X obj 339 227 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
  122. /stepper/\$1/move/startPos startPos 0 -8 0 10 -262144 -1 -1 0 256;
  123. #X obj 277 232 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
  124. goto 17 7 0 10 -262144 -1 -1;
  125. #X obj 230 232 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
  126. set 17 7 0 10 -262144 -1 -1;
  127. #X obj 148 241 nbx 3 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current/deg
  128. /stepper/\$1/pos/current/deg degrees -50 8 0 10 -262144 -1 -1 0 256
  129. ;
  130. #X obj 148 225 nbx 5 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current /stepper/\$1/pos/current
  131. turns -45 7 0 10 -262144 -1 -1 0 256;
  132. #X obj 223 308 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/deg /stepper/\$1/move/deg
  133. deg 48 8 0 10 -262144 -1 -1 0 256;
  134. #X obj 153 97 s /stepper/\$1/pos/onTarget;
  135. #X obj 327 175 cnv 25 70 25 /stepper/\$1/runningGui /stepper/\$1/runningGui
  136. idle 17 12 0 14 -233017 -195568 0;
  137. #X obj 353 122 r /stepper/\$1/accGUI;
  138. #X text 227 212 Position depart;
  139. #X text 225 263 Reglages mouvement;
  140. #X obj 405 172 cnv 15 370 305 empty empty Sequence 2 8 0 14 -233017
  141. -128992 0;
  142. #X obj 500 175 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
  143. /stepper/\$1/move/startPos startPos 48 8 0 10 -262144 -1 -1 0 256;
  144. #X obj 661 175 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
  145. goto 17 7 0 10 -262144 -1 -1;
  146. #X obj 614 175 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
  147. set 17 7 0 10 -262144 -1 -1;
  148. #X obj 675 210 bng 15 250 50 0 /stepper/\$1/writeSeq /stepper/\$1/writeSeq
  149. save 17 7 0 10 -262144 -1 -1;
  150. #X text 144 204 CURRENT;
  151. #X obj 172 824 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
  152. grey95 black 0 \, none \, test (autre copie).move \, test.move \, test (3e copie).move
  153. \, test (4e copie).move \, test (copie).move;
  154. #X obj 183 801 r /stepper/\$1/sequences/list;
  155. #X obj 427 208 bng 15 250 50 0 /stepper/\$1/sequencer/open empty choose_sequence
  156. 17 7 0 10 -262144 -1 -1;
  157. #X obj 559 240 nbx 5 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/current /stepper/\$1/cue/current
  158. empty 0 -8 0 10 -262144 -1 -1 0 256;
  159. #X obj 421 232 bng 25 250 50 0 /stepper/\$1/sequencer/go /stepper/\$1/sequencer/go
  160. GO 6 13 0 10 -4034 -1 -1;
  161. #X msg 494 538 1;
  162. #X obj 556 212 tgl 15 0 /stepper/\$1/sequencer/loop /stepper/\$1/sequencer/loop
  163. loopSeq 17 7 0 10 -262144 -1 -1 0 1;
  164. #X obj 410 273 stepperCue \$1 0;
  165. #X obj 675 230 bng 15 250 50 0 /stepper/\$1/sequencer/load /stepper/\$1/sequencer/load
  166. reload 17 7 0 10 -262144 -1 -1;
  167. #X text 451 236 sequence;
  168. #X obj 410 321 stepperCue \$1 1;
  169. #X obj 411 369 stepperCue \$1 2;
  170. #X obj 411 417 stepperCue \$1 3;
  171. #N canvas 594 568 980 300 \$0-gui 0;
  172. #X obj 19 143 loadbang;
  173. #X obj 19 202 s /stepper/\$1/runningGui;
  174. #X msg 77 132 color 14 13 13 \, label running \, label_pos 7 12;
  175. #X msg 19 184 color 10 11 20 \, label idle \, label_pos 17 12;
  176. #X obj 19 164 r /stepper/\$1/pos/onTarget;
  177. #X obj 94 93 r /stepper/\$1/move/gotoStart;
  178. #X text 265 61 GUI COLORS;
  179. #X obj 370 107 r /stepper/\$1/accMode;
  180. #X obj 370 128 route 0 1;
  181. #X msg 370 147 color 10 10 20;
  182. #X msg 395 168 color 0 22 22;
  183. #X obj 370 201 s /stepper/\$1/accGUI;
  184. #X obj 77 113 r /stepper/\$1/move/go;
  185. #X connect 0 0 3 0;
  186. #X connect 2 0 1 0;
  187. #X connect 3 0 1 0;
  188. #X connect 4 0 3 0;
  189. #X connect 5 0 2 0;
  190. #X connect 7 0 8 0;
  191. #X connect 8 0 9 0;
  192. #X connect 8 1 10 0;
  193. #X connect 9 0 11 0;
  194. #X connect 10 0 11 0;
  195. #X connect 12 0 2 0;
  196. #X restore 661 59 pd \$0-gui;
  197. #N canvas 1 55 786 904 \$0-sequencer 0;
  198. #X obj 463 246 text set \$1-seq;
  199. #X obj 463 187 pack s f;
  200. #X obj 463 147 symbol /stepper/\$1/move/startPos;
  201. #X obj 508 167 r /stepper/\$1/move/startPos;
  202. #X obj 450 105 t b b b f;
  203. #X msg 467 129 1;
  204. #X obj 450 84 r /stepper/\$1/writeSeq;
  205. #X obj 439 338 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  206. -1 -1;
  207. #X msg 467 345 line 0 \, bang;
  208. #X obj 467 364 text sequence \$1-seq -g;
  209. #X obj 260 139 text define -k \$1-seq;
  210. #A set /stepper/0/move/startPos 0 \; \; CUE 0 \; /stepper/0/cue/0/move
  211. 0.138889 \; /stepper/0/cue/0/setMaxSpeed 0.570001 \; /stepper/0/cue/0/acceleration
  212. 0.17 \; /stepper/0/cue/0/accMode 1 \; /stepper/0/cue/0/active 1 \;
  213. \; CUE 1 \; /stepper/0/cue/1/move 0.0694444 \; /stepper/0/cue/1/setMaxSpeed
  214. 0.58 \; /stepper/0/cue/1/acceleration 0 \; /stepper/0/cue/1/accMode
  215. 0 \; /stepper/0/cue/1/active 0 \; \; CUE 2 \; /stepper/0/cue/2/move
  216. -0.208333 \; /stepper/0/cue/2/setMaxSpeed 1.02 \; /stepper/0/cue/2/acceleration
  217. 0 \; /stepper/0/cue/2/accMode 0 \; /stepper/0/cue/2/active 0 \; \;
  218. CUE 3 \; /stepper/0/cue/3/move 0.0277778 \; /stepper/0/cue/3/setMaxSpeed
  219. 0.29 \; /stepper/0/cue/3/acceleration 0 \; /stepper/0/cue/3/accMode
  220. 1 \; /stepper/0/cue/3/active 0 \; \;;
  221. #X obj 467 385 r CUE;
  222. #X obj 467 326 r /stepper/\$1/sequencer/load;
  223. #X obj 260 35 r /stepper/\$1/writeSeq;
  224. #X obj 260 56 delay 100;
  225. #X obj 260 97 savepanel;
  226. #X msg 260 77 symbol ./;
  227. #X msg 260 118 write \$1;
  228. #X obj 30 16 r /stepper/\$1/sequencer/open;
  229. #X obj 30 34 openpanel;
  230. #X msg 176 74 read \$1;
  231. #X obj 31 113 s /stepper/\$1/sequencer/load;
  232. #X obj 30 94 bang;
  233. #X obj 30 73 delay 100;
  234. #X obj 30 52 t b a;
  235. #X obj 114 275 r /stepper/\$1/openSeq;
  236. #X obj 114 347 openpanel;
  237. #X msg 114 326 symbol ./;
  238. #X obj 190 566 r /stepper/\$1/cue/current;
  239. #X obj 139 536 r /stepper/\$1/pos/onTarget;
  240. #X obj 79 434 t b b;
  241. #X obj 112 455 f \$1;
  242. #X msg 111 476 \; /stepper/\$1/cue/0/move/go bang;
  243. #X obj 171 442 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  244. -1 -1;
  245. #X obj 139 727 spigot;
  246. #X obj 190 587 t f f;
  247. #X obj 79 413 r /stepper/\$1/sequencer/go;
  248. #X obj 205 648 r /stepper/\$1/sequencer/loop;
  249. #X obj 190 669 f;
  250. #X obj 190 691 route 0 1;
  251. #X msg 190 711 0;
  252. #X obj 139 768 pack 0 \$1;
  253. #X msg 139 789 \; /stepper/\$2/cue/\$1/move/go bang;
  254. #X obj 275 686 r /stepper/\$1/stop;
  255. #X obj 139 746 f;
  256. #X obj 217 606 + 1;
  257. #X msg 231 713 0;
  258. #X obj 265 592 print;
  259. #X obj 190 628 route 3;
  260. #X obj 139 557 bang;
  261. #X obj 167 516 r /stepper/\$1/cue/next;
  262. #X connect 1 0 0 0;
  263. #X connect 2 0 1 0;
  264. #X connect 3 0 1 1;
  265. #X connect 4 0 0 0;
  266. #X connect 4 1 5 0;
  267. #X connect 4 2 2 0;
  268. #X connect 4 3 0 1;
  269. #X connect 5 0 0 1;
  270. #X connect 6 0 4 0;
  271. #X connect 7 0 9 0;
  272. #X connect 8 0 9 0;
  273. #X connect 12 0 8 0;
  274. #X connect 13 0 14 0;
  275. #X connect 14 0 16 0;
  276. #X connect 15 0 17 0;
  277. #X connect 16 0 15 0;
  278. #X connect 17 0 10 0;
  279. #X connect 18 0 19 0;
  280. #X connect 19 0 24 0;
  281. #X connect 20 0 10 0;
  282. #X connect 22 0 21 0;
  283. #X connect 23 0 22 0;
  284. #X connect 24 0 23 0;
  285. #X connect 24 1 20 0;
  286. #X connect 25 0 27 0;
  287. #X connect 27 0 26 0;
  288. #X connect 28 0 35 0;
  289. #X connect 29 0 49 0;
  290. #X connect 30 1 31 0;
  291. #X connect 31 0 32 0;
  292. #X connect 33 0 31 0;
  293. #X connect 34 0 44 0;
  294. #X connect 35 0 48 0;
  295. #X connect 35 1 45 0;
  296. #X connect 36 0 30 0;
  297. #X connect 37 0 38 1;
  298. #X connect 38 0 39 0;
  299. #X connect 39 0 40 0;
  300. #X connect 39 1 46 0;
  301. #X connect 40 0 34 1;
  302. #X connect 41 0 42 0;
  303. #X connect 43 0 40 0;
  304. #X connect 44 0 41 0;
  305. #X connect 45 0 44 1;
  306. #X connect 46 0 44 1;
  307. #X connect 48 0 38 0;
  308. #X connect 49 0 34 0;
  309. #X connect 50 0 49 0;
  310. #X restore 661 78 pd \$0-sequencer;
  311. #N canvas 1 55 894 565 \$0-startposition 0;
  312. #X obj 170 103 r /stepper/\$1/pos/current;
  313. #X obj 170 122 * 360;
  314. #X floatatom 97 134 5 0 0 0 - - -, f 5;
  315. #X obj 145 222 f;
  316. #X obj 145 84 r /stepper/\$1/move/setStart;
  317. #X obj 140 306 r /stepper/\$1/move/gotoStart;
  318. #X obj 145 241 s /stepper/\$1/move/startPos;
  319. #X obj 444 105 r /stepper/\$1/move/startPos;
  320. #X obj 420 146 -;
  321. #X obj 444 125 t b f;
  322. #X text 450 147 distance currentPos->startPos;
  323. #X obj 420 206 moses 180;
  324. #X obj 471 227 - 360;
  325. #X text 517 225 go backward \, quickest path;
  326. #X floatatom 502 166 5 0 0 0 - - -, f 5;
  327. #X obj 140 463 s /toOSC;
  328. #X msg 140 444 /\$1 \$3 \$2;
  329. #X obj 140 345 f \$1;
  330. #X obj 420 314 / 360;
  331. #X obj 170 222 s /stepper/\$1/pos/current/deg;
  332. #X obj 420 84 r /stepper/\$1/pos/current/deg;
  333. #X obj 420 187 abs;
  334. #X obj 420 166 t f f;
  335. #X obj 447 251 moses 0;
  336. #X msg 447 272 360;
  337. #X msg 477 272 -360;
  338. #X obj 170 141 t f f;
  339. #X obj 197 159 div 360;
  340. #X obj 197 180 * 360;
  341. #X obj 170 199 -;
  342. #X text 286 58 START POSITION MANAGEMENT;
  343. #X obj 140 425 list;
  344. #X msg 140 386 driveMode 1 \$1 \, maxSpeed \$3 \$1 \, move \$2 \$1
  345. \, setSpeed \$3 \$1 \, getStatus \$1 \$1;
  346. #X obj 140 366 pack 0 0 4000 0;
  347. #X obj 351 333 steps2camrot;
  348. #X connect 0 0 1 0;
  349. #X connect 1 0 26 0;
  350. #X connect 3 0 6 0;
  351. #X connect 4 0 3 0;
  352. #X connect 5 0 17 0;
  353. #X connect 7 0 9 0;
  354. #X connect 8 0 14 0;
  355. #X connect 8 0 22 0;
  356. #X connect 9 0 8 0;
  357. #X connect 9 1 8 1;
  358. #X connect 11 0 18 0;
  359. #X connect 11 1 12 0;
  360. #X connect 12 0 18 0;
  361. #X connect 16 0 15 0;
  362. #X connect 17 0 33 0;
  363. #X connect 18 0 34 1;
  364. #X connect 20 0 8 0;
  365. #X connect 21 0 11 0;
  366. #X connect 22 0 21 0;
  367. #X connect 22 1 23 0;
  368. #X connect 23 0 24 0;
  369. #X connect 23 1 25 0;
  370. #X connect 24 0 18 1;
  371. #X connect 25 0 18 1;
  372. #X connect 26 0 29 0;
  373. #X connect 26 1 27 0;
  374. #X connect 27 0 28 0;
  375. #X connect 28 0 29 1;
  376. #X connect 29 0 2 0;
  377. #X connect 29 0 19 0;
  378. #X connect 29 0 3 1;
  379. #X connect 31 0 16 0;
  380. #X connect 32 0 31 0;
  381. #X connect 33 0 32 0;
  382. #X connect 34 0 33 1;
  383. #X restore 661 97 pd \$0-startposition;
  384. #N canvas 1 55 1063 712 \$0-modes&moves 0;
  385. #X obj 40 88 route 0 1;
  386. #X obj 40 44 r /stepper/\$1/manualDrive;
  387. #X obj 51 111 r /stepper/\$1/accMode;
  388. #X obj 40 65 t f f;
  389. #X obj 40 152 f;
  390. #X msg 65 198 2;
  391. #X obj 40 216 s /stepper/\$1/driveMode;
  392. #X obj 40 173 spigot;
  393. #X obj 73 153 == 0;
  394. #X text 75 16 SET DRIVE MODE;
  395. #X obj 740 263 r /stepper/\$1/driveMode;
  396. #X obj 740 351 pack s f f;
  397. #X obj 797 326 f \$1;
  398. #X obj 797 304 loadbang;
  399. #X obj 740 405 s /toOSC;
  400. #X msg 740 383 /\$1 \$3 \$2;
  401. #X text 760 247 SEND DRIVE MODE;
  402. #X obj 711 177 / 60;
  403. #X obj 642 236 spigot;
  404. #X obj 725 199 r /stepper/\$1/driveMode;
  405. #X obj 725 220 == 2;
  406. #X msg 642 255 setSpeed \$1;
  407. #X obj 51 132 == 0;
  408. #X msg 740 284 driveMode \$1 \, setSpeed 0;
  409. #X text 696 14 MANUAL SPEED;
  410. #X obj 711 153 * 1;
  411. #X obj 726 133 t b f;
  412. #X obj 726 93 route 0 1;
  413. #X msg 726 113 -1;
  414. #X msg 755 113 1;
  415. #X obj 726 67 r /stepper/\$1/manualDirection;
  416. #X obj 711 42 r /stepper/\$1/manualSpeed;
  417. #X obj 215 149 r /stepper/\$1/updateStatus;
  418. #X obj 215 170 f \$1;
  419. #X msg 215 191 /getStatus \$1;
  420. #X obj 215 212 s /toOSC;
  421. #X obj 215 62 f \$1;
  422. #X msg 215 83 /stop \$1;
  423. #X obj 396 43 r /stepper/\$1/move;
  424. #X obj 415 143 s /stepper/\$1/move/deg;
  425. #X obj 396 163 r /stepper/\$1/move/deg;
  426. #X obj 415 263 s /stepper/\$1/move;
  427. #X obj 415 244 / 360;
  428. #X obj 215 103 s /toOSC;
  429. #X text 248 17 STOP;
  430. #X text 405 17 MOVE DEGRES CONVERSION;
  431. #X text 232 131 STATUS;
  432. #X obj 396 204 t b f b;
  433. #X msg 436 223 0;
  434. #X msg 396 224 1;
  435. #X obj 415 124 * 360;
  436. #X obj 396 83 t b f b;
  437. #X msg 436 101 0;
  438. #X msg 396 102 1;
  439. #X obj 215 43 r /stepper/\$1/stop;
  440. #X obj 396 65 spigot 1;
  441. #X obj 396 184 spigot 1;
  442. #X obj 642 199 steps2camrot;
  443. #X obj 169 381 / 60;
  444. #X obj 169 363 r /stepper/\$1/setMaxSpeed;
  445. #X obj 54 465 list prepend;
  446. #X obj 134 443 r /stepper/\$1/driveMode;
  447. #X obj 146 343 r /stepper/\$1/move;
  448. #X obj 54 339 f \$1;
  449. #X obj 203 401 / 60;
  450. #X obj 203 383 r /stepper/\$1/acceleration;
  451. #X obj 54 443 pack f f f f;
  452. #X obj 54 484 route 0 1;
  453. #X obj 54 563 list;
  454. #X msg 79 538 move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1
  455. ;
  456. #X obj 54 601 s /toOSC;
  457. #X msg 54 582 /\$1 \$3 \$2;
  458. #X obj 54 318 r /stepper/\$1/move/go;
  459. #X msg 54 504 acceleration \$4 \$1 \, maxSpeed \$3 \$1 \, move \$2
  460. \$1 \, getStatus \$1 \$1;
  461. #X obj 134 419 steps2camrot;
  462. #X text 78 296 MOVE MANAGEMENT;
  463. #X obj 100 399 steps2camrot;
  464. #X obj 77 361 steps2camrot;
  465. #X connect 0 0 4 0;
  466. #X connect 0 1 5 0;
  467. #X connect 1 0 3 0;
  468. #X connect 2 0 22 0;
  469. #X connect 3 0 0 0;
  470. #X connect 3 1 8 0;
  471. #X connect 4 0 7 0;
  472. #X connect 5 0 6 0;
  473. #X connect 7 0 6 0;
  474. #X connect 8 0 7 1;
  475. #X connect 10 0 23 0;
  476. #X connect 11 0 15 0;
  477. #X connect 12 0 11 2;
  478. #X connect 13 0 12 0;
  479. #X connect 15 0 14 0;
  480. #X connect 17 0 57 1;
  481. #X connect 18 0 21 0;
  482. #X connect 19 0 20 0;
  483. #X connect 20 0 18 1;
  484. #X connect 21 0 11 0;
  485. #X connect 22 0 4 0;
  486. #X connect 23 0 11 0;
  487. #X connect 25 0 17 0;
  488. #X connect 26 0 25 0;
  489. #X connect 26 1 25 1;
  490. #X connect 27 0 28 0;
  491. #X connect 27 1 29 0;
  492. #X connect 28 0 26 0;
  493. #X connect 29 0 26 0;
  494. #X connect 30 0 27 0;
  495. #X connect 31 0 25 0;
  496. #X connect 32 0 33 0;
  497. #X connect 33 0 34 0;
  498. #X connect 34 0 35 0;
  499. #X connect 36 0 37 0;
  500. #X connect 37 0 43 0;
  501. #X connect 38 0 55 0;
  502. #X connect 40 0 56 0;
  503. #X connect 42 0 41 0;
  504. #X connect 47 0 49 0;
  505. #X connect 47 1 42 0;
  506. #X connect 47 2 48 0;
  507. #X connect 48 0 55 1;
  508. #X connect 49 0 55 1;
  509. #X connect 50 0 39 0;
  510. #X connect 51 0 53 0;
  511. #X connect 51 1 50 0;
  512. #X connect 51 2 52 0;
  513. #X connect 52 0 56 1;
  514. #X connect 53 0 56 1;
  515. #X connect 54 0 36 0;
  516. #X connect 55 0 51 0;
  517. #X connect 56 0 47 0;
  518. #X connect 57 0 18 0;
  519. #X connect 58 0 76 1;
  520. #X connect 59 0 58 0;
  521. #X connect 60 0 67 0;
  522. #X connect 61 0 60 1;
  523. #X connect 62 0 77 1;
  524. #X connect 63 0 66 0;
  525. #X connect 64 0 74 1;
  526. #X connect 65 0 64 0;
  527. #X connect 66 0 60 0;
  528. #X connect 67 0 73 0;
  529. #X connect 67 1 69 0;
  530. #X connect 68 0 71 0;
  531. #X connect 69 0 68 0;
  532. #X connect 71 0 70 0;
  533. #X connect 72 0 63 0;
  534. #X connect 73 0 68 0;
  535. #X connect 74 0 66 3;
  536. #X connect 76 0 66 2;
  537. #X connect 77 0 66 1;
  538. #X restore 661 117 pd \$0-modes&moves;
  539. #X connect 3 0 11 0;
  540. #X connect 11 0 10 0;
  541. #X connect 11 0 13 0;
  542. #X connect 12 1 41 0;
  543. #X connect 12 2 4 0;
  544. #X connect 12 3 5 0;
  545. #X connect 12 4 6 0;
  546. #X connect 13 0 12 0;
  547. #X connect 13 1 48 0;
  548. #X connect 17 0 18 0;
  549. #X connect 18 0 39 0;
  550. #X connect 19 0 22 0;
  551. #X connect 19 0 23 0;
  552. #X connect 20 0 38 0;
  553. #X connect 22 0 25 0;
  554. #X connect 25 0 17 0;
  555. #X connect 25 0 24 0;
  556. #X connect 38 0 19 0;
  557. #X connect 38 1 40 0;
  558. #X connect 40 0 39 0;
  559. #X connect 50 0 33 0;
  560. #X connect 50 0 34 0;
  561. #X coords 0 -1 1 1 700 329 1 80 150;