{"action":"closed","issue":{"url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1923","labels_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1923/labels{/name}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1923/comments","events_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1923/events","html_url":"https://github.com/TauLabs/TauLabs/issues/1923","id":105654179,"number":1923,"title":"Problem with axis reverse code in MPU6K driver","user":{"login":"AlessioMorale","id":1367650,"avatar_url":"https://avatars.githubusercontent.com/u/1367650?v=3","gravatar_id":"","url":"https://api.github.com/users/AlessioMorale","html_url":"https://github.com/AlessioMorale","followers_url":"https://api.github.com/users/AlessioMorale/followers","following_url":"https://api.github.com/users/AlessioMorale/following{/other_user}","gists_url":"https://api.github.com/users/AlessioMorale/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessioMorale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessioMorale/subscriptions","organizations_url":"https://api.github.com/users/AlessioMorale/orgs","repos_url":"https://api.github.com/users/AlessioMorale/repos","events_url":"https://api.github.com/users/AlessioMorale/events{/privacy}","received_events_url":"https://api.github.com/users/AlessioMorale/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TauLabs/TauLabs/labels/blocker","name":"blocker","color":"e10c02"},{"url":"https://api.github.com/repos/TauLabs/TauLabs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/TauLabs/TauLabs/labels/firmware","name":"firmware","color":"02e10c"},{"url":"https://api.github.com/repos/TauLabs/TauLabs/labels/PR-OPEN","name":"PR-OPEN","color":"3060c0"},{"url":"https://api.github.com/repos/TauLabs/TauLabs/labels/SAFETY","name":"SAFETY","color":"800000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/TauLabs/TauLabs/milestones/1","html_url":"https://github.com/TauLabs/TauLabs/milestones/Endomorphism%20release","labels_url":"https://api.github.com/repos/TauLabs/TauLabs/milestones/1/labels","id":1236348,"number":1,"title":"Endomorphism release","description":"https://github.com/TauLabs/TauLabs/wiki/Endomorphism-(September)-release","creator":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":79,"state":"open","created_at":"2015-08-01T19:01:06Z","updated_at":"2015-09-12T12:57:01Z","due_on":"2015-09-26T07:00:00Z","closed_at":null},"comments":8,"created_at":"2015-09-09T18:20:37Z","updated_at":"2015-09-12T12:57:01Z","closed_at":"2015-09-12T12:57:01Z","body":"There is a problem within the code that invert mpu6000 axis to adapt them to board convention.\r\nit is done as \r\naxis = - (int16_t)original value;\r\nthis create a problems as INT16_MIN != - INT16_MAX\r\n`(int16_t)0x8000 = -32767`\r\n\r\n`(int16_t)0x8001 = -32768`\r\nwhen inverted they turns into:\r\n` - (int16_t)0x8000 =  32767`\r\n\r\n` - (int16_t)0x8001 = -32768`"}}