瀏覽代碼

kostepper cleaning

Etienne Landon 7 年之前
父節點
當前提交
7ae58533c1
共有 2 個文件被更改,包括 401 次插入395 次删除
  1. 396 392
      kostepper.pd
  2. 5 3
      steps2camrot.pd

+ 396 - 392
kostepper.pd

@@ -1,4 +1,4 @@
-#N canvas 1 55 1918 984 10;
+#N canvas 296 114 871 626 10;
 #X obj 85 172 cnv 15 130 200 empty empty Status 2 8 0 14 -233017 -128992
 0;
 #X obj 85 377 cnv 15 130 100 empty empty MANUEL 2 8 0 14 -233017 -128992
@@ -54,21 +54,21 @@
 #X restore 65 96 pd conversion;
 #X obj 65 74 route /status /onTarget;
 #X obj 180 382 vsl 12 60 0 2 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
-speed -10 70 0 10 -262144 -1 -1 0 1;
+speed -10 70 0 10 -262144 -1 -1 5900 1;
 #X obj 105 444 hradio 15 1 0 2 /stepper/\$1/manualDirection /stepper/\$1/manualDirection
-direction -10 22 0 10 -262144 -1 -1 1;
+direction -10 22 0 10 -262144 -1 -1 0;
 #X obj 270 175 bng 25 250 50 0 /stepper/\$1/move/go /stepper/\$1/move/go
 GO 6 13 0 10 -4034 -1 -1;
-#X obj 1486 706 list prepend add;
-#X obj 1486 727 list trim;
-#X obj 1482 606 ofGetPatchDirectory;
-#X obj 1482 531 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+#X obj 285 686 list prepend add;
+#X obj 285 707 list trim;
+#X obj 281 586 ofGetPatchDirectory;
+#X obj 281 511 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
-#X text 1503 531 get the list of file names in a directory.;
-#X msg 1483 654 symbol \$1/moves;
-#X symbolatom 1482 627 50 0 0 0 - - -, f 50;
-#X obj 1809 602 print;
-#X obj 1491 684 ofGetDirectoryFileNames move;
+#X text 302 511 get the list of file names in a directory.;
+#X msg 282 634 symbol \$1/moves;
+#X symbolatom 281 607 50 0 0 0 - - -, f 50;
+#X obj 608 582 print;
+#X obj 290 664 ofGetDirectoryFileNames move;
 #N canvas 421 242 906 607 \$0-osc 0;
 #X obj 44 54 kollabs/osc_bi \$2 /stepper/\$1/driveMode;
 #X obj 44 164 kollabs/osc_bi \$2 /stepper/\$1/moveTo;
@@ -90,60 +90,15 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 44 144 kollabs/osc_bi \$2 /stepper/\$1/move/deg;
 #X connect 11 0 12 0;
 #X connect 12 0 13 0;
-#X restore 337 502 pd \$0-osc;
-#X obj 1022 80 route 0 1;
-#X obj 1022 36 r /stepper/\$1/manualDrive;
-#X obj 1033 103 r /stepper/\$1/accMode;
-#X obj 1022 57 t f f;
-#X obj 1022 144 f;
-#X msg 1047 190 2;
-#X obj 1022 208 s /stepper/\$1/driveMode;
-#X obj 1022 165 spigot;
-#X obj 1055 145 == 0;
+#X restore 661 40 pd \$0-osc;
 #X obj 106 398 tgl 35 0 /stepper/\$1/manualDrive /stepper/\$1/manualDrive
 empty 17 7 0 10 -204800 -33289 -1 0 1;
 #X obj 365 264 tgl 12 0 /stepper/\$1/accMode empty 0/1 17 7 0 10 -262144
 -1 -1 0 1;
-#X text 1057 8 SET DRIVE MODE;
-#X obj 212 648 / 60;
-#X obj 212 630 r /stepper/\$1/setMaxSpeed;
-#X obj 1722 255 r /stepper/\$1/driveMode;
-#X obj 97 732 list prepend;
-#X obj 1722 343 pack s f f;
-#X obj 1779 318 f \$1;
-#X obj 1779 296 loadbang;
-#X obj 1722 397 s /toOSC;
-#X msg 1722 375 /\$1 \$3 \$2;
-#X obj 177 710 r /stepper/\$1/driveMode;
-#X text 1742 239 SEND DRIVE MODE;
-#X obj 189 610 r /stepper/\$1/move;
-#X obj 97 606 f \$1;
-#X obj 1693 169 / 60;
-#X obj 246 668 / 60;
-#X obj 246 650 r /stepper/\$1/acceleration;
-#X obj 97 710 pack f f f f;
-#X obj 97 751 route 0 1;
-#X obj 1624 228 spigot;
-#X obj 1707 191 r /stepper/\$1/driveMode;
-#X obj 1707 212 == 2;
-#X msg 1624 247 setSpeed \$1;
-#X obj 1033 124 == 0;
-#X msg 1722 276 driveMode \$1 \, setSpeed 0;
 #X obj 223 292 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move /stepper/\$1/move
 tours 48 8 0 10 -262144 -1 -1 0 256;
-#X obj 97 830 list;
-#X msg 122 805 move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1
-;
-#X text 1678 6 MANUAL SPEED;
-#X obj 1693 145 * 1;
-#X obj 1708 125 t b f;
-#X obj 1708 85 route 0 1;
-#X msg 1708 105 -1;
-#X msg 1737 105 1;
-#X obj 1708 59 r /stepper/\$1/manualDirection;
-#X obj 1693 34 r /stepper/\$1/manualSpeed;
 #X obj 168 459 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
-empty 0 -8 0 10 -262144 -1 -1 0 256;
+empty 0 -8 0 10 -262144 -1 -1 2 256;
 #X obj 315 282 vsl 12 60 0 2 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
 speed -10 70 0 10 -262144 -1 -1 2950 1;
 #X obj 303 359 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
@@ -153,180 +108,105 @@ acc -2 70 0 10 -233017 -233017 -195568 2950 1;
 #X obj 353 359 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/acceleration
 /stepper/\$1/acceleration empty 0 -8 0 10 -233017 -233017 -195568 1
 256;
-#X obj 1635 858 cnv 15 180 100 empty empty presets 2 8 0 14 -233017
+#X obj 434 838 cnv 15 180 100 empty empty presets 2 8 0 14 -233017
 -128992 0;
 #X obj 197 175 bng 15 250 50 0 /stepper/\$1/updateStatus /stepper/\$1/updateStatus
 refresh -45 8 0 10 -262144 -1 -1;
-#X obj 1197 141 r /stepper/\$1/updateStatus;
-#X obj 1197 162 f \$1;
-#X msg 1197 183 /getStatus \$1;
-#X obj 1197 204 s /toOSC;
-#X obj 97 868 s /toOSC;
-#X msg 97 849 /\$1 \$3 \$2;
-#X obj 97 585 r /stepper/\$1/move/go;
-#X obj 1025 322 loadbang;
 #X obj 298 175 bng 25 250 50 0 /stepper/\$1/stop /stepper/\$1/stop
 STOP 1 14 0 10 -258113 -1 -1;
-#X obj 1197 54 f \$1;
-#X msg 1197 75 /stop \$1;
-#X msg 97 771 acceleration \$4 \$1 \, maxSpeed \$3 \$1 \, move \$2
-\$1 \, getStatus \$1 \$1;
-#X obj 1482 551 t b b;
-#X obj 1487 785 s /stepper/\$1/sequences/list;
-#X msg 1510 579 clear \, align 0 \, add none \, set 0;
+#X obj 281 531 t b b;
+#X obj 286 765 s /stepper/\$1/sequences/list;
+#X msg 309 559 clear \, align 0 \, add none \, set 0;
 #X obj 83 127 s /stepper/\$1/pos/current;
-#X obj 895 459 r /stepper/\$1/pos/current;
-#X obj 895 478 * 360;
-#X floatatom 822 490 5 0 0 0 - - -, f 5;
 #X obj 339 227 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
-/stepper/\$1/move/startPos startPos 0 -8 0 10 -262144 -1 -1 20 256
-;
+/stepper/\$1/move/startPos startPos 0 -8 0 10 -262144 -1 -1 0 256;
 #X obj 277 232 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
 goto 17 7 0 10 -262144 -1 -1;
 #X obj 230 232 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
 set 17 7 0 10 -262144 -1 -1;
-#X obj 870 578 f;
-#X obj 870 440 r /stepper/\$1/move/setStart;
-#X obj 865 662 r /stepper/\$1/move/gotoStart;
-#X obj 870 597 s /stepper/\$1/move/startPos;
-#X obj 1169 461 r /stepper/\$1/move/startPos;
-#X obj 1145 502 -;
-#X obj 1169 481 t b f;
-#X text 1175 503 distance currentPos->startPos;
-#X obj 1145 562 moses 180;
-#X obj 1076 689 steps2camrot;
-#X obj 1196 583 - 360;
-#X text 1303 595 go backward \, quickest path;
-#X floatatom 1227 522 5 0 0 0 - - -, f 5;
-#X obj 865 819 s /toOSC;
-#X msg 865 800 /\$1 \$3 \$2;
-#X obj 865 701 f \$1;
-#X obj 1145 670 / 360;
-#X obj 895 578 s /stepper/\$1/pos/current/deg;
-#X obj 1145 440 r /stepper/\$1/pos/current/deg;
-#X obj 1145 543 abs;
 #X obj 148 241 nbx 3 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current/deg
-/stepper/\$1/pos/current/deg degrees -50 8 0 10 -262144 -1 -1 10.0061
-256;
-#X obj 1145 522 t f f;
-#X obj 1172 607 moses 0;
-#X msg 1172 628 360;
-#X msg 1202 628 -360;
+/stepper/\$1/pos/current/deg degrees -50 8 0 10 -262144 -1 -1 0 256
+;
 #X obj 148 225 nbx 5 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current /stepper/\$1/pos/current
-turns -45 7 0 10 -262144 -1 -1 0.0277946 256;
-#X obj 1624 191 steps2camrot;
-#X obj 143 666 steps2camrot;
-#X obj 120 628 steps2camrot;
-#X obj 177 686 steps2camrot;
-#X obj 895 497 t f f;
-#X obj 922 515 div 360;
-#X obj 922 536 * 360;
-#X obj 895 555 -;
+turns -45 7 0 10 -262144 -1 -1 0 256;
 #X obj 223 308 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/deg /stepper/\$1/move/deg
 deg 48 8 0 10 -262144 -1 -1 0 256;
-#X obj 1378 35 r /stepper/\$1/move;
-#X obj 1397 135 s /stepper/\$1/move/deg;
-#X obj 1378 155 r /stepper/\$1/move/deg;
-#X obj 1397 255 s /stepper/\$1/move;
-#X obj 1397 236 / 360;
-#X obj 1197 95 s /toOSC;
-#X text 1230 9 STOP;
-#X text 1387 9 MOVE DEGRES CONVERSION;
-#X text 1214 123 STATUS;
-#X text 1011 414 START POSITION MANAGEMENT;
-#X text 121 563 MOVE MANAGEMENT;
 #X obj 153 97 s /stepper/\$1/pos/onTarget;
 #X obj 327 175 cnv 25 70 25 /stepper/\$1/runningGui /stepper/\$1/runningGui
-running 7 12 0 14 -260818 -258699 0;
-#X obj 1025 381 s /stepper/\$1/runningGui;
-#X msg 1083 311 color 14 13 13 \, label running \, label_pos 7 12;
-#X msg 1025 363 color 10 11 20 \, label idle \, label_pos 17 12;
-#X obj 1025 343 r /stepper/\$1/pos/onTarget;
-#X obj 1100 272 r /stepper/\$1/move/gotoStart;
-#X text 1271 240 GUI COLORS;
-#X obj 1376 286 r /stepper/\$1/accMode;
-#X obj 1376 307 route 0 1;
-#X msg 1376 326 color 10 10 20;
-#X msg 1401 347 color 0 22 22;
-#X obj 1376 380 s /stepper/\$1/accGUI;
+idle 17 12 0 14 -233017 -195568 0;
 #X obj 353 122 r /stepper/\$1/accGUI;
 #X text 227 212 Position depart;
 #X text 225 263 Reglages mouvement;
 #X obj 405 172 cnv 15 370 305 empty empty Sequence 2 8 0 14 -233017
 -128992 0;
 #X obj 500 175 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
-/stepper/\$1/move/startPos startPos 48 8 0 10 -262144 -1 -1 20 256
-;
+/stepper/\$1/move/startPos startPos 48 8 0 10 -262144 -1 -1 0 256;
 #X obj 661 175 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
 goto 17 7 0 10 -262144 -1 -1;
 #X obj 614 175 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
 set 17 7 0 10 -262144 -1 -1;
-#X obj 801 231 text set \$1-seq;
-#X obj 801 172 pack s f;
-#X obj 801 132 symbol /stepper/\$1/move/startPos;
-#X obj 846 152 r /stepper/\$1/move/startPos;
-#X obj 788 90 t b b b f;
-#X msg 805 114 1;
 #X obj 675 210 bng 15 250 50 0 /stepper/\$1/writeSeq /stepper/\$1/writeSeq
 save 17 7 0 10 -262144 -1 -1;
-#X obj 788 69 r /stepper/\$1/writeSeq;
 #X text 144 204 CURRENT;
-#X obj 777 323 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
--1 -1;
-#X msg 805 330 line 0 \, bang;
-#X obj 805 349 text sequence \$1-seq -g;
-#X obj 1373 844 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
+#X obj 172 824 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
 grey95 black 0 \, none \, test (autre copie).move \, test.move \, test (3e copie).move
 \, test (4e copie).move \, test (copie).move;
-#X obj 1384 821 r /stepper/\$1/sequences/list;
+#X obj 183 801 r /stepper/\$1/sequences/list;
 #X obj 427 208 bng 15 250 50 0 /stepper/\$1/sequencer/open empty choose_sequence
 17 7 0 10 -262144 -1 -1;
-#X obj 1121 815 r /stepper/\$1/openSeq;
-#X obj 1121 887 openpanel;
-#X msg 1121 866 symbol ./;
-#X obj 605 649 r /stepper/\$1/cue/current;
 #X obj 559 240 nbx 5 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/current /stepper/\$1/cue/current
 empty 0 -8 0 10 -262144 -1 -1 0 256;
-#X obj 554 619 r /stepper/\$1/pos/onTarget;
 #X obj 421 232 bng 25 250 50 0 /stepper/\$1/sequencer/go /stepper/\$1/sequencer/go
 GO 6 13 0 10 -4034 -1 -1;
-#X obj 494 517 t b b;
-#X obj 527 538 f \$1;
-#X msg 526 559 \; /stepper/\$1/cue/0/move/go bang;
-#X obj 586 525 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
--1 -1;
-#X obj 1378 196 t b f b;
-#X msg 1418 215 0;
-#X msg 1378 216 1;
-#X obj 1397 116 * 360;
-#X obj 1378 75 t b f b;
-#X msg 1418 93 0;
-#X msg 1378 94 1;
-#X obj 1197 35 r /stepper/\$1/stop;
-#X obj 1378 57 spigot 1;
-#X obj 1378 176 spigot 1;
 #X msg 494 538 1;
-#X obj 554 810 spigot;
-#X obj 605 670 t f f;
-#X obj 494 496 r /stepper/\$1/sequencer/go;
-#X obj 620 731 r /stepper/\$1/sequencer/loop;
-#X obj 605 752 f;
-#X obj 605 774 route 0 1;
-#X msg 605 794 0;
 #X obj 556 212 tgl 15 0 /stepper/\$1/sequencer/loop /stepper/\$1/sequencer/loop
 loopSeq 17 7 0 10 -262144 -1 -1 0 1;
-#X obj 554 851 pack 0 \$1;
-#X msg 554 872 \; /stepper/\$2/cue/\$1/move/go bang;
-#X obj 690 769 r /stepper/\$1/stop;
-#X obj 554 829 f;
-#X obj 632 689 + 1;
-#X msg 646 796 0;
-#X obj 680 675 print;
-#X obj 1083 292 r /stepper/\$1/move/go;
-#X obj 605 711 route 3;
-#X obj 554 640 bang;
 #X obj 410 273 stepperCue \$1 0;
-#X obj 598 124 text define -k \$1-seq;
+#X obj 675 230 bng 15 250 50 0 /stepper/\$1/sequencer/load /stepper/\$1/sequencer/load
+reload 17 7 0 10 -262144 -1 -1;
+#X text 451 236 sequence;
+#X obj 410 321 stepperCue \$1 1;
+#X obj 411 369 stepperCue \$1 2;
+#X obj 411 417 stepperCue \$1 3;
+#N canvas 594 568 980 300 \$0-gui 0;
+#X obj 19 143 loadbang;
+#X obj 19 202 s /stepper/\$1/runningGui;
+#X msg 77 132 color 14 13 13 \, label running \, label_pos 7 12;
+#X msg 19 184 color 10 11 20 \, label idle \, label_pos 17 12;
+#X obj 19 164 r /stepper/\$1/pos/onTarget;
+#X obj 94 93 r /stepper/\$1/move/gotoStart;
+#X text 265 61 GUI COLORS;
+#X obj 370 107 r /stepper/\$1/accMode;
+#X obj 370 128 route 0 1;
+#X msg 370 147 color 10 10 20;
+#X msg 395 168 color 0 22 22;
+#X obj 370 201 s /stepper/\$1/accGUI;
+#X obj 77 113 r /stepper/\$1/move/go;
+#X connect 0 0 3 0;
+#X connect 2 0 1 0;
+#X connect 3 0 1 0;
+#X connect 4 0 3 0;
+#X connect 5 0 2 0;
+#X connect 7 0 8 0;
+#X connect 8 0 9 0;
+#X connect 8 1 10 0;
+#X connect 9 0 11 0;
+#X connect 10 0 11 0;
+#X connect 12 0 2 0;
+#X restore 661 59 pd \$0-gui;
+#N canvas 1 55 786 904 \$0-sequencer 0;
+#X obj 463 246 text set \$1-seq;
+#X obj 463 187 pack s f;
+#X obj 463 147 symbol /stepper/\$1/move/startPos;
+#X obj 508 167 r /stepper/\$1/move/startPos;
+#X obj 450 105 t b b b f;
+#X msg 467 129 1;
+#X obj 450 84 r /stepper/\$1/writeSeq;
+#X obj 439 338 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X msg 467 345 line 0 \, bang;
+#X obj 467 364 text sequence \$1-seq -g;
+#X obj 260 139 text define -k \$1-seq;
 #A set /stepper/0/move/startPos 0 \; \; CUE 0 \; /stepper/0/cue/0/move
 0.138889 \; /stepper/0/cue/0/setMaxSpeed 0.570001 \; /stepper/0/cue/0/acceleration
 0.17 \; /stepper/0/cue/0/accMode 1 \; /stepper/0/cue/0/active 1 \;
@@ -338,220 +218,344 @@ loopSeq 17 7 0 10 -262144 -1 -1 0 1;
 CUE 3 \; /stepper/0/cue/3/move 0.0277778 \; /stepper/0/cue/3/setMaxSpeed
 0.29 \; /stepper/0/cue/3/acceleration 0 \; /stepper/0/cue/3/accMode
 1 \; /stepper/0/cue/3/active 0 \; \;;
-#X obj 805 370 r CUE;
-#X obj 675 230 bng 15 250 50 0 /stepper/\$1/sequencer/load /stepper/\$1/sequencer/load
-reload 17 7 0 10 -262144 -1 -1;
-#X obj 805 311 r /stepper/\$1/sequencer/load;
-#X text 451 236 sequence;
-#X obj 598 20 r /stepper/\$1/writeSeq;
-#X obj 598 41 delay 100;
-#X obj 598 82 savepanel;
-#X msg 598 62 symbol ./;
-#X msg 598 103 write \$1;
-#X obj 368 1 r /stepper/\$1/sequencer/open;
-#X obj 368 19 openpanel;
-#X msg 514 59 read \$1;
-#X obj 369 98 s /stepper/\$1/sequencer/load;
-#X obj 368 79 bang;
-#X obj 368 58 delay 100;
-#X obj 368 37 t b a;
-#X obj 410 321 stepperCue \$1 1;
-#X obj 411 369 stepperCue \$1 2;
-#X obj 411 417 stepperCue \$1 3;
-#X obj 582 599 r /stepper/\$1/cue/next;
-#X obj 865 781 list;
-#X obj 865 722 pack 0 0 8000 0;
-#X msg 865 742 driveMode 1 \$1 \, maxSpeed \$3 \$1 \, move \$2 \$1
+#X obj 467 385 r CUE;
+#X obj 467 326 r /stepper/\$1/sequencer/load;
+#X obj 260 35 r /stepper/\$1/writeSeq;
+#X obj 260 56 delay 100;
+#X obj 260 97 savepanel;
+#X msg 260 77 symbol ./;
+#X msg 260 118 write \$1;
+#X obj 30 16 r /stepper/\$1/sequencer/open;
+#X obj 30 34 openpanel;
+#X msg 176 74 read \$1;
+#X obj 31 113 s /stepper/\$1/sequencer/load;
+#X obj 30 94 bang;
+#X obj 30 73 delay 100;
+#X obj 30 52 t b a;
+#X obj 114 275 r /stepper/\$1/openSeq;
+#X obj 114 347 openpanel;
+#X msg 114 326 symbol ./;
+#X obj 190 566 r /stepper/\$1/cue/current;
+#X obj 139 536 r /stepper/\$1/pos/onTarget;
+#X obj 79 434 t b b;
+#X obj 112 455 f \$1;
+#X msg 111 476 \; /stepper/\$1/cue/0/move/go bang;
+#X obj 171 442 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 139 727 spigot;
+#X obj 190 587 t f f;
+#X obj 79 413 r /stepper/\$1/sequencer/go;
+#X obj 205 648 r /stepper/\$1/sequencer/loop;
+#X obj 190 669 f;
+#X obj 190 691 route 0 1;
+#X msg 190 711 0;
+#X obj 139 768 pack 0 \$1;
+#X msg 139 789 \; /stepper/\$2/cue/\$1/move/go bang;
+#X obj 275 686 r /stepper/\$1/stop;
+#X obj 139 746 f;
+#X obj 217 606 + 1;
+#X msg 231 713 0;
+#X obj 265 592 print;
+#X obj 190 628 route 3;
+#X obj 139 557 bang;
+#X obj 167 516 r /stepper/\$1/cue/next;
+#X connect 1 0 0 0;
+#X connect 2 0 1 0;
+#X connect 3 0 1 1;
+#X connect 4 0 0 0;
+#X connect 4 1 5 0;
+#X connect 4 2 2 0;
+#X connect 4 3 0 1;
+#X connect 5 0 0 1;
+#X connect 6 0 4 0;
+#X connect 7 0 9 0;
+#X connect 8 0 9 0;
+#X connect 12 0 8 0;
+#X connect 13 0 14 0;
+#X connect 14 0 16 0;
+#X connect 15 0 17 0;
+#X connect 16 0 15 0;
+#X connect 17 0 10 0;
+#X connect 18 0 19 0;
+#X connect 19 0 24 0;
+#X connect 20 0 10 0;
+#X connect 22 0 21 0;
+#X connect 23 0 22 0;
+#X connect 24 0 23 0;
+#X connect 24 1 20 0;
+#X connect 25 0 27 0;
+#X connect 27 0 26 0;
+#X connect 28 0 35 0;
+#X connect 29 0 49 0;
+#X connect 30 1 31 0;
+#X connect 31 0 32 0;
+#X connect 33 0 31 0;
+#X connect 34 0 44 0;
+#X connect 35 0 48 0;
+#X connect 35 1 45 0;
+#X connect 36 0 30 0;
+#X connect 37 0 38 1;
+#X connect 38 0 39 0;
+#X connect 39 0 40 0;
+#X connect 39 1 46 0;
+#X connect 40 0 34 1;
+#X connect 41 0 42 0;
+#X connect 43 0 40 0;
+#X connect 44 0 41 0;
+#X connect 45 0 44 1;
+#X connect 46 0 44 1;
+#X connect 48 0 38 0;
+#X connect 49 0 34 0;
+#X connect 50 0 49 0;
+#X restore 661 78 pd \$0-sequencer;
+#N canvas 1 55 894 565 \$0-startposition 0;
+#X obj 170 103 r /stepper/\$1/pos/current;
+#X obj 170 122 * 360;
+#X floatatom 97 134 5 0 0 0 - - -, f 5;
+#X obj 145 222 f;
+#X obj 145 84 r /stepper/\$1/move/setStart;
+#X obj 140 306 r /stepper/\$1/move/gotoStart;
+#X obj 145 241 s /stepper/\$1/move/startPos;
+#X obj 444 105 r /stepper/\$1/move/startPos;
+#X obj 420 146 -;
+#X obj 444 125 t b f;
+#X text 450 147 distance currentPos->startPos;
+#X obj 420 206 moses 180;
+#X obj 471 227 - 360;
+#X text 517 225 go backward \, quickest path;
+#X floatatom 502 166 5 0 0 0 - - -, f 5;
+#X obj 140 463 s /toOSC;
+#X msg 140 444 /\$1 \$3 \$2;
+#X obj 140 345 f \$1;
+#X obj 420 314 / 360;
+#X obj 170 222 s /stepper/\$1/pos/current/deg;
+#X obj 420 84 r /stepper/\$1/pos/current/deg;
+#X obj 420 187 abs;
+#X obj 420 166 t f f;
+#X obj 447 251 moses 0;
+#X msg 447 272 360;
+#X msg 477 272 -360;
+#X obj 170 141 t f f;
+#X obj 197 159 div 360;
+#X obj 197 180 * 360;
+#X obj 170 199 -;
+#X text 286 58 START POSITION MANAGEMENT;
+#X obj 140 425 list;
+#X msg 140 386 driveMode 1 \$1 \, maxSpeed \$3 \$1 \, move \$2 \$1
 \, setSpeed \$3 \$1 \, getStatus \$1 \$1;
+#X obj 140 366 pack 0 0 4000 0;
+#X obj 351 333 steps2camrot;
+#X connect 0 0 1 0;
+#X connect 1 0 26 0;
+#X connect 3 0 6 0;
+#X connect 4 0 3 0;
+#X connect 5 0 17 0;
+#X connect 7 0 9 0;
+#X connect 8 0 14 0;
+#X connect 8 0 22 0;
+#X connect 9 0 8 0;
+#X connect 9 1 8 1;
+#X connect 11 0 18 0;
+#X connect 11 1 12 0;
+#X connect 12 0 18 0;
+#X connect 16 0 15 0;
+#X connect 17 0 33 0;
+#X connect 18 0 34 1;
+#X connect 20 0 8 0;
+#X connect 21 0 11 0;
+#X connect 22 0 21 0;
+#X connect 22 1 23 0;
+#X connect 23 0 24 0;
+#X connect 23 1 25 0;
+#X connect 24 0 18 1;
+#X connect 25 0 18 1;
+#X connect 26 0 29 0;
+#X connect 26 1 27 0;
+#X connect 27 0 28 0;
+#X connect 28 0 29 1;
+#X connect 29 0 2 0;
+#X connect 29 0 19 0;
+#X connect 29 0 3 1;
+#X connect 31 0 16 0;
+#X connect 32 0 31 0;
+#X connect 33 0 32 0;
+#X connect 34 0 33 1;
+#X restore 661 97 pd \$0-startposition;
+#N canvas 1 55 1063 712 \$0-modes&moves 0;
+#X obj 40 88 route 0 1;
+#X obj 40 44 r /stepper/\$1/manualDrive;
+#X obj 51 111 r /stepper/\$1/accMode;
+#X obj 40 65 t f f;
+#X obj 40 152 f;
+#X msg 65 198 2;
+#X obj 40 216 s /stepper/\$1/driveMode;
+#X obj 40 173 spigot;
+#X obj 73 153 == 0;
+#X text 75 16 SET DRIVE MODE;
+#X obj 740 263 r /stepper/\$1/driveMode;
+#X obj 740 351 pack s f f;
+#X obj 797 326 f \$1;
+#X obj 797 304 loadbang;
+#X obj 740 405 s /toOSC;
+#X msg 740 383 /\$1 \$3 \$2;
+#X text 760 247 SEND DRIVE MODE;
+#X obj 711 177 / 60;
+#X obj 642 236 spigot;
+#X obj 725 199 r /stepper/\$1/driveMode;
+#X obj 725 220 == 2;
+#X msg 642 255 setSpeed \$1;
+#X obj 51 132 == 0;
+#X msg 740 284 driveMode \$1 \, setSpeed 0;
+#X text 696 14 MANUAL SPEED;
+#X obj 711 153 * 1;
+#X obj 726 133 t b f;
+#X obj 726 93 route 0 1;
+#X msg 726 113 -1;
+#X msg 755 113 1;
+#X obj 726 67 r /stepper/\$1/manualDirection;
+#X obj 711 42 r /stepper/\$1/manualSpeed;
+#X obj 215 149 r /stepper/\$1/updateStatus;
+#X obj 215 170 f \$1;
+#X msg 215 191 /getStatus \$1;
+#X obj 215 212 s /toOSC;
+#X obj 215 62 f \$1;
+#X msg 215 83 /stop \$1;
+#X obj 396 43 r /stepper/\$1/move;
+#X obj 415 143 s /stepper/\$1/move/deg;
+#X obj 396 163 r /stepper/\$1/move/deg;
+#X obj 415 263 s /stepper/\$1/move;
+#X obj 415 244 / 360;
+#X obj 215 103 s /toOSC;
+#X text 248 17 STOP;
+#X text 405 17 MOVE DEGRES CONVERSION;
+#X text 232 131 STATUS;
+#X obj 396 204 t b f b;
+#X msg 436 223 0;
+#X msg 396 224 1;
+#X obj 415 124 * 360;
+#X obj 396 83 t b f b;
+#X msg 436 101 0;
+#X msg 396 102 1;
+#X obj 215 43 r /stepper/\$1/stop;
+#X obj 396 65 spigot 1;
+#X obj 396 184 spigot 1;
+#X obj 642 199 steps2camrot;
+#X obj 169 381 / 60;
+#X obj 169 363 r /stepper/\$1/setMaxSpeed;
+#X obj 54 465 list prepend;
+#X obj 134 443 r /stepper/\$1/driveMode;
+#X obj 146 343 r /stepper/\$1/move;
+#X obj 54 339 f \$1;
+#X obj 203 401 / 60;
+#X obj 203 383 r /stepper/\$1/acceleration;
+#X obj 54 443 pack f f f f;
+#X obj 54 484 route 0 1;
+#X obj 54 563 list;
+#X msg 79 538 move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1
+;
+#X obj 54 601 s /toOSC;
+#X msg 54 582 /\$1 \$3 \$2;
+#X obj 54 318 r /stepper/\$1/move/go;
+#X msg 54 504 acceleration \$4 \$1 \, maxSpeed \$3 \$1 \, move \$2
+\$1 \, getStatus \$1 \$1;
+#X obj 134 419 steps2camrot;
+#X text 78 296 MOVE MANAGEMENT;
+#X obj 100 399 steps2camrot;
+#X obj 77 361 steps2camrot;
+#X connect 0 0 4 0;
+#X connect 0 1 5 0;
+#X connect 1 0 3 0;
+#X connect 2 0 22 0;
+#X connect 3 0 0 0;
+#X connect 3 1 8 0;
+#X connect 4 0 7 0;
+#X connect 5 0 6 0;
+#X connect 7 0 6 0;
+#X connect 8 0 7 1;
+#X connect 10 0 23 0;
+#X connect 11 0 15 0;
+#X connect 12 0 11 2;
+#X connect 13 0 12 0;
+#X connect 15 0 14 0;
+#X connect 17 0 57 1;
+#X connect 18 0 21 0;
+#X connect 19 0 20 0;
+#X connect 20 0 18 1;
+#X connect 21 0 11 0;
+#X connect 22 0 4 0;
+#X connect 23 0 11 0;
+#X connect 25 0 17 0;
+#X connect 26 0 25 0;
+#X connect 26 1 25 1;
+#X connect 27 0 28 0;
+#X connect 27 1 29 0;
+#X connect 28 0 26 0;
+#X connect 29 0 26 0;
+#X connect 30 0 27 0;
+#X connect 31 0 25 0;
+#X connect 32 0 33 0;
+#X connect 33 0 34 0;
+#X connect 34 0 35 0;
+#X connect 36 0 37 0;
+#X connect 37 0 43 0;
+#X connect 38 0 55 0;
+#X connect 40 0 56 0;
+#X connect 42 0 41 0;
+#X connect 47 0 49 0;
+#X connect 47 1 42 0;
+#X connect 47 2 48 0;
+#X connect 48 0 55 1;
+#X connect 49 0 55 1;
+#X connect 50 0 39 0;
+#X connect 51 0 53 0;
+#X connect 51 1 50 0;
+#X connect 51 2 52 0;
+#X connect 52 0 56 1;
+#X connect 53 0 56 1;
+#X connect 54 0 36 0;
+#X connect 55 0 51 0;
+#X connect 56 0 47 0;
+#X connect 57 0 18 0;
+#X connect 58 0 76 1;
+#X connect 59 0 58 0;
+#X connect 60 0 67 0;
+#X connect 61 0 60 1;
+#X connect 62 0 77 1;
+#X connect 63 0 66 0;
+#X connect 64 0 74 1;
+#X connect 65 0 64 0;
+#X connect 66 0 60 0;
+#X connect 67 0 73 0;
+#X connect 67 1 69 0;
+#X connect 68 0 71 0;
+#X connect 69 0 68 0;
+#X connect 71 0 70 0;
+#X connect 72 0 63 0;
+#X connect 73 0 68 0;
+#X connect 74 0 66 3;
+#X connect 76 0 66 2;
+#X connect 77 0 66 1;
+#X restore 661 117 pd \$0-modes&moves;
 #X connect 3 0 11 0;
 #X connect 11 0 10 0;
 #X connect 11 0 13 0;
-#X connect 12 1 96 0;
+#X connect 12 1 41 0;
 #X connect 12 2 4 0;
 #X connect 12 3 5 0;
 #X connect 12 4 6 0;
 #X connect 13 0 12 0;
-#X connect 13 1 149 0;
+#X connect 13 1 48 0;
 #X connect 17 0 18 0;
-#X connect 18 0 94 0;
+#X connect 18 0 39 0;
 #X connect 19 0 22 0;
 #X connect 19 0 23 0;
-#X connect 20 0 93 0;
+#X connect 20 0 38 0;
 #X connect 22 0 25 0;
 #X connect 25 0 17 0;
 #X connect 25 0 24 0;
-#X connect 27 0 31 0;
-#X connect 27 1 32 0;
-#X connect 28 0 30 0;
-#X connect 29 0 61 0;
-#X connect 30 0 27 0;
-#X connect 30 1 35 0;
-#X connect 31 0 34 0;
-#X connect 32 0 33 0;
-#X connect 34 0 33 0;
-#X connect 35 0 34 1;
-#X connect 39 0 130 1;
+#X connect 38 0 19 0;
+#X connect 38 1 40 0;
 #X connect 40 0 39 0;
-#X connect 41 0 62 0;
-#X connect 42 0 56 0;
-#X connect 43 0 47 0;
-#X connect 44 0 43 2;
-#X connect 45 0 44 0;
-#X connect 47 0 46 0;
-#X connect 48 0 42 1;
-#X connect 50 0 131 1;
-#X connect 51 0 55 0;
-#X connect 52 0 129 1;
-#X connect 53 0 132 1;
-#X connect 54 0 53 0;
-#X connect 55 0 42 0;
-#X connect 56 0 92 0;
-#X connect 56 1 65 0;
-#X connect 57 0 60 0;
-#X connect 58 0 59 0;
-#X connect 59 0 57 1;
-#X connect 60 0 43 0;
-#X connect 61 0 31 0;
-#X connect 62 0 43 0;
-#X connect 64 0 86 0;
-#X connect 65 0 64 0;
-#X connect 67 0 52 0;
-#X connect 68 0 67 0;
-#X connect 68 1 67 1;
-#X connect 69 0 70 0;
-#X connect 69 1 71 0;
-#X connect 70 0 68 0;
-#X connect 71 0 68 0;
-#X connect 72 0 69 0;
-#X connect 73 0 67 0;
-#X connect 81 0 82 0;
-#X connect 82 0 83 0;
-#X connect 83 0 84 0;
-#X connect 86 0 85 0;
-#X connect 87 0 51 0;
-#X connect 88 0 153 0;
-#X connect 90 0 91 0;
-#X connect 91 0 143 0;
-#X connect 92 0 64 0;
-#X connect 93 0 19 0;
-#X connect 93 1 95 0;
-#X connect 95 0 94 0;
-#X connect 97 0 98 0;
-#X connect 98 0 133 0;
-#X connect 103 0 106 0;
-#X connect 104 0 103 0;
-#X connect 105 0 118 0;
-#X connect 107 0 109 0;
-#X connect 108 0 115 0;
-#X connect 108 0 124 0;
-#X connect 109 0 108 0;
-#X connect 109 1 108 1;
-#X connect 111 0 119 0;
-#X connect 111 1 113 0;
-#X connect 112 0 247 1;
-#X connect 113 0 119 0;
-#X connect 117 0 116 0;
-#X connect 118 0 247 0;
-#X connect 119 0 112 1;
-#X connect 121 0 108 0;
-#X connect 122 0 111 0;
-#X connect 124 0 122 0;
-#X connect 124 1 125 0;
-#X connect 125 0 126 0;
-#X connect 125 1 127 0;
-#X connect 126 0 119 1;
-#X connect 127 0 119 1;
-#X connect 129 0 57 0;
-#X connect 130 0 55 2;
-#X connect 131 0 55 1;
-#X connect 132 0 55 3;
-#X connect 133 0 136 0;
-#X connect 133 1 134 0;
-#X connect 134 0 135 0;
-#X connect 135 0 136 1;
-#X connect 136 0 99 0;
-#X connect 136 0 120 0;
-#X connect 136 0 103 1;
-#X connect 138 0 203 0;
-#X connect 140 0 204 0;
-#X connect 142 0 141 0;
-#X connect 152 0 151 0;
-#X connect 153 0 151 0;
-#X connect 154 0 153 0;
-#X connect 155 0 152 0;
-#X connect 157 0 158 0;
-#X connect 158 0 159 0;
-#X connect 158 1 160 0;
-#X connect 159 0 161 0;
-#X connect 160 0 161 0;
-#X connect 162 0 77 0;
-#X connect 162 0 78 0;
-#X connect 170 0 169 0;
-#X connect 171 0 170 0;
-#X connect 172 0 170 1;
-#X connect 173 0 169 0;
-#X connect 173 1 174 0;
-#X connect 173 2 171 0;
-#X connect 173 3 169 1;
-#X connect 174 0 169 1;
-#X connect 176 0 173 0;
-#X connect 178 0 180 0;
-#X connect 179 0 180 0;
-#X connect 184 0 186 0;
-#X connect 186 0 185 0;
-#X connect 187 0 207 0;
-#X connect 189 0 223 0;
-#X connect 191 0 205 0;
-#X connect 191 1 192 0;
-#X connect 192 0 193 0;
-#X connect 194 0 192 0;
-#X connect 195 0 197 0;
-#X connect 195 1 142 0;
-#X connect 195 2 196 0;
-#X connect 196 0 203 1;
-#X connect 197 0 203 1;
-#X connect 198 0 139 0;
-#X connect 199 0 201 0;
-#X connect 199 1 198 0;
-#X connect 199 2 200 0;
-#X connect 200 0 204 1;
-#X connect 201 0 204 1;
-#X connect 202 0 90 0;
-#X connect 203 0 199 0;
-#X connect 204 0 195 0;
-#X connect 205 0 206 1;
-#X connect 206 0 217 0;
-#X connect 207 0 222 0;
-#X connect 207 1 218 0;
-#X connect 208 0 191 0;
-#X connect 209 0 210 1;
-#X connect 210 0 211 0;
-#X connect 211 0 212 0;
-#X connect 211 1 219 0;
-#X connect 212 0 206 1;
-#X connect 214 0 215 0;
-#X connect 216 0 212 0;
-#X connect 217 0 214 0;
-#X connect 218 0 217 1;
-#X connect 219 0 217 1;
-#X connect 221 0 152 0;
-#X connect 222 0 210 0;
-#X connect 223 0 206 0;
-#X connect 228 0 179 0;
-#X connect 230 0 231 0;
-#X connect 231 0 233 0;
-#X connect 232 0 234 0;
-#X connect 233 0 232 0;
-#X connect 234 0 225 0;
-#X connect 235 0 236 0;
-#X connect 236 0 241 0;
-#X connect 237 0 225 0;
-#X connect 239 0 238 0;
-#X connect 240 0 239 0;
-#X connect 241 0 240 0;
-#X connect 241 1 237 0;
-#X connect 245 0 223 0;
-#X connect 246 0 117 0;
-#X connect 247 0 248 0;
-#X connect 248 0 246 0;
+#X connect 50 0 33 0;
+#X connect 50 0 34 0;
 #X coords 0 -1 1 1 700 329 1 80 150;

+ 5 - 3
steps2camrot.pd

@@ -17,10 +17,11 @@
 #X obj 286 192 i;
 #X text 149 255 single output \, conversion direction is choosen via
 input;
-#X obj 179 86 * 8;
+#X obj 208 63 r /microsteps;
+#X obj 179 86 * 4;
 #X connect 0 0 8 0;
 #X connect 1 0 2 0;
-#X connect 2 0 17 0;
+#X connect 2 0 18 0;
 #X connect 4 0 14 0;
 #X connect 8 0 3 0;
 #X connect 9 0 8 1;
@@ -32,4 +33,5 @@ input;
 #X connect 13 1 12 1;
 #X connect 14 0 15 0;
 #X connect 15 0 3 0;
-#X connect 17 0 9 0;
+#X connect 17 0 18 1;
+#X connect 18 0 9 0;