From 41aca53777324ce9c8bd5a651b8fad002c0da2e4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 22 Aug 2015 18:23:31 +0200 Subject: nunchuk: Add a few test-cases. --- .../nunchuk/wii_nunchuk_init_reg_3xdata.output | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 decoder/test/nunchuk/wii_nunchuk_init_reg_3xdata.output (limited to 'decoder/test/nunchuk/wii_nunchuk_init_reg_3xdata.output') diff --git a/decoder/test/nunchuk/wii_nunchuk_init_reg_3xdata.output b/decoder/test/nunchuk/wii_nunchuk_init_reg_3xdata.output new file mode 100644 index 0000000..247cc28 --- /dev/null +++ b/decoder/test/nunchuk/wii_nunchuk_init_reg_3xdata.output @@ -0,0 +1,40 @@ +2143597-2143681 nunchuk: nunchuk-write: "Nunchuk write: 0x40" +2143867-2143949 nunchuk: nunchuk-write: "Nunchuk write: 0x00" +2143080-2144019 nunchuk: cmd-init: "Initialize Nunchuk" "Init Nunchuk" "Init" "I" +4287131-4287213 nunchuk: nunchuk-write: "Nunchuk write: 0x00" +4286609-4287286 nunchuk: warnings: "Init sequence was 1 bytes long (2 expected)" +6240397-6240479 nunchuk: reg-0x00: "Analog stick X position: 0x75" "SX: 0x75" +6240570-6240652 nunchuk: reg-0x01: "Analog stick Y position: 0x7F" "SY: 0x7F" +6240751-6240834 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x1DC" "AX[9:2]: 0x1DC" +6240927-6241009 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x13C" "AY[9:2]: 0x13C" +6241105-6241188 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x208" "AZ[9:2]: 0x208" +6241362-6241372 nunchuk: bit-bz: "Z: not pressed" "BZ: 1" +6241352-6241362 nunchuk: bit-bc: "C: not pressed" "BC: 1" +6241331-6241352 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x2" "AX[1:0]: 0x2" +6241311-6241331 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x3" "AY[1:0]: 0x3" +6241290-6241311 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x0" "AZ[1:0]: 0x0" +6240397-6241476 nunchuk: summary: "Analog stick: 117/127, accelerometer: 478/319/520, Z: not pressed, C: not pressed" +8450279-8450361 nunchuk: nunchuk-write: "Nunchuk write: 0x00" +8449754-8450427 nunchuk: warnings: "Init sequence was 1 bytes long (2 expected)" +9609986-9610068 nunchuk: reg-0x01: "Analog stick Y position: 0x75" "SY: 0x75" +9610159-9610243 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x1FC" "AX[9:2]: 0x1FC" +9610337-9610419 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x1D4" "AY[9:2]: 0x1D4" +9610527-9610611 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x110" "AZ[9:2]: 0x110" +9610777-9610787 nunchuk: bit-bz: "Z: pressed" "BZ: 0" +9610767-9610777 nunchuk: bit-bc: "C: not pressed" "BC: 1" +9610746-9610767 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x0" "AX[1:0]: 0x0" +9610726-9610746 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x0" "AY[1:0]: 0x0" +9610705-9610726 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x2" "AZ[1:0]: 0x2" +9610898-9610980 nunchuk: reg-0x01: "Analog stick Y position: 0x34" "SY: 0x34" +11651203-11651285 nunchuk: nunchuk-write: "Nunchuk write: 0x00" +11650678-11651354 nunchuk: warnings: "Init sequence was 1 bytes long (2 expected)" +12808919-12809002 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x1D4" "AX[9:2]: 0x1D4" +12809092-12809175 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x1FC" "AY[9:2]: 0x1FC" +12809267-12809349 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x1DC" "AZ[9:2]: 0x1DC" +12809521-12809531 nunchuk: bit-bz: "Z: not pressed" "BZ: 1" +12809511-12809521 nunchuk: bit-bc: "C: not pressed" "BC: 1" +12809490-12809511 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x0" "AX[1:0]: 0x0" +12809469-12809490 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x0" "AY[1:0]: 0x0" +12809449-12809469 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x1" "AZ[1:0]: 0x1" +12809626-12809710 nunchuk: reg-0x01: "Analog stick Y position: 0x83" "SY: 0x83" +12809812-12809894 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x174" "AX[9:2]: 0x174" -- cgit v1.2.3-54-g00ecf