{"action":"created","issue":{"url":"https://api.github.com/repos/diydrones/ardupilot/issues/2477","labels_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2477/labels{/name}","comments_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2477/comments","events_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2477/events","html_url":"https://github.com/diydrones/ardupilot/issues/2477","id":92026883,"number":2477,"title":"Copter: Compass is not working","user":{"login":"ahcorde","id":1933907,"avatar_url":"https://avatars.githubusercontent.com/u/1933907?v=3","gravatar_id":"","url":"https://api.github.com/users/ahcorde","html_url":"https://github.com/ahcorde","followers_url":"https://api.github.com/users/ahcorde/followers","following_url":"https://api.github.com/users/ahcorde/following{/other_user}","gists_url":"https://api.github.com/users/ahcorde/gists{/gist_id}","starred_url":"https://api.github.com/users/ahcorde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahcorde/subscriptions","organizations_url":"https://api.github.com/users/ahcorde/orgs","repos_url":"https://api.github.com/users/ahcorde/repos","events_url":"https://api.github.com/users/ahcorde/events{/privacy}","received_events_url":"https://api.github.com/users/ahcorde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-30T08:42:14Z","updated_at":"2015-06-30T19:15:57Z","closed_at":null,"body":"Hello @rmackay9 ,\r\n\r\ncould you please have a look at this issue with APM:Copter:\r\n\r\nI'm having troubles with the compass. I have connected an external compass via I2C to the PXF (GPS+Compass - HMC5843). When I connect APM:Copter with APM Planner the compass is not working but APM is receiving the values of the magnetometer as you can see in this graph\r\n\r\n![mag_issues_apm](https://cloud.githubusercontent.com/assets/1933907/8426972/2a69864e-1f14-11e5-9904-2347177f952b.jpg)\r\n\r\nBut the log file looks like this:\r\n\r\n![mag_issues_log](https://cloud.githubusercontent.com/assets/1933907/8426980/3cc2aaf0-1f14-11e5-919c-af68d5403dcd.png)\r\n\r\nThis is my list of parameters https://gist.github.com/ahcorde/2d5113aaa794f8f41cbf\r\n\r\nThe log file is here: https://github.com/ahcorde/logs/raw/master/pxf/copter/compass_issues/2.BIN\r\n\r\nI have checked APM:Rover and APM:Plane in both the compass works fine."},"comment":{"url":"https://api.github.com/repos/diydrones/ardupilot/issues/comments/117310645","html_url":"https://github.com/diydrones/ardupilot/issues/2477#issuecomment-117310645","issue_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2477","id":117310645,"user":{"login":"vmayoral","id":1375246,"avatar_url":"https://avatars.githubusercontent.com/u/1375246?v=3","gravatar_id":"","url":"https://api.github.com/users/vmayoral","html_url":"https://github.com/vmayoral","followers_url":"https://api.github.com/users/vmayoral/followers","following_url":"https://api.github.com/users/vmayoral/following{/other_user}","gists_url":"https://api.github.com/users/vmayoral/gists{/gist_id}","starred_url":"https://api.github.com/users/vmayoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmayoral/subscriptions","organizations_url":"https://api.github.com/users/vmayoral/orgs","repos_url":"https://api.github.com/users/vmayoral/repos","events_url":"https://api.github.com/users/vmayoral/events{/privacy}","received_events_url":"https://api.github.com/users/vmayoral/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T19:15:57Z","updated_at":"2015-06-30T19:15:57Z","body":"@lucasdemarchi, i'm assuming then your compass readings are fine. What hardware are you using? Have you tried any external compass besides the AK8963?\r\n\r\nI wonder if reducing the frequency of the sensor https://github.com/diydrones/ardupilot/blob/master/libraries/AP_HAL_Linux/SPIDriver.cpp#L33 would help for us. Will give it a try tomorrow."}}