Etienne Landon 7 éve
commit
067d7429b9
1 módosított fájl, 61 hozzáadás és 0 törlés
  1. 61 0
      OSCstepperCtl.pd

+ 61 - 0
OSCstepperCtl.pd

@@ -0,0 +1,61 @@
+#N canvas 1066 118 742 243 10;
+#N canvas 978 417 450 300 slipSerial 1;
+#X obj 95 179 mrpeach/slipdec 65536;
+#X obj 99 47 mrpeach/slipenc 65536;
+#X obj 303 65 loadbang;
+#X obj 299 22 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X obj 76 16 inlet;
+#X obj 95 200 outlet;
+#X obj 261 46 inlet;
+#X obj 57 157 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X obj 99 120 comport;
+#X obj 301 199 print errors;
+#X msg 390 42;
+#X obj 226 19 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X msg 394 122 devices;
+#X msg 132 95 devicename /dev/ttyACM0 \, pollintervall 1;
+#X msg 296 142 baud 9600;
+#X connect 0 0 5 0;
+#X connect 1 0 8 0;
+#X connect 2 0 13 0;
+#X connect 2 0 14 0;
+#X connect 4 0 1 0;
+#X connect 6 0 8 0;
+#X connect 8 0 0 0;
+#X connect 8 0 7 0;
+#X connect 8 1 9 0;
+#X connect 11 0 8 0;
+#X connect 12 0 8 0;
+#X connect 13 0 8 0;
+#X connect 14 0 8 0;
+#X restore 59 160 pd slipSerial;
+#X obj 59 102 mrpeach/packOSC;
+#X obj 59 76 r OSCout;
+#X obj 59 202 s OSCin;
+#X obj 59 181 mrpeach/unpackOSC;
+#X msg 197 152 close;
+#X obj 136 211 print;
+#X msg 126 28 /test;
+#X floatatom 194 31 5 0 0 0 - - -, f 5;
+#X msg 240 21 /stepper/currentPos;
+#X msg 170 119 devicename /dev/ttyACM0 \, baud 115200 \, pollintervall
+4 \, verbose 1;
+#X msg 309 53 /stepper/acceleration 0 100000;
+#X msg 203 81 send /stepper/maxSpeed 0 1e+07;
+#X msg 159 54 /stepper/moveTo 0 \$1;
+#X connect 0 0 4 0;
+#X connect 1 0 0 0;
+#X connect 2 0 1 0;
+#X connect 4 0 3 0;
+#X connect 4 0 6 0;
+#X connect 5 0 0 1;
+#X connect 7 0 1 0;
+#X connect 8 0 13 0;
+#X connect 9 0 1 0;
+#X connect 10 0 0 1;
+#X connect 11 0 1 0;
+#X connect 12 0 1 0;
+#X connect 13 0 1 0;