WiiYourself!  Home   My other stuff ...


my other stuff

 ToDo list:    last updated  24 Jul 2008

Known Issues (v1.01):

- initialising joysticks with the SDL multimedia library will stop WiiYourself! detecting wiimotes that were available at the time.  Connect() those wiimotes before calling SDL_InitSubSystem(SDL_INIT_JOYSTICK)    (thanks Andre).

Tested:

Vista 32bit: MS built-in BT stack supports HID writes only, audio frequently warps
  Toshiba BT stack v5.10.12 / v6.10.10 supports WriteFile() only, some audio glitches
Win2k: Widcom BT stack v1.4.2.8 supports WriteFile(), ...

Ways you can help:

Hardware:
-
donate a Wiimote, Classic Controller, Balance Board or Guitar Hero peripheral (condition doesn't matter as long as it works).

Testing:
- general testing & feedback 
(including Bluetooth stack compatibility reports)
- Classic Controller testing 
(I don't have one)
- multiple Wiimote testing 
(I only have one)

Features:
- any improvements/features/ports to new compilers/docs etc. welcome.
- how to auto-pair the Wiimote when the Power button is held down?

Apparently it can be made to work on the BlueSoil stack using its native API, but I'd want a generic way...

Audio code:

This is what it sounds like on my Vista/Toshiba setup:
(note sometimes it's more stable & sometimes the audio vanishes completely until you retrigger it a few times)
.wav version (6.6mb)
.wv version (lossless Wavpack, 4.6mb)

- ADPCM variant doesn't seem exact  (try Sine wave sample in demo)
and/or
- Occasional glitches/dropouts/phase inversions?
(worse with HID writes which seem more jittery) -
    a) are the speaker frequencies exact?
    b) ways to improve output and/or smoothe wiimote sample buffering?
- 'Volume' seems to actually influence decoding in some way 
(values over 0x40 totally warp ADPCM playback and seem to remove low-intensity sound like a noise gate...).
- is some ADPCM state initialisation required?
most likely...

Stuff that'd be real handy:
- better wiimote position/orientation estimation.
   
(for the basics read this, and for a possible approach read this). ideally should use IR too.


Join my
mailing list to get involved.

References:

Wiimote protocols & data:
http://wiibrew.org/index.php?title=Wiimote
http://www.wiili.org/index.php/Wiimote
http://www.auby.no/files/wii/attachment.txt
http://www.wiindows.org/index.php/Talk:Wiimote

Wiimote guts:
http://www.sparkfun.com/commerce/present.php?p=Wii-Internals

Coding style isn't open to debate.  To quote The Girl Next Door'Learn to love it.' (or learn to reformat it).

HITS :   
gl.tter