Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Motion+ in VRPN #28

Open
jafyvilla opened this Issue Dec 6, 2012 · 15 comments

Comments

Projects
None yet
4 participants

Coming from the VRPN email list...
I was trying to implement Motion+ in vrpn_WiiMote.C, given that there is support already in Wiiuse, so with the data passing I had no problem until I realized there is a pretty random issue which I don't know where it comes from.

Just like in the wiiuseexample, I use the function wiiuse_set_motion_plus(wiimote->device, 2) to activate the Motion+ extension with the nunchuk pass-through. The problem is that whenever I'm using it, the nunchuk is not working, but the motion+ is giving the right data. Any idea about it? Also, if I disable the Motion+ using that same function, the nunchuk doesn't come back, it's still not working.

Thanks!
Jafet

Collaborator

janoc commented Dec 6, 2012

Hello,

On Thu, Dec 6, 2012 at 10:47 AM, Jafet Villafranca <notifications@github.com

wrote:

Coming from the VRPN email list...
I was trying to implement Motion+ in vrpn_WiiMote.C, given that there is
support already in Wiiuse, so with the data passing I had no problem until
I realized there is a pretty random issue which I don't know where it comes
from.

Just like in the wiiuseexample, I use the function
wiiuse_set_motion_plus(wiimote->device, 2) to activate the Motion+
extension with the nunchuk pass-through. The problem is that whenever I'm
using it, the nunchuk is not working, but the motion+ is giving the right
data. Any idea about it? Also, if I disable the Motion+ using that same
function, the nunchuk doesn't come back, it's still not working.

Pffff ... grumble

I feel your pain :( First, which platform are you on? The code contains a
lot of platform-specific hacks, so it is essential to know. Second, what hw
are you using? Is it normal Wiimote and Motion+ dongle or the newer
Wiimote+? What type of nunchuck? Some Chinese knock-offs are known to cause
issues because they are not fully compatible.

Then it would help to compile your code in debug mode and post the output
of what happens when you connect to Wiimote, enable Motion+ and plug/unplug
the nunchuck.

Regards,

Jan

First of all, thanks for the reply! Let's see...
I'm on Linux (Ubuntu 12.04), and I'm using the original Wiimote and Motion+ extension from Nintendo, not Chinese stuff.
While debugging, the ouput is this:

/// initialization goes ok...
...
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:525: Received read packet:
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:526: Packet read offset: 240 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:527: Request read offset: 32 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:528: Read offset into buf: 208 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:529: Read data size: 16 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:530: Still need: 0 bytes
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 55 0 0 0 0 0 0 0 0 0 0 0 a4 20 0 0
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:760: handshake_expansion with state 3
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/nunchuk.c:104: Nunchuk calibration X: min 1d, max e5, center 81 Y: min 1e, max e6, center 80
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4b00033...
Write data is: 1
[DEBUG](id 1) SEND: (52) 16 04 b0 00 33 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:498: Requested wiimote status.
[DEBUG](id 1) SEND: (52) 15 00
[WARNING] Transmitting data packet when no request was made.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:325: Setting report type: 0x37
[DEBUG](id 1) SEND: (52) 12 00 37

/// nunchuk is working...
/// and when I enable Motion+...

[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:606: Data write request can be sent out immediately.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4a600fe...
Write data is: 5
[DEBUG](id 1) SEND: (52) 16 04 a6 00 fe 01 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:377: Data read request can be sent out immediately.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:480: Request read at address: 0x4a400fa length: 6
[DEBUG](id 1) SEND: (52) 17 04 a4 00 fa 00 06
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:525: Received read packet:
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:526: Packet read offset: 250 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:527: Request read offset: 250 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:528: Read offset into buf: 0 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:529: Read data size: 6 bytes
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:530: Still need: 0 bytes
Read: 0 0 a4 20 5 5
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/motion_plus.c:88: Motion plus connected
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4b00033...
Write data is: 1
[DEBUG](id 1) SEND: (52) 16 04 b0 00 33 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:325: Setting report type: 0x37
[DEBUG](id 1) SEND: (52) 12 00 37
[WARNING] Transmitting data packet when no request was made.

/// now I get the gyroscope values but the nunchuk is not working anymore
/// Then I disable the Motion+ again...

[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:859: Disabling expansion
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/motion_plus.c:152: Motion plus disconnected
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:606: Data write request can be sent out immediately.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4a400f0...
Write data is: 55
[DEBUG](id 1) SEND: (52) 16 04 a4 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:612: chaud2fois
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:616: Added pending data write request.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4a400f0...
Write data is: 0
[DEBUG](id 1) SEND: (52) 16 04 a4 00 f0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:325: Setting report type: 0x33
[DEBUG](id 1) SEND: (52) 12 00 33
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4b00033...
Write data is: 3
[DEBUG](id 1) SEND: (52) 16 04 b0 00 33 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:498: Requested wiimote status.
[DEBUG](id 1) SEND: (52) 15 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:325: Setting report type: 0x33
[DEBUG](id 1) SEND: (52) 12 00 33
[WARNING] Transmitting data packet when no request was made.
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:760: handshake_expansion with state 3
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/events.c:801: no handshake data received from expansion
[DEBUG](id 1) SEND: (52) 13 04
[DEBUG](id 1) SEND: (52) 1a 04
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4b00030...
Write data is: 8
[DEBUG](id 1) SEND: (52) 16 04 b0 00 30 01 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 9 bytes to memory location 0x4b00000...
Write data is: 2 0 0 71 1 0 aa 0 64
[DEBUG](id 1) SEND: (52) 16 04 b0 00 00 09 02 00 00 71 01 00 aa 00 64 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 2 bytes to memory location 0x4b0001a...
Write data is: 63 3
[DEBUG](id 1) SEND: (52) 16 04 b0 00 1a 02 63 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:546: Writing 1 bytes to memory location 0x4b00033...
Write data is: 3
[DEBUG](id 1) SEND: (52) 16 04 b0 00 33 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/wiiuse.c:325: Setting report type: 0x33
[DEBUG](id 1) SEND: (52) 12 00 33
[DEBUG] /home/villafra/New/Buildyard/src/Wiiuse/src/ir.c:155: Enabled IR camera for wiimote id 1 (sensitivity level 3).
[WARNING] Transmitting data packet when no request was made.
[WARNING] Transmitting data packet when no request was made.
[WARNING] Transmitting data packet when no request was made.

/// Motion+ disabled and nunchuk still not working.

That's all the info I can get, whenever I plug or unplug the nunchuk I don't get any output, it's like it doesn't exist anymore since I enabled the Motion+ extension.

Any help would be appreciated, thanks.
Jafet.

Collaborator

janoc commented Dec 6, 2012

On Thu, Dec 6, 2012 at 2:25 PM, Jafet Villafranca
notifications@github.comwrote:

First of all, thanks for the reply! Let's see...
I'm on Linux (Ubuntu 12.04), and I'm using the original Wiimote and
Motion+ extension from Nintendo, not Chinese stuff.
While debugging, the ouput is this:

Actually, it seems that your device is working correctly - the nunchuck is
initialized and then Motion+ is turned on correctly. The deal with the
Motion+ device is that when you turn it on, it remaps Wiimote memory and by
default disables any additional extensions hanging off the expansion port
because the normal expansion space is taken up by the Motion+ - that's why
you are getting no Nunchuck info.

If you want to use both Motion+ and Nunchuck, you need to enable the
interleaved report - I don't recall it from memory, but it is in the wiiuse
example, I think. Alternatively, check the source code for the Motion+
driver - there is a mode you can set that will give you both Motion+ data &
the extra expansion data.

When you turn the Motion+ off, you may need to re-initialize/reset the
report type - by default it sets only the one reporting Wiimote buttons, I
think. If you want nunchuck, you need to reset the report type. From the
trace you sent I see that something went wrong when the nunchuck was being
re-initialized after disconnecting the Motion+, that could be indeed a bug,
there were quite a few changes in the nunchuck initialization code recently
and maybe some interaction with Motion+ wasn't tested.

Regards,

Jan

Well, for now I'm going to focus on the first part of my problem: getting the nunchuk info correctly when attached together with the Motion+ extension.
After some debugging I finally managed to get the nunchuk info, but here comes the randomness...some of the times I start the VRPN server, the data I get from the nunchuk is correct; but other times it's not, although I'm using the very same configuration.
I've been trying to trace the problem and it seems that some times the joystick values are not correct: the js.min, js.max and js.center values used in the dynamics part to get the joystick angle and magnitude are 0; but when it's working properly the values are different from 0. How can this be? What's with the random behavior?

I'll leave the other issue, the one that happens when turning the Motion+ off, for later...

Thanks!

Collaborator

janoc commented Dec 9, 2012

You could try this version, which is about to be merged:
#30

There has been quite a bit of refactoring on both the Motion+ and Nunchuck side, so check it out. It works fine for me with the wiiuseexample - pressing the 1 and 2 buttons switches the M+ and Nunchuck on and off without problems and the data are valid.

Re magnitude - the magnitude being 0 means that the angle data are invalid, because the joystick is centered. E.g. my nunchuk reports angle 180degress and mag 0 when centered. If all data are zero, that likely means that the Nunchuk isn't actually detected/working and the corresponding fields in the status data structure weren't filled.

I cannot comment on the VRPN code, I had some mixed success with Wiimote support in VRPN myself. Try first to reproduce the problem with the above linked Wiiuse version without VRPN and then compare what the VRPN code is doing with the example in Wiiuse. Perhaps there is something being done incorrectly.

That one looks a bit more stable, thanks. But it still seems to have some random issues when used together with the nunchuk extension. When I enable the Motion+ it works fine, but again, and only sometimes, I'm not getting any data from the nunchuk joystick.
As I said, this version seems more reliable, so the problem doesn't appear as often as before, but still looks random...some race condition perhaps? I'm just guessing here...

Collaborator

lysannschlegel commented Dec 10, 2012

I also experienced the problem from time to time with the Mac version of #30.
I did not have a chance to debug it yet, but I can confirm it exists.

Collaborator

janoc commented Dec 10, 2012

On Mon, Dec 10, 2012 at 10:30 AM, Jafet Villafranca <
notifications@github.com> wrote:

That one looks a bit more stable, thanks. But it still seems to have some
random issues when used together with the nunchuk extension. When I enable
the Motion+ it works fine, but again, and only sometimes, I'm not getting
any data from the nunchuk joystick.
As I said, this version seems more reliable, so the problem doesn't appear
as often as before, but still looks random...some race condition perhaps?
I'm just guessing here...

That has to be something with the Mac BT stack then - Wiiuse doesn't use
any threads, so there is no way for a race condition to occur in Wiiuse
itself. Unfortunately, I have no way to debug that, because I do not have a
Mac around :(

Maybe some packets are being mangled? You should be able to see the
sequence of packets being sent out to the Wiimote, enabling the
pass-through on the M+ for the Nunchuck and check with the known good
content. If you have Bluetooth sniffer, it would help to sniff the traffic
too and see what is going on - maybe there is some sort of buffering on the
system side and only part of the message goes out, confusing the Wiimote.

Regards,

Jan

That has to be something with the Mac BT stack then - Wiiuse doesn't use any threads, so there is no way for a race condition to occur in Wiiuse itself.

Mmm...in my case, I'm on a Linux machine, not Mac.
I'm sorry, earlier I was referring to VRPN threads, since that's where I've been experiencing the issues, not Wiiuse by itself, but of course it also could be some BT packets loss.

Collaborator

janoc commented Dec 10, 2012

On Mon, Dec 10, 2012 at 11:00 AM, Jafet Villafranca <
notifications@github.com> wrote:

That has to be something with the Mac BT stack then - Wiiuse doesn't use
any threads, so there is no way for a race condition to occur in Wiiuse
itself.

Mmm...in my case, I'm on a Linux machine, not Mac.
I'm sorry, earlier I was referring to VRPN threads, since that's where
I've been experiencing the issues, not Wiiuse by itself, but of course it
also could be some BT packets loss.

Ah, ok, my bad.

Does the same problem occur with the Wiiuse example for you? I want to rule
out flakey/problematic HW first. If everything works with the example code,
then we need to focus on what VRPN does with it. Maybe it is trying to set
up the nunchuck/Motion+ too early, before everything is initialized - the
Wiimote/Motion+ init takes some time and if the thread isn't waiting for it
and blindly sends another request, it could be messing the Wiimote up in
some cases.

Jan

I just tried the wiiuse example, and even though always that I enable the Motion+ for the first time everything works perfectly, if I disable it after that and try to enable it again, sometimes the same problem appears: gyroscope values ok, but nunchuk's ones wrong.
So I guess we can discard a VRPN flaw for now...

Collaborator

janoc commented Dec 10, 2012

On Mon, Dec 10, 2012 at 11:33 AM, Jafet Villafranca <
notifications@github.com> wrote:

I just tried the wiiuse example, and even though always that I enable the
Motion+ for the first time everything works perfectly, if I disable it
after that and try to enable it again, sometimes the same problem appears:
gyroscope values ok, but nunchuk's ones wrong.
So I guess we can discard a VRPN flaw for now...

Have you tried the example from the branch I sent you before? The
osx-something one? For me that was rock stable on Linux and the nunchuck
values were good, even when I turned the M+ on and off again by pressing
the 1 and 2 buttons on the Wiimote. If that doesn't work, could you test a
different nunchuck/Wiimote?

Mine is a 3rd party one and I was using the (genuine) Wiimote+ (the one
with built-in Motion+). Perhaps it is breaking with the official nunchuck
for some reason :( Or maybe yours is a bit weird and the code is pushing
the tolerances :(

J.

Yes, that's the one I've been trying, in the osx-refactor_sync-mplus branch. Still the same issue, apparently it works fine but from time to time it fails (I realized after disabling/enabling the Motion+ a bunch of times).
As I said these are the official devices (both the basic Wiimote and the Nunchuk) with the Motion+ extension, not the built-in. The problem might be there, in the way the extension works...probably differently from the Wiimote+; or even in the Bluetooth usb dongle that I'm using.
Unfortunately at the moment I can't get any device different from those I have to test, so I'll have to stick with my current setup for now.

Thanks,
Jafet.

Owner

rpavlik commented Dec 12, 2012

You might consider (after updating to latest master), running the example compiled as debug and piped through tee to log it, and try to trigger the case again. If it's indeed some kind of timing or race condition, at least getting some log of it would be handy.

Sorry for the delay in my answer. Here the log of a recent execution (with latest version) in which I experienced the same issue. As you can see, first time I enable the M+ everything goes well; but once I try disabling and re-enabling it, sometimes the nunchuk values get screwed...
I hope this can be useful to find the reason of the problem.

Thanks!

wiiuse v0.14.0 loaded.
Fork at http://github.com/rpavlik/wiiuse
Original By: Michael Laforest <thepara[at]gmail{dot}com> http://wiiuse.net
[DEBUG](id 1) SEND: (12) 00 30
[DEBUG](id 1) SEND: (17) 00 00 00 16 00 08
[DEBUG](id 1) RECV: (20) 00 00 02 00 00 6d 01
[DEBUG](id 1) RECV: (30) 00 00 00
[DEBUG](id 1) RECV: (21) 00 00 70 00 16 81 81 7e 0b 9a 9c 98 10 00 00 00 00 00 00 00 00 3d
[DEBUG](id 1) SEND: (15) 00
[DEBUG](id 1) SEND: (12) 00 30
Connected to 1 wiimotes (of 1 found).
[DEBUG](id 1) SEND: (11) 10
[DEBUG](id 1) SEND: (13) 11
[DEBUG](id 1) SEND: (13) 10

Controls:
B toggles rumble.
+ to start Wiimote accelerometer reporting, - to stop
UP to start IR camera (sensor bar mode), DOWN to stop.
1 to start Motion+ reporting, 2 to stop.

[DEBUG](id 1) RECV: (20) 00 00 02 00 00 6e 00
[DEBUG](id 1) SEND: (17) 04 a6 00 fa 00 06
[DEBUG](id 1) RECV: (30) 00 00 ff
[DEBUG](id 1) RECV: (21) 00 00 50 00 fa 00 00 a6 20 00 05 00 00 00 00 00 00 00 00 00 00 0a
Write data is: 55
[DEBUG](id 1) SEND: (16) 04 a6 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Write data is: 55
[DEBUG](id 1) SEND: (16) 04 a4 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Write data is: 0
[DEBUG](id 1) SEND: (16) 04 a4 00 fb 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) SEND: (12) 00 30
Write data is: 55
[DEBUG](id 1) SEND: (16) 04 a4 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) SEND: (12) 00 30

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 0
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.550000 %
[DEBUG](id 1) RECV: (22) 00 00 16 00 00
Write data is: 0
[DEBUG](id 1) SEND: (16) 04 a4 00 fb 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (22) 00 00 16 00 00
[DEBUG](id 1) SEND: (17) 04 a4 00 20 00 e0
[DEBUG](id 1) RECV: (22) 00 00 16 00 00
[DEBUG](id 1) RECV: (21) 00 00 f0 00 20 7d 7d 7f 08 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74
[DEBUG](id 1) RECV: (21) 00 00 f0 00 30 7d 7d 7f 08 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74
[DEBUG](id 1) RECV: (21) 00 00 f0 00 40 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 50 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 70 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 80 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 90 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 f0 55 00 00 00 00 00 00 00 00 00 00 00 a4 20 00 00 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 55 0 0 0 0 0 0 0 0 0 0 0 a4 20 0 0
[DEBUG](id 1) SEND: (15) 00
Nunchuk inserted.
[DEBUG](id 1) RECV: (30) 00 00 00
[DEBUG](id 1) RECV: (20) 00 00 12 00 00 6e 00
[DEBUG](id 1) SEND: (12) 00 34

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 1
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.550000 %
[DEBUG](id 1) RECV: (34) 00 00 82 80 88 83 ae 27 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 0.922079
nunchuk pitch = 0.512129
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.009901
[DEBUG](id 1) RECV: (34) 00 00 82 80 88 83 ae 2b 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
ONE pressed
Write data is: 5
[DEBUG](id 1) SEND: (16) 04 a6 00 fe 01 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
nunchuk roll = 13.786345
nunchuk pitch = 7.468748
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.009901
[DEBUG](id 1) RECV: (34) 00 02 82 80 88 83 ad b7 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 02 82 80 89 83 ad ab 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (22) 00 02 16 00 00
[DEBUG](id 1) SEND: (17) 04 a4 00 fa 00 06
[DEBUG](id 1) RECV: (21) 00 02 50 00 fa 00 00 a4 20 05 05 00 00 00 00 00 00 00 00 00 00 00
Read: 0 0 a4 20 5 5
[DEBUG](id 1) SEND: (12) 00 34
Motion+ was activated
[DEBUG](id 1) RECV: (34) 00 02 34 4e 3f a2 01 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
ONE pressed
nunchuk roll = 13.822776
nunchuk pitch = 7.469375
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.009901
Motion+ angular rates (deg/sec): pitch:15.75 roll:19.50 yaw:514.60
[DEBUG](id 1) RECV: (34) 00 02 b4 f5 f0 7f 3b 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 14.925878
nunchuk pitch = 7.673436
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.000000
Motion+ angular rates (deg/sec): pitch:-1.20 roll:6.60 yaw:14.90
[DEBUG](id 1) RECV: (34) 00 01 81 80 89 83 ad ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
TWO pressed
Write data is: 55
[DEBUG](id 1) SEND: (16) 04 a4 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 01 ad af fb 83 77 7a 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 01 81 80 89 83 ad fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (22) 00 01 16 00 00
Write data is: 0
[DEBUG](id 1) SEND: (16) 04 a4 00 f0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (20) 00 01 10 00 00 6d 00
[DEBUG](id 1) SEND: (12) 00 30

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 0
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
[DEBUG](id 1) RECV: (22) 00 01 16 07 00
[DEBUG](id 1) SEND: (15) 00
[DEBUG](id 1) RECV: (20) 00 01 10 00 00 6d 00
[DEBUG](id 1) SEND: (12) 00 30

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 0
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
[DEBUG](id 1) RECV: (30) 00 01 00
[DEBUG](id 1) RECV: (20) 00 01 12 00 00 6d 00
Write data is: 55
[DEBUG](id 1) SEND: (16) 04 a4 00 f0 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) SEND: (12) 00 30

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 0
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
[DEBUG](id 1) RECV: (22) 00 01 16 00 00
Write data is: 0
[DEBUG](id 1) SEND: (16) 04 a4 00 fb 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (30) 00 01 00
[DEBUG](id 1) RECV: (22) 00 00 16 00 00
[DEBUG](id 1) SEND: (17) 04 a4 00 20 00 e0

--- EVENT [id 1] ---
[DEBUG](id 1) RECV: (21) 00 00 f0 00 20 7d 7d 7f 08 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74
[DEBUG](id 1) RECV: (21) 00 00 f0 00 30 7d 7d 7f 08 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74
[DEBUG](id 1) RECV: (21) 00 00 f0 00 40 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 50 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 70 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 80 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 90 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[DEBUG](id 1) RECV: (21) 00 00 f0 00 f0 55 00 00 00 00 00 00 00 00 00 00 00 a4 20 00 00 00
Read: 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 7d 7d 7f 8 b0 af b0 33 e5 1d 81 e6 1e 80 1f 74 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 55 0 0 0 0 0 0 0 0 0 0 0 a4 20 0 0
[DEBUG](id 1) SEND: (15) 00
Nunchuk inserted.
[DEBUG](id 1) RECV: (20) 00 00 12 00 00 6d 00
[DEBUG](id 1) SEND: (12) 00 34

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 1
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 83 ad fb 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 14.904888
nunchuk pitch = 7.657096
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.009901
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 8b 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 8a 84 ad 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 83 ad bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 83 ad bb 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 83 ad b7 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 00 81 80 89 83 ad bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 14.807185
nunchuk pitch = 7.916718
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.000000
[DEBUG](id 1) RECV: (34) 00 00 82 80 89 84 ad 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
ONE pressed
Write data is: 5
[DEBUG](id 1) SEND: (16) 04 a6 00 fe 01 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
nunchuk roll = 15.020764
nunchuk pitch = 7.690074
nunchuk yaw = 0.000000
nunchuk joystick angle: 180.000000
nunchuk joystick magnitude: 0.009901
[DEBUG](id 1) RECV: (34) 00 02 82 80 89 83 ad b7 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (34) 00 02 82 80 8a 83 ad 97 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DEBUG](id 1) RECV: (22) 00 02 16 00 00
[DEBUG](id 1) SEND: (17) 04 a4 00 fa 00 06
[DEBUG](id 1) RECV: (20) 00 02 10 00 00 6d 00
[DEBUG](id 1) SEND: (12) 00 30

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 0
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
An expansion was removed.
[DEBUG](id 1) RECV: (21) 00 02 50 00 fa 00 00 a4 20 05 05 00 00 00 00 00 00 00 00 00 00 00
Read: 0 0 a4 20 5 5
[DEBUG](id 1) SEND: (12) 00 34
Motion+ was activated
[DEBUG](id 1) RECV: (30) 00 02 00

--- EVENT [id 1] ---
ONE pressed
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 0.000000
nunchuk joystick magnitude: 0.000000
Motion+ angular rates (deg/sec): pitch:0.00 roll:0.00 yaw:0.00
[DEBUG](id 1) RECV: (34) 00 02 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00

--- EVENT [id 1] ---
ONE pressed
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 0.000000
nunchuk joystick magnitude: 0.000000
Motion+ angular rates (deg/sec): pitch:819.15 roll:819.15 yaw:819.15
[DEBUG](id 1) RECV: (20) 00 02 12 00 00 6d 00
[DEBUG](id 1) SEND: (12) 00 34

--- CONTROLLER STATUS [wiimote id 1] ---
attachment: 6
speaker: 0
ir: 0
leds: 1 0 0 0
battery: 0.545000 %
[DEBUG](id 1) RECV: (34) 00 02 00 4c 3b 8a 01 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
ONE pressed
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 0.000000
nunchuk joystick magnitude: 0.000000
Motion+ angular rates (deg/sec): pitch:14.75 roll:19.00 yaw:435.20
[DEBUG](id 1) RECV: (34) 00 02 80 2e 00 7b 77 7e 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
ONE pressed
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 0.000000
nunchuk joystick magnitude: 0.000000
Motion+ angular rates (deg/sec): pitch:0.00 roll:0.00 yaw:0.00
[DEBUG](id 1) RECV: (34) 00 00 81 80 8a 83 ad ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 224.777054
nunchuk joystick magnitude: 181.727814
Motion+ angular rates (deg/sec): pitch:0.00 roll:0.00 yaw:0.00
[DEBUG](id 1) RECV: (34) 00 00 6b 5f fe 7b 77 7a 00 00 00 00 00 00 00 00 00 00 00 00 00 00

--- EVENT [id 1] ---
nunchuk roll = 0.000000
nunchuk pitch = 0.000000
nunchuk yaw = 0.000000
nunchuk joystick angle: 224.777054
nunchuk joystick magnitude: 181.727814
Motion+ angular rates (deg/sec): pitch:0.00 roll:2.45 yaw:-1.05
[DEBUG](id 1) RECV: (34) 00 00 81 80 8a 83 ad ac 00 00 00 00 00 00 00 00 00 00 00 00 00 00

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment