diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-10-07 13:54:55 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-10-07 13:54:55 +0000 |
commit | fbe1f8d0f35ea9436ff87983c4bc0b8c87c79ed5 (patch) | |
tree | 61d6f0a315ed6e4f0b3a2b917088bbdaa0cd7e59 | |
parent | 7223aa2d0a3135460c073f70f00821ce4dbe8342 (diff) |
wrap angles between [-180,180)
svn path=/trunk/externals/hardware/wiimote/; revision=12554
-rw-r--r-- | motionplus.pd | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/motionplus.pd b/motionplus.pd index 4619dd6..3942f7f 100644 --- a/motionplus.pd +++ b/motionplus.pd @@ -38,7 +38,7 @@ #X obj 218 322 outlet dYaw dRoll dPitch; #X obj 88 150 motionplus_rate2angle; #X obj 125 180 motionplus_rate2angle; -#N canvas 0 0 450 300 angleaxis 1; +#N canvas 0 0 450 300 angleaxis 0; #X obj 142 209 mtx_*; #X obj 142 231 t a a; #X obj 273 154 loadbang; @@ -180,6 +180,10 @@ $f1*$f3*$f6-$f2*$f5 \; $f2*$f3*$f6+$f1*$f5 \; $f3*$f3*$f6+$f4; #X connect 4 0 0 0; #X connect 6 0 0 1; #X restore 485 276 pd angleaxis; +#X obj 412 79 inlet; +#X obj 51 237 wrap -180 180; +#X obj 88 257 wrap -180 180; +#X obj 125 277 wrap -180 180; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 1 1 3 0; @@ -187,7 +191,7 @@ $f1*$f3*$f6-$f2*$f5 \; $f2*$f3*$f6+$f1*$f5 \; $f3*$f3*$f6+$f4; #X connect 3 1 13 0; #X connect 3 2 14 0; #X connect 4 0 6 0; -#X connect 5 0 4 0; +#X connect 5 0 17 0; #X connect 5 1 7 0; #X connect 7 0 12 0; #X connect 8 0 5 1; @@ -196,7 +200,11 @@ $f1*$f3*$f6-$f2*$f5 \; $f2*$f3*$f6+$f1*$f5 \; $f3*$f3*$f6+$f4; #X connect 9 0 8 0; #X connect 10 0 8 0; #X connect 11 0 10 0; -#X connect 13 0 4 1; +#X connect 13 0 18 0; #X connect 13 1 7 1; -#X connect 14 0 4 2; +#X connect 14 0 19 0; #X connect 14 1 7 2; +#X connect 16 0 8 0; +#X connect 17 0 4 0; +#X connect 18 0 4 1; +#X connect 19 0 4 2; |