Re: [PD] Classic Controlloer for [wiimote]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pagano, Patrick wrote: had a little extra time a simple make gives you have libcwiid-dev installed? which version? if you do have installed, then you don't have any motionplus support in your cwiid, so it seems to be reather outdated... i would suggest to get a newer version of libcwiid if this is possible. in any case, i have now (hopefully) added some more code to protect against such outdated headers. if you try again (same link) as before, it should compile (obviously without motionplus support if your version of libcwiid does not support it) please try again fgamr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvtApwACgkQkX2Xpv6ydvQbXwCfWAtZhtcbxSS/9oSZxKu4GF14 0BQAoNlaF16buNyYdGP2LG1ux0SPj9Fi =D080 -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote]
Hi all On Thu, 2010-05-13 at 14:27 +0200, IOhannes m zmölnig wrote: Roman Haefeli wrote: When connecting to a wiimote with a Classic Controller attached, [wiimote] prints to the Pd console: wiimote 0 is successfully connected Retrieved wiimote calibration: zero=(123,123,123) one=(147,148,148) Classic controller attached. There is no real support for this yet. Classic controller attached. There is no real support for this yet. the warning mainly appears, because i haven't been able to test it. It works as expected. Cool! And many thanks! I removed the now bogus messages from wiimote.c (see attached wiimote.patch) Pressing keys and using the analog sticks of the extension doesn't cause any output, also there doesn't seem to be a method to activate reporting. there is, but it's not documented :-( try [report classic 1( to turn reporting on for that extension. the idea was to have only one method report rather than adding a new method reportFooBar for every extension there will be. Yo, that totally makes sense in my eyes. I find it usually much easier to deal with messages split into elements insteadOfHavingEverythingInOneBigSymbolProabablyEvenWithCamelCase (and it pollutes the symbol table less). I noticed that this works also for the other reporting submethodes. I adapted the help patch accordingly and added the missing parts for MotionPlus and ClassicController. Both seem fully functional. Still missing is: * confirmation, that nunchuk works * testing of balance (and completing the section in the help file) I'll put updated deb packages online. Roman --- wiimote.c 2010-05-14 10:54:42.183747001 +0200 +++ wiimote_new.c 2010-05-14 13:35:33.104747001 +0200 @@ -523,7 +523,7 @@ #endif #ifdef CWIID_RPT_CLASSIC case CWIID_EXT_CLASSIC: - post(Classic controller attached. There is no real support for this yet.); + post(Classic controller attached.); break; #endif #ifdef CWIID_RPT_BALANCE #N struct IR-blobs float x float y symbol s; #N struct NC-stick float x float y; #N struct cc-left-stick float x float y; #N struct cc-right-stick float x float y; #N canvas 13 0 1208 665 10; #X text 8 9 IN ORDER TO CONNECT: First put the wiimote into discover mode (press buttons 1 and 2 simultaneously).; #X text 16 364 You can also specify the address as a creation argument: ; #X text 15 380 (make sure to enable discover mode before creation) ; #X obj 436 471 cnv 15 375 180 empty empty Nunchuk: 10 15 0 14 -228992 -355 0; #X floatatom 583 593 7 0 0 1 _X #0-nc-accX-set #0-nc-accX; #X floatatom 583 607 7 0 0 1 _Y #0-nc-accY-set #0-nc-accY; #X floatatom 583 621 7 0 0 1 _Z #0-nc-accZ-set #0-nc-accZ; #X obj 453 593 hsl 128 14 -1 1 0 0 \$0-nc-accX \$0-nc-accX-set empty -2 -8 0 10 -261681 -1 -1 0 1; #X obj 453 607 hsl 128 14 -1 1 0 0 \$0-nc-accY \$0-nc-accY-set empty -2 -8 0 10 -261681 -1 -1 0 1; #X obj 453 621 hsl 128 14 -1 1 0 0 \$0-nc-accZ \$0-nc-accZ-set empty -2 -8 0 10 -261681 -1 -1 0 1; #X obj 718 511 nbx 3 16 -1e+37 1e+37 0 0 empty \$0-nc-btn-set empty -80 8 0 10 -261681 -1 -1 0 256; #X text 449 577 Acceleration:; #X text 651 508 Buttons:; #X text 717 544 Stick:; #X obj 435 5 cnv 15 375 460 empty empty Wiimote: 10 15 0 14 -261689 -143491 0; #X floatatom 577 159 7 0 0 1 _X #0-wii-accX-set #0-wii-accX; #X floatatom 577 173 7 0 0 1 _Y #0-wii-accY-set #0-wii-accY; #X floatatom 577 187 7 0 0 1 _Z #0-wii-accZ-set #0-wii-accZ; #X obj 447 159 hsl 128 14 -1 1 0 0 \$0-wii-accX \$0-wii-accX-set empty -2 -8 0 10 -204786 -1 -1 5821 1; #X obj 447 173 hsl 128 14 -1 1 0 0 \$0-wii-accY \$0-wii-accY-set empty -2 -8 0 10 -204786 -1 -1 6604 1; #X obj 447 187 hsl 128 14 -1 1 0 0 \$0-wii-accZ \$0-wii-accZ-set empty -2 -8 0 10 -204786 -1 -1 12700 1; #N canvas 525 243 481 416 IR-data 0; #X scalar IR-blobs 348 50 blob1 \;; #X scalar IR-blobs 458 416 blob2 \;; #X scalar IR-blobs 224 426 blob3 \;; #X scalar IR-blobs 379 426 blob4 \;; #X coords 0 0 1024 768 256 196 1; #X restore 443 260 pd IR-data; #X text 444 242 IR Blobs (1024x768):; #X floatatom 577 207 7 0 0 1 _PITCH #0-wii-pitch-set #0-wii-pitch; #X obj 447 207 hsl 128 14 -3.14156 3.14159 0 0 \$0-wii-pitch \$0-wii-pitch-set empty -2 -8 0 10 -204786 -1 -1 6269 1; #X floatatom 577 221 7 0 0 1 _ROLL #0-wii-roll-set #0-wii-roll; #X obj 447 221 hsl 128 14 -3.14156 3.14159 0 0 \$0-wii-roll \$0-wii-roll-set empty -2 -8 0 10 -204786 -1 -1 6518 1; #X text 447 142 Acceleration (-1 to 1):; #X text 722 150 Buttons:; #N canvas 185 133 481 416 NC-data 0; #X scalar NC-stick 130 133 \;; #X coords 0 0 256 256 80 80 1; #X restore 716 561 pd NC-data; #X obj 15 427 print; #X obj 13 193 s \$0.to.wiimote; #X msg 28 121 discover; #X msg 13 74 connect 00:1F:C5:0B:1F:86; #X msg 39 164 disconnect; #X obj 500 36 tgl 25 0 empty empty IR 6 12 0 10 -4160 -1 -1 0 1; #X msg 500 90 report ir \$1; #X msg 441 69 report acceleration \$1; #X obj 441 35 tgl 25 0 empty empty Acc 4 12 0 10 -204786 -1 -1 0 1 ; #X obj 709 40 tgl 25 0 empty empty empty
Re: [PD] Classic Controlloer for [wiimote]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roman Haefeli wrote: Hi On Wed, 2010-05-12 at 10:45 +0200, IOhannes m zmoelnig wrote: i don't have so much hardware to test it, though i tried my best to add support for motionplus, classic, When connecting to a wiimote with a Classic Controller attached, [wiimote] prints to the Pd console: wiimote 0 is successfully connected Retrieved wiimote calibration: zero=(123,123,123) one=(147,148,148) Classic controller attached. There is no real support for this yet. Classic controller attached. There is no real support for this yet. the warning mainly appears, because i haven't been able to test it. Pressing keys and using the analog sticks of the extension doesn't cause any output, also there doesn't seem to be a method to activate reporting. there is, but it's not documented :-( try [report classic 1( to turn reporting on for that extension. the idea was to have only one method report rather than adding a new method reportFooBar for every extension there will be. Also it would like to hear some feedback about the Nunchuk support. me too :-) fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvr8DQACgkQkX2Xpv6ydvTfsACZASH9YMTCw/MV23KPl0WtytBF GvcAoJjgFC9IfXPDjgb8wFcezaZRyUmG =jJXm -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote] (was: [wiimote] for ubuntu)
I was/am using wiimote stuff on linux. When I connect the wiimote the first time the nunchuck values are pegged [full] and do not react. If I disconnect and re-connect the nunchuck works but then pd crashes and will not update the sliders after about 5minutes. I was using WOz's stuff from audioscape [o.4/o.6] pp -Original Message- From: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] On Behalf Of Roman Haefeli Sent: Thursday, May 13, 2010 8:17 AM To: IOhannes m zmoelnig Cc: pd-list@iem.at Subject: [PD] Classic Controlloer for [wiimote] (was: [wiimote] for ubuntu) Hi On Wed, 2010-05-12 at 10:45 +0200, IOhannes m zmoelnig wrote: i don't have so much hardware to test it, though i tried my best to add support for motionplus, classic, When connecting to a wiimote with a Classic Controller attached, [wiimote] prints to the Pd console: wiimote 0 is successfully connected Retrieved wiimote calibration: zero=(123,123,123) one=(147,148,148) Classic controller attached. There is no real support for this yet. Classic controller attached. There is no real support for this yet. Pressing keys and using the analog sticks of the extension doesn't cause any output, also there doesn't seem to be a method to activate reporting. I found two indications for a previous activation to be necessary: * When [wiimote] is connected to a wiimote with attached Classic Controller, using the Classic Controller does not cause any bluetooth traffic * in the wmgui example from cwiid, also the Classic Controller (like Nunchuk and MotionPlus) needs to be activated. Once it is activated, there is bluetooth activity when using it (of course). In the wiimote.c source I was unable (with my limited c skills) to find any hint, that a 'reportClassic' or similar method exists. So probably this is the reason, that Classic Controller currently doesn't work in [wiimote]. The same probably applies to the Balance extension, which I am unable to test myself. Also it would like to hear some feedback about the Nunchuk support. Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ola just to update this conversation from IRC: roman tried to connect the classic with the report classic 1 message and indeed it works! Pagano, Patrick wrote: I was/am using wiimote stuff on linux. When I connect the wiimote the first time the nunchuck values are pegged [full] and do not react. If I disconnect and re-connect the nunchuck works but then pd crashes and will not update the sliders after about 5minutes. I was using WOz's stuff from audioscape [o.4/o.6] so could you try a recent (compiled after my fix from 13/05/2010) version of the hardware/wiimote external annd see whether it works as expected? fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvsEKQACgkQkX2Xpv6ydvR8ZwCfTnD8MfrynpuFv+Ntqet1SfNa dbQAoO10Xohqyxp6ccgDd9jMDbDsRqOU =lcPK -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote]
I will tonight if you point me to the right tar/zip pp -Original Message- From: IOhannes m zmölnig [mailto:zmoel...@iem.at] Sent: Thursday, May 13, 2010 10:46 AM To: Pagano, Patrick Cc: reduzie...@yahoo.de; pd-list@iem.at Subject: Re: [PD] Classic Controlloer for [wiimote] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ola just to update this conversation from IRC: roman tried to connect the classic with the report classic 1 message and indeed it works! Pagano, Patrick wrote: I was/am using wiimote stuff on linux. When I connect the wiimote the first time the nunchuck values are pegged [full] and do not react. If I disconnect and re-connect the nunchuck works but then pd crashes and will not update the sliders after about 5minutes. I was using WOz's stuff from audioscape [o.4/o.6] so could you try a recent (compiled after my fix from 13/05/2010) version of the hardware/wiimote external annd see whether it works as expected? fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvsEKQACgkQkX2Xpv6ydvR8ZwCfTnD8MfrynpuFv+Ntqet1SfNa dbQAoO10Xohqyxp6ccgDd9jMDbDsRqOU =lcPK -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pagano, Patrick wrote: I will tonight if you point me to the right tar/zip is it ok for you to compile yourself? if so, either do (preferred) an svn checkout https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/hardware/wiimote or grab the sources via http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/hardware/wiimote.tar.gz?view=tar if you cannot compile yourself, i could provide you a binary, which might work or not (i'm on debian testing/unstable) probably roman will (does?) provide an updated package as well... fmd IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvsEfgACgkQkX2Xpv6ydvTvkgCfcmSo0rcm3hST6Tu1QYZY/Xm+ eLMAoJIRuEVdCZXv6cQ7F2baMALGH2z8 =TKCh -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Classic Controlloer for [wiimote]
I am teaching till 2 then meetings till 4 but after that I will try to compile it. I am on ubuntu 9.10 as I recall pp -Original Message- From: IOhannes m zmölnig [mailto:zmoel...@iem.at] Sent: Thursday, May 13, 2010 10:52 AM To: Pagano, Patrick Cc: reduzie...@yahoo.de; pd-list@iem.at Subject: Re: [PD] Classic Controlloer for [wiimote] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pagano, Patrick wrote: I will tonight if you point me to the right tar/zip is it ok for you to compile yourself? if so, either do (preferred) an svn checkout https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/hardware/wiimote or grab the sources via http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/hardware/wiimote.tar.gz?view=tar if you cannot compile yourself, i could provide you a binary, which might work or not (i'm on debian testing/unstable) probably roman will (does?) provide an updated package as well... fmd IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvsEfgACgkQkX2Xpv6ydvTvkgCfcmSo0rcm3hST6Tu1QYZY/Xm+ eLMAoJIRuEVdCZXv6cQ7F2baMALGH2z8 =TKCh -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list