{"action":"opened","issue":{"url":"https://api.github.com/repos/d4rken/myolib/issues/4","labels_url":"https://api.github.com/repos/d4rken/myolib/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/d4rken/myolib/issues/4/comments","events_url":"https://api.github.com/repos/d4rken/myolib/issues/4/events","html_url":"https://github.com/d4rken/myolib/issues/4","id":104830425,"number":4,"title":"emgdata convertion from byte to integer","user":{"login":"zerokitae","id":1897288,"avatar_url":"https://avatars.githubusercontent.com/u/1897288?v=3","gravatar_id":"","url":"https://api.github.com/users/zerokitae","html_url":"https://github.com/zerokitae","followers_url":"https://api.github.com/users/zerokitae/followers","following_url":"https://api.github.com/users/zerokitae/following{/other_user}","gists_url":"https://api.github.com/users/zerokitae/gists{/gist_id}","starred_url":"https://api.github.com/users/zerokitae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerokitae/subscriptions","organizations_url":"https://api.github.com/users/zerokitae/orgs","repos_url":"https://api.github.com/users/zerokitae/repos","events_url":"https://api.github.com/users/zerokitae/events{/privacy}","received_events_url":"https://api.github.com/users/zerokitae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T04:57:47Z","updated_at":"2015-09-04T04:57:47Z","closed_at":null,"body":"According to code, https://github.com/d4rken/myolib/blob/master/myolib/src/main/java/eu/darken/myolib/processor/emg/EmgProcessor.java\r\n\r\nWhen EMG data received from DataPacket, \r\nthe code in the line 30 and 35 (something like \"packet.getData()[i] & 0xFF;\") converts the signed data to unsigned int.\r\n\r\nI think passing the EMG data as byte array is better since jave has byte as only signed one. :smiley:"}}