Author Topic: Motion Plus and Wiiuse  (Read 29537 times)

Offline Hiciao

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
on: September 08, 2009, 08:22:08 AM
Hello,

is there someone who has already added motion plus support to the wiiuse library?

I tried myself and now my wiimote does not send any analog (accelerometer) values anymore, after i did some tryouts under linux. The weird thing is that the wiimote sends these values using other libraries and even with wiiuse running in windows, but under linux (ubuntu 9.04) it will not work, even with the original wiiuse...it seems not to be broken but it seems to "remember" what i did to it under linux with wiiuse and resetting it did not help, very weird :(

So before i waste another wiimote, is there anyone who already added motion plus support to the wiiuse library?



Offline williiam

  • *
  • Posts: 21
  • Karma: +1/-0
    • View Profile
    • fWiineur ; web-site for fWIIne
Reply #1 on: September 25, 2009, 06:44:47 PM
Hi Hiciao,

Finally, done. I used wiiuse with Wii Motion Plus for fWIIne.
The MEX library has just been updated with the latest development from devkitpro inside wiiuse for WIN32.
You can download fWIIne (and so, the updated wiiuse lib for WIN32, of course) :
http://sourceforge.net/projects/fwiine/files/ (bin and sources)

Feel free to try the usual exec. file : wiiuseexample.exe
It will give you an idea of the acquisition from the Wii Motion Plus.

(Data acquisition from accelerometers (Wii Remote) and Gyro sensor (Wii Motion Plus)

Enjoy !

- Wiilliam

http://fwiineur.blogspot.com/2009/09/fwiine-v04-released-english-version.html











Offline Benjimoron

  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Reply #2 on: October 17, 2009, 06:03:49 AM
Apologies if this is obvious, but is this basically the wii motion plus working on the pc? I understand people have been using the wiimote for ages but I wasn't aware that someone has got the motion plus working for the pc. All I'm looking for is the wii motion plus for the pc which I can use as a gyration mouse, ie up/down/left/right, I don't need any other function, no tilt, no buttons etc. Just the up/down/left/right.

Thanks for any help.




Offline williiam

  • *
  • Posts: 21
  • Karma: +1/-0
    • View Profile
    • fWiineur ; web-site for fWIIne
Reply #3 on: October 19, 2009, 01:05:06 PM
Hi,

Yes, it works. Feel free to download and to test it.
In fact some developers (devkitpro's team) updated the wiiuse library.
Now, their changes were implemented in order to build the fwiine lib.
As you will see with the example (wiiuseexample.exe was kept for testing purposes), the current
implementation could be improved for a better use (You will have to connect the wiimote, start exec file,
plug WM+ to the wiimote and then press button "1" to display raw data from wii motion plus.. it could be better...).
To summarize : it works... but some improvements are necessary for an automatic detection of WM+.

Then, about data from wii motion plus : The gyro sensor provides angular velocities.
You will have to compute them from raw data (meaning in theory : angular velocity = ratio * (rawdata - gyro bias sensor). 
Then, the merge of angular velocities and accel. data will allow you to detect some primitives for gyration mouse.
Ok, back to reality : complex filters are needed because bias is function of temperature/voltage and noise are handled by some specific filters, only.

Hope this will help you,
- Wiilliam





 



Offline rbp

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #4 on: May 18, 2010, 01:49:40 AM
thanks very much for releasing this William - I was wondering where devkitpro's WM+ support came from.

Do you know of example code that uses these WM+ angular velocities to improve the wiimote angles?



Offline williiam

  • *
  • Posts: 21
  • Karma: +1/-0
    • View Profile
    • fWiineur ; web-site for fWIIne
Reply #5 on: May 21, 2010, 07:49:35 AM
Hi,

First, thank you for using fwiine !
Yes, indeed the devkitpro's team has strongly improved the wiiuse lib for supporting WM+.
Well, kalman filtering is one solution for a better accuracy from wiimote angles.


- William



PS : By the way, WM+ support will have to be improved on a next release. (including 3 flags for fast/slow rates)



Offline sajid9460

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #6 on: January 27, 2013, 01:13:50 AM
what  is fWIne and can i use it with my wiimote motion plus builtin?
If not is there any software for it?
pls reply......................