Is it possible to use the Wiimote with MotionPlus on Linux ? It seems [wiimote] need an upgrade to return informations from the MotionPlus. Am I wrong ? Thanx. ++
Jack
Hi Jack
It's a while ago since I played the last time with it. IIRC, you just need to compile a recent version of [wiimote] in order to get support for the MotionPlus-extension.
Hm, I seem not to be able to find Mike Wonzniewski's Wiimote page anymore. Has it moved? If so, where?
This is not valid anymore: http://mikewoz.com/index.php?page=pd-stuff
Roman
On Sun, 2010-02-21 at 17:29 +0100, Jack wrote:
Is it possible to use the Wiimote with MotionPlus on Linux ? It seems [wiimote] need an upgrade to return informations from the MotionPlus. Am I wrong ? Thanx. ++
Jack
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Roman,
I have downloaded this version : http://mikewoz.com/downloads/wiimote_0.6.00.tar.gz from : http://mikewoz.com/pd-stuff.php
But I can't see in the wiimote.c something related to the MotionPlus. ++
Jack
Le dimanche 21 février 2010 à 18:05 +0100, Roman Haefeli a écrit :
Hi Jack
It's a while ago since I played the last time with it. IIRC, you just need to compile a recent version of [wiimote] in order to get support for the MotionPlus-extension.
Hm, I seem not to be able to find Mike Wonzniewski's Wiimote page anymore. Has it moved? If so, where?
This is not valid anymore: http://mikewoz.com/index.php?page=pd-stuff
Roman
On Sun, 2010-02-21 at 17:29 +0100, Jack wrote:
Is it possible to use the Wiimote with MotionPlus on Linux ? It seems [wiimote] need an upgrade to return informations from the MotionPlus. Am I wrong ? Thanx. ++
Jack
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2010-02-21 17:29, Jack wrote:
Is it possible to use the Wiimote with MotionPlus on Linux ? It seems [wiimote] need an upgrade to return informations from the MotionPlus. Am I wrong ? Thanx.
i've used the motionplus and modded mike's original sources. they can now be found in the puredata-svn (externals/hardware/wiimote)
there should be a README.txt but it's missing: in order to get motionplus support you might have to patch the libcwiid (rev201): the patch is found in ./patches/
mfgasdr IOhannes
Thanx IOhannes for your help, but i have some troubles with the patch.
After : $ cd '/home/jack/Documents/Projets externes/Dakar/atelierDanseWii/WiimoteOrigine/src/cwiid-0.6.00/libcwiid' $ patch -p0 < '/home/jack/wiimote/patches/cwiid201_motionplus_sensitivity.patch'
I get : patching file process.c Hunk #1 FAILED at 249. 1 out of 1 hunk FAILED -- saving rejects to file process.c.rej patching file state.c Hunk #1 FAILED at 85. 1 out of 1 hunk FAILED -- saving rejects to file state.c.rej patching file cwiid.h Hunk #1 FAILED at 263. Hunk #2 FAILED at 308. 2 out of 2 hunks FAILED -- saving rejects to file cwiid.h.rej
I really don't know if this is the good way to apply a patch. I miss something ? ++
Jack
Le lundi 22 février 2010 à 10:05 +0100, IOhannes m zmoelnig a écrit :
On 2010-02-21 17:29, Jack wrote:
Is it possible to use the Wiimote with MotionPlus on Linux ? It seems [wiimote] need an upgrade to return informations from the MotionPlus. Am I wrong ? Thanx.
i've used the motionplus and modded mike's original sources. they can now be found in the puredata-svn (externals/hardware/wiimote)
there should be a README.txt but it's missing: in order to get motionplus support you might have to patch the libcwiid (rev201): the patch is found in ./patches/
mfgasdr IOhannes
On 2010-02-22 14:51, Jack wrote:
Thanx IOhannes for your help, but i have some troubles with the patch.
After : $ cd '/home/jack/Documents/Projets externes/Dakar/atelierDanseWii/WiimoteOrigine/src/cwiid-0.6.00/libcwiid' $ patch -p0 < '/home/jack/wiimote/patches/cwiid201_motionplus_sensitivity.patch'
oh, the patch is _not_ for the stable 0.6.00 release of libcwiid, which has no motionplus support at all. it is meant for the revision 201 of the libcwiid subversion repository. it seems like this no longer exists (since they moved from svn to git)
afaict, debian ships (and ubuntu lucid) ship the correct version, so you could get the sources from there.
also, i think that in the official git repository, the patch is already included.
fgmasdr IOhannes
I succeed to build the wiimote.pd_linux but in Pd i get now : wiimote: can't load library
and when i try to create [wiimote], i get : /home/jack/wiimote/wiimote.pd_linux: /home/jack/wiimote/wiimote.pd_linux: undefined symbol: cwiid_get_balance_cal wiimote ... couldn't create
i do this :
puredata-svn
git://github.com/abstrakraft/cwiid.git
also try with #include </home/jack/cwiid/libcwiid/cwiid_internal.h>)
For information, the old [wiimote] worked fine for me (without MotionPlus).
What can i do now ? Thanx for your help. ++
Jack
Le lundi 22 février 2010 à 18:00 +0100, IOhannes m zmoelnig a écrit :
On 2010-02-22 14:51, Jack wrote:
Thanx IOhannes for your help, but i have some troubles with the patch.
After : $ cd '/home/jack/Documents/Projets externes/Dakar/atelierDanseWii/WiimoteOrigine/src/cwiid-0.6.00/libcwiid' $ patch -p0 < '/home/jack/wiimote/patches/cwiid201_motionplus_sensitivity.patch'
oh, the patch is _not_ for the stable 0.6.00 release of libcwiid, which has no motionplus support at all. it is meant for the revision 201 of the libcwiid subversion repository. it seems like this no longer exists (since they moved from svn to git)
afaict, debian ships (and ubuntu lucid) ship the correct version, so you could get the sources from there.
also, i think that in the official git repository, the patch is already included.
fgmasdr IOhannes
I got my semi working version [crashes sometimes] From http://www.audioscape.org/srewiki/bin/view/Audioscape/
HtH
-----Original Message----- From: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] On Behalf Of Jack Sent: Monday, February 22, 2010 2:06 PM To: IOhannes m zmoelnig Cc: pd-list@iem.at Subject: Re: [PD] Wiimote and MotionPlus on Linux
I succeed to build the wiimote.pd_linux but in Pd i get now : wiimote: can't load library
and when i try to create [wiimote], i get : /home/jack/wiimote/wiimote.pd_linux: /home/jack/wiimote/wiimote.pd_linux: undefined symbol: cwiid_get_balance_cal wiimote ... couldn't create
i do this :
puredata-svn
git://github.com/abstrakraft/cwiid.git
also try with #include </home/jack/cwiid/libcwiid/cwiid_internal.h>)
For information, the old [wiimote] worked fine for me (without MotionPlus).
What can i do now ? Thanx for your help. ++
Jack
Le lundi 22 février 2010 à 18:00 +0100, IOhannes m zmoelnig a écrit :
On 2010-02-22 14:51, Jack wrote:
Thanx IOhannes for your help, but i have some troubles with the patch.
After : $ cd '/home/jack/Documents/Projets externes/Dakar/atelierDanseWii/WiimoteOrigine/src/cwiid-0.6.00/libcwiid' $ patch -p0 < '/home/jack/wiimote/patches/cwiid201_motionplus_sensitivity.patch'
oh, the patch is _not_ for the stable 0.6.00 release of libcwiid, which has no motionplus support at all. it is meant for the revision 201 of the libcwiid subversion repository. it seems like this no longer exists (since they moved from svn to git)
afaict, debian ships (and ubuntu lucid) ship the correct version, so you could get the sources from there.
also, i think that in the official git repository, the patch is already included.
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jack wrote:
and when i try to create [wiimote], i get : /home/jack/wiimote/wiimote.pd_linux: /home/jack/wiimote/wiimote.pd_linux: undefined symbol: cwiid_get_balance_cal wiimote ... couldn't create
obviously from experimental support for the wii balance, which seems to not be supported by the libcwiid used.
i do this :
- download new wiimote source from externals/hardware/wiimote in
puredata-svn
- download cwiid from git repository :
git://github.com/abstrakraft/cwiid.git
i have to admit that i never tried the git version. no i have and it worked out of the box (no need for patching as the patch is already included)
- change to #include </home/jack/cwiid/libcwiid/cwiid.h> in wiimote.c (i
also try with #include </home/jack/cwiid/libcwiid/cwiid_internal.h>)
NEVER EVER do that. this is why we have makefiles and CFLAGS and things like that: to set the path where to search for header-files and libraries. for unknown reasons only people who want to hardcode paths into #include seem to compile the wiimote external.
i know that there is no documentation, but anyhow: "make install" the libcwiid: it should install the headers and library files into /usr/local these paths should automatically be searched by any standard compiler, so you just go on with:
anyhow, there is one thing missing which you cannot know (though your problems are not related to that): you have to manually tell, that you want the wiimotionplus to report dual-acceleration: create and edit a file "Make.local" and add the line
<snip> CFLAGS += -DHAVE_CWIID_MOTIONPLUS_LOWSPEED </snip> to it. (this is for historic reasons when i did not care to write a configure script and libcwiid did not have the dualspeed feature built in)
- make
- copy wiimote.pd_linux in the Pd extra folder
- create an object [wiimote]
well, why not directly start pd from where you are until the object works?
mfgasdr IOhannes
Le lundi 22 février 2010 à 23:15 +0100, IOhannes m zmölnig a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jack wrote:
and when i try to create [wiimote], i get : /home/jack/wiimote/wiimote.pd_linux: /home/jack/wiimote/wiimote.pd_linux: undefined symbol: cwiid_get_balance_cal wiimote ... couldn't create
obviously from experimental support for the wii balance, which seems to not be supported by the libcwiid used.
i do this :
- download new wiimote source from externals/hardware/wiimote in
puredata-svn
- download cwiid from git repository :
git://github.com/abstrakraft/cwiid.git
i have to admit that i never tried the git version. no i have and it worked out of the box (no need for patching as the patch is already included)
Yes it works fine ;)
- change to #include </home/jack/cwiid/libcwiid/cwiid.h> in wiimote.c (i
also try with #include </home/jack/cwiid/libcwiid/cwiid_internal.h>)
NEVER EVER do that. this is why we have makefiles and CFLAGS and things like that: to set the path where to search for header-files and libraries. for unknown reasons only people who want to hardcode paths into #include seem to compile the wiimote external.
i know that there is no documentation, but anyhow: "make install" the libcwiid: it should install the headers and library files into /usr/local these paths should automatically be searched by any standard compiler, so you just go on with:
Yes, it is what i'm doing now and all is OK, [wiimote] is created. So thanks a lot.
anyhow, there is one thing missing which you cannot know (though your problems are not related to that): you have to manually tell, that you want the wiimotionplus to report dual-acceleration: create and edit a file "Make.local" and add the line
<snip> CFLAGS += -DHAVE_CWIID_MOTIONPLUS_LOWSPEED </snip> to it. (this is for historic reasons when i did not care to write a configure script and libcwiid did not have the dualspeed feature built in)
What i do with this Make.local now, where i put it ? Now sending [reportMotionplus 1( to [wiimote] return : angle_rate 8000 8050 7870 low_speed 1 1 1
The problem is i get always 1 1 1 with low_speed. Because of the Make.local file ? ++
Jack
- make
- copy wiimote.pd_linux in the Pd extra folder
- create an object [wiimote]
well, why not directly start pd from where you are until the object works?
mfgasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkuDATgACgkQkX2Xpv6ydvSh8QCeJpB77Y8k4mLad0Zc95hoZQTm MmwAn0KcXjWw77QrxeY7678xU/6gjS94 =wBtU -----END PGP SIGNATURE-----
On 2010-02-23 02:04, Jack wrote:
What i do with this Make.local now, where i put it ? Now sending [reportMotionplus 1( to [wiimote] return : angle_rate 8000 8050 7870 low_speed 1 1 1
The problem is i get always 1 1 1 with low_speed. Because of the Make.local file ?
exactly.
the Make.local resides beside the wiimote.c and its Makefile. then do make clean && make
fgmasdr IOhannes
Le mardi 23 février 2010 à 09:00 +0100, IOhannes m zmoelnig a écrit :
On 2010-02-23 02:04, Jack wrote:
What i do with this Make.local now, where i put it ? Now sending [reportMotionplus 1( to [wiimote] return : angle_rate 8000 8050 7870 low_speed 1 1 1
The problem is i get always 1 1 1 with low_speed. Because of the Make.local file ?
exactly.
the Make.local resides beside the wiimote.c and its Makefile. then do make clean && make
I created a new document and added the line : CFLAGS += -DHAVE_CWIID_MOTIONPLUS_LOWSPEED then saved it under : Make.local beside the wiimote.c and Makefile then did make clean and make, but i still get : low_speed 1 1 1 What is the purpose of this message ? ++
Jack
fgmasdr IOhannes
Argh ! Sorry, it works fine. I have put PD_INCLUDE instead of CFLAGS in Make.local. Thanx again for your help IOhannes. ++
Jack
Le mardi 23 février 2010 à 13:42 +0100, Jack a écrit :
Le mardi 23 février 2010 à 09:00 +0100, IOhannes m zmoelnig a écrit :
On 2010-02-23 02:04, Jack wrote:
What i do with this Make.local now, where i put it ? Now sending [reportMotionplus 1( to [wiimote] return : angle_rate 8000 8050 7870 low_speed 1 1 1
The problem is i get always 1 1 1 with low_speed. Because of the Make.local file ?
exactly.
the Make.local resides beside the wiimote.c and its Makefile. then do make clean && make
I created a new document and added the line : CFLAGS += -DHAVE_CWIID_MOTIONPLUS_LOWSPEED then saved it under : Make.local beside the wiimote.c and Makefile then did make clean and make, but i still get : low_speed 1 1 1 What is the purpose of this message ? ++
Jack
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list