{"action":"created","issue":{"url":"https://api.github.com/repos/iNavFlight/inav/issues/3447","repository_url":"https://api.github.com/repos/iNavFlight/inav","labels_url":"https://api.github.com/repos/iNavFlight/inav/issues/3447/labels{/name}","comments_url":"https://api.github.com/repos/iNavFlight/inav/issues/3447/comments","events_url":"https://api.github.com/repos/iNavFlight/inav/issues/3447/events","html_url":"https://github.com/iNavFlight/inav/pull/3447","id":335538171,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MjEzMDgw","number":3447,"title":"Fix orientation of the drivers for AK8963, AK8975 and MPU9250 MAGs","user":{"login":"fiam","id":41529,"node_id":"MDQ6VXNlcjQxNTI5","avatar_url":"https://avatars1.githubusercontent.com/u/41529?v=4","gravatar_id":"","url":"https://api.github.com/users/fiam","html_url":"https://github.com/fiam","followers_url":"https://api.github.com/users/fiam/followers","following_url":"https://api.github.com/users/fiam/following{/other_user}","gists_url":"https://api.github.com/users/fiam/gists{/gist_id}","starred_url":"https://api.github.com/users/fiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiam/subscriptions","organizations_url":"https://api.github.com/users/fiam/orgs","repos_url":"https://api.github.com/users/fiam/repos","events_url":"https://api.github.com/users/fiam/events{/privacy}","received_events_url":"https://api.github.com/users/fiam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/iNavFlight/inav/milestones/7","html_url":"https://github.com/iNavFlight/inav/milestone/7","labels_url":"https://api.github.com/repos/iNavFlight/inav/milestones/7/labels","id":1873502,"node_id":"MDk6TWlsZXN0b25lMTg3MzUwMg==","number":7,"title":"2.0","description":"","creator":{"login":"digitalentity","id":11059099,"node_id":"MDQ6VXNlcjExMDU5MDk5","avatar_url":"https://avatars2.githubusercontent.com/u/11059099?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalentity","html_url":"https://github.com/digitalentity","followers_url":"https://api.github.com/users/digitalentity/followers","following_url":"https://api.github.com/users/digitalentity/following{/other_user}","gists_url":"https://api.github.com/users/digitalentity/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalentity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalentity/subscriptions","organizations_url":"https://api.github.com/users/digitalentity/orgs","repos_url":"https://api.github.com/users/digitalentity/repos","events_url":"https://api.github.com/users/digitalentity/events{/privacy}","received_events_url":"https://api.github.com/users/digitalentity/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":360,"state":"open","created_at":"2016-07-09T10:42:56Z","updated_at":"2018-08-14T18:54:49Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2018-06-25T19:31:56Z","updated_at":"2018-08-15T13:49:42Z","closed_at":"2018-08-10T17:50:29Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/iNavFlight/inav/pulls/3447","html_url":"https://github.com/iNavFlight/inav/pull/3447","diff_url":"https://github.com/iNavFlight/inav/pull/3447.diff","patch_url":"https://github.com/iNavFlight/inav/pull/3447.patch"},"body":"Due to the unsual axis definition of the AKxxxx MAGs (the +Y axis\r\nis 90ºCW from the +X axis when +Z points up), the driver needs to\r\ninvert e.g. X and Z, then rotate rather than inverting all of\r\nX, Y and Z like it was doing.\r\n\r\nIt seems this bug was introduced in 3d024c6f3 back in November,\r\nbetween 1.8 and 1.9 and some targets were written or updated in the\r\nmeantime assuming the driver was correct and thus have incorrect mag\r\nalignments. I've tried to fix them all, but I don't have all these\r\nboards and while ones with the MP9250 are obvious (assumming the\r\nacc/gyro orientation is right, the mag orientation can be derived\r\nfrom it), some of them have AK8963 or AK8975 which might be\r\noriented differently than the acc/gyro.\r\n\r\nFixes #3438\r\nFixes #3434"},"comment":{"url":"https://api.github.com/repos/iNavFlight/inav/issues/comments/413203162","html_url":"https://github.com/iNavFlight/inav/pull/3447#issuecomment-413203162","issue_url":"https://api.github.com/repos/iNavFlight/inav/issues/3447","id":413203162,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzIwMzE2Mg==","user":{"login":"robertha64","id":39700425,"node_id":"MDQ6VXNlcjM5NzAwNDI1","avatar_url":"https://avatars0.githubusercontent.com/u/39700425?v=4","gravatar_id":"","url":"https://api.github.com/users/robertha64","html_url":"https://github.com/robertha64","followers_url":"https://api.github.com/users/robertha64/followers","following_url":"https://api.github.com/users/robertha64/following{/other_user}","gists_url":"https://api.github.com/users/robertha64/gists{/gist_id}","starred_url":"https://api.github.com/users/robertha64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertha64/subscriptions","organizations_url":"https://api.github.com/users/robertha64/orgs","repos_url":"https://api.github.com/users/robertha64/repos","events_url":"https://api.github.com/users/robertha64/events{/privacy}","received_events_url":"https://api.github.com/users/robertha64/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T13:49:42Z","updated_at":"2018-08-15T13:49:42Z","author_association":"NONE","body":"Here is the same part from 1.8 - define USE_MAG_AK8975 is what I believe made my board working.\r\n![omnibus mag 1_8](https://user-images.githubusercontent.com/39700425/44151412-0b89a9f4-a092-11e8-8860-b4c549098986.JPG)\r\n"}}
{"actor":{"display_login":"robertha64"}}