{"action":"created","issue":{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/116","labels_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/116/comments","events_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/116/events","html_url":"https://github.com/afconsult-south/dragonfly-fcb/issues/116","id":106019166,"number":116,"title":"Calculate attitude with magnetometer","user":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/labels/sensors","name":"sensors","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/milestones/6","html_url":"https://github.com/afconsult-south/dragonfly-fcb/milestones/Sensors","labels_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/milestones/6/labels","id":1094045,"number":6,"title":"Sensors","description":"- Connect sensors phyiscal interface (I2C, SPI etc)\r\n- Read sensors\r\n- Sample sensors in FCB program\r\n- Configure sensors (i.e. to trigger interrupts when data ready, read using DMA, filter sensor data setup)","creator":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-05-03T13:55:20Z","updated_at":"2015-09-11T14:13:29Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-11T14:13:29Z","updated_at":"2015-10-07T17:44:03Z","closed_at":null,"body":"Since the earh magnetic field is static (unlike acceleration) and therefore unaffected by the quadcopter movement, it would be nice if we could use this to sense attitude (and use it as correction for roll/pitch/yaw Kalman filters).\r\n\r\nFigure out a way to calculate this. Calculate for the magnetic field vector declination and inclination for Malmö, Sweden."},"comment":{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/comments/146274338","html_url":"https://github.com/afconsult-south/dragonfly-fcb/issues/116#issuecomment-146274338","issue_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/116","id":146274338,"user":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T17:44:02Z","updated_at":"2015-10-07T17:44:02Z","body":"This still needs testing. Try printing values and see how good they are.\r\n\r\nPerhaps this will not be used, or maybe only for yaw.\r\n\r\nOr perhaps one could fuse data from magnetometer attitude with accelerometer."}}