When EMG data received from DataPacket,
the code in the line 30 and 35 (something like "packet.getData()[i] & 0xFF;") converts the signed data to unsigned int.
I think passing the EMG data as byte array is better since jave has byte as only signed one. :smiley:
Hm i agree.
The specifications also mention the data coming in as int8_t, not uint8_t as the other sensor data.
My mistake. Thanks for pointing it out!
According to code, https://github.com/d4rken/myolib/blob/master/myolib/src/main/java/eu/darken/myolib/processor/emg/EmgProcessor.java
When EMG data received from DataPacket, the code in the line 30 and 35 (something like "packet.getData()[i] & 0xFF;") converts the signed data to unsigned int.
I think passing the EMG data as byte array is better since jave has byte as only signed one. :smiley: