Talk:CWiid

From WiiLi

Jump to: navigation, search

abstrakraft: Sorry, folks, I'm not the best at documentation. Please give some pointers here on what's lacking, and I'll be glad to update it.

[edit] Just a note about a specific problem on Ubuntu 6.10

Hi, I've been using wminput on Ubuntu Edgy and it works just fine. You need to modprobe uinput first, though. However, wmgui (.deb) installation isn't really smooth, as a dependancy problem occurs. Haven't tried on Ubuntu 6.06.

Problem with: libfontgonfig1

Already installed on my system but the .deb claims not to find it, I don't get it and lack the technical experience necessary.

The man page should also have a clearer, shorter paragraph on how to map buttons - the text is here but feels lost in all that text.

Thanks for this great work anyhow ;)

[edit] Some Suggestions

The documentation seemed fine to me - I just downloaded the tar, unpacked, typed make, and off I went. The only other thing I had to do was turn on bluetooth with

 hciconfig hci0 up

I've been messing about a bit with wmgui (this is easy: just use Glade to edit the UI interface file wmgui/wmgui.glade, and your favorite code editor for wmgui/src/main.c), so I have a suggestion or two for the code itself:

  • Add a menu with different visualization options for the IR and accelerometer data. For example, I added one to plot a (very bad) 3D vector of the acceleration data. Visualizations might be:
  • Calculation of pointer position and rotation from IR data.
  • Time plot of accelerometer data.
  • 3D plot of accelerometer data (with calculations of which way is down when acceleration is close to 1g).

Once there are some examples it should be easier for people to add their own, or modify the examples to try different algorithms, etc. Oh, and save the accelerometer data somewhere, rather than just updating the progress bars from wiimote_callback() :)

  • Add support for the Nunchuck and other add-ons.
  • Add reading of accelerometer calibration data - Wiimote's have their xyz zero points set in the factory.

Also, you said you have problems with IR pointer tracking. I've got a Wii and two remotes. For the second remote (bought separately) I had to adjust the sensitivity through the Wii to get good tracking. I guess there is some way for the Wii to tweak the Wiimote's IR tracking algorithm. This process might have to be duplicated by CWiid.

For your todo/roadmap, I would move support for multiple wiimotes and attachments a bit higher up the list and not bother so much about gesture recognition, except to put the infrastructure in place to allow people to develop their own. I think gesture recognition and trying to track the wiimote's 6 degrees of freedom using only 3 accelerometer readings (and maybe the occasional glimpse of IR data) is going to be a long, hard process. It'll probably require some sophisticated techniques to do properly.

Oh, and if you want hand with the code, let me know... Twirlip 13:46, 8 January 2007 (EST)

[edit] Miiviewer

Some sort of Miiviewer has to go in this. --Henke37 18:09, 13 January 2007 (EST)

Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy