Ramir0 / Myo4Linux

Direct bluetooth connection between Linux and Myo armband using Bluegiga BGAPI/BGLib
48 stars 28 forks source link

Fixed print_pose sample #6

Closed AVGP closed 9 years ago

AVGP commented 9 years ago

The poses were not printed as the enum values weren't recognised

love12734 commented 9 years ago

Start Myo for Linux Find Myo device... Connected. Firmware version: 1.4.1670.2 Device name: Myo Finished. Traceback (most recent call last): File "test_myo.py", line 29, in main() File "test_myo.py", line 18, in main myo.run() File "../lib/myo.py", line 50, in run self.ble.receive_packet(timeout) File "../lib/ble.py", line 23, in receive_packet self.notify_event(packet) File "../lib/ble.py", line 49, in notify_event listener.handle_data(p) File "../lib/device_listener.py", line 12, in handle_data data_type, value, address = unpack('3B', payload) File "../lib/utilities.py", line 7, in unpack return struct.unpack('<' + fmt, *args) struct.error: unpack requires a string argument of length 3

I have a problem. same problem T_T

AVGP commented 9 years ago

Hmm, odd. I can't reproduce this here

AVGP commented 9 years ago

@Alushi That sounds like a good idea for a pull request!