You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
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. 😃
The text was updated successfully, but these errors were encountered:
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. 😃
The text was updated successfully, but these errors were encountered: