{"action":"closed","number":134,"pull_request":{"url":"https://api.github.com/repos/PX4/ecl/pulls/134","id":70295355,"html_url":"https://github.com/PX4/ecl/pull/134","diff_url":"https://github.com/PX4/ecl/pull/134.diff","patch_url":"https://github.com/PX4/ecl/pull/134.patch","issue_url":"https://api.github.com/repos/PX4/ecl/issues/134","number":134,"state":"closed","locked":false,"title":"EKF: Improved tilt alignment control","user":{"login":"priseborough","id":3596952,"avatar_url":"https://avatars.githubusercontent.com/u/3596952?v=3","gravatar_id":"","url":"https://api.github.com/users/priseborough","html_url":"https://github.com/priseborough","followers_url":"https://api.github.com/users/priseborough/followers","following_url":"https://api.github.com/users/priseborough/following{/other_user}","gists_url":"https://api.github.com/users/priseborough/gists{/gist_id}","starred_url":"https://api.github.com/users/priseborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priseborough/subscriptions","organizations_url":"https://api.github.com/users/priseborough/orgs","repos_url":"https://api.github.com/users/priseborough/repos","events_url":"https://api.github.com/users/priseborough/events{/privacy}","received_events_url":"https://api.github.com/users/priseborough/received_events","type":"User","site_admin":false},"body":"Improves control over the initial alignment process. Used in conjunction with https://github.com/PX4/Firmware/pull/4554.\r\n\r\nAddresses #128 if combined with following tuning parameter changes to take advantage of 'ideal' SITL environment:\r\n\r\nEKF2_GBIAS_INIT = 0.01\r\nEKF2_ANGERR_INIT = 0.01\r\n\r\nThe quaternion covariances are converted to rotation vector variances so that the tilt uncertainty can be isolated from the yaw uncertainty when checking filter convergence.\r\nThe initial IMU bias uncertainty can be tuned to allow faster alignment for boards with accurate sensors (eg SITL)\r\nThe initial angular alignment uncertainty can be tuned to allow faster alignment for applications where the vehicle is not subject to accelerations on startup.\r\nThe initial quaternion state co-variances are set from the tilt uncertainty using the correct transformation from rotation vector to quaternions.\r\n\r\nHas been bench tested with a range of  initial orientations.","created_at":"2016-05-17T03:34:33Z","updated_at":"2016-05-18T02:34:22Z","closed_at":"2016-05-18T02:34:22Z","merged_at":"2016-05-18T02:34:22Z","merge_commit_sha":"50ba26a43414be21a9f2ca0616663a3c94ad37ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PX4/ecl/pulls/134/commits","review_comments_url":"https://api.github.com/repos/PX4/ecl/pulls/134/comments","review_comment_url":"https://api.github.com/repos/PX4/ecl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PX4/ecl/issues/134/comments","statuses_url":"https://api.github.com/repos/PX4/ecl/statuses/e4b2e9c93dfad03aec14e974991a309d732ba1ee","head":{"label":"PX4:pr-ekf2Alignment","ref":"pr-ekf2Alignment","sha":"e4b2e9c93dfad03aec14e974991a309d732ba1ee","user":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"repo":{"id":44974513,"name":"ecl","full_name":"PX4/ecl","owner":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PX4/ecl","description":"Estimation & Control Library for Guidance, Navigation and Control Applications","fork":false,"url":"https://api.github.com/repos/PX4/ecl","forks_url":"https://api.github.com/repos/PX4/ecl/forks","keys_url":"https://api.github.com/repos/PX4/ecl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PX4/ecl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PX4/ecl/teams","hooks_url":"https://api.github.com/repos/PX4/ecl/hooks","issue_events_url":"https://api.github.com/repos/PX4/ecl/issues/events{/number}","events_url":"https://api.github.com/repos/PX4/ecl/events","assignees_url":"https://api.github.com/repos/PX4/ecl/assignees{/user}","branches_url":"https://api.github.com/repos/PX4/ecl/branches{/branch}","tags_url":"https://api.github.com/repos/PX4/ecl/tags","blobs_url":"https://api.github.com/repos/PX4/ecl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PX4/ecl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PX4/ecl/git/refs{/sha}","trees_url":"https://api.github.com/repos/PX4/ecl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PX4/ecl/statuses/{sha}","languages_url":"https://api.github.com/repos/PX4/ecl/languages","stargazers_url":"https://api.github.com/repos/PX4/ecl/stargazers","contributors_url":"https://api.github.com/repos/PX4/ecl/contributors","subscribers_url":"https://api.github.com/repos/PX4/ecl/subscribers","subscription_url":"https://api.github.com/repos/PX4/ecl/subscription","commits_url":"https://api.github.com/repos/PX4/ecl/commits{/sha}","git_commits_url":"https://api.github.com/repos/PX4/ecl/git/commits{/sha}","comments_url":"https://api.github.com/repos/PX4/ecl/comments{/number}","issue_comment_url":"https://api.github.com/repos/PX4/ecl/issues/comments{/number}","contents_url":"https://api.github.com/repos/PX4/ecl/contents/{+path}","compare_url":"https://api.github.com/repos/PX4/ecl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PX4/ecl/merges","archive_url":"https://api.github.com/repos/PX4/ecl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PX4/ecl/downloads","issues_url":"https://api.github.com/repos/PX4/ecl/issues{/number}","pulls_url":"https://api.github.com/repos/PX4/ecl/pulls{/number}","milestones_url":"https://api.github.com/repos/PX4/ecl/milestones{/number}","notifications_url":"https://api.github.com/repos/PX4/ecl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PX4/ecl/labels{/name}","releases_url":"https://api.github.com/repos/PX4/ecl/releases{/id}","deployments_url":"https://api.github.com/repos/PX4/ecl/deployments","created_at":"2015-10-26T14:41:25Z","updated_at":"2016-05-14T01:40:13Z","pushed_at":"2016-05-18T02:34:22Z","git_url":"git://github.com/PX4/ecl.git","ssh_url":"git@github.com:PX4/ecl.git","clone_url":"https://github.com/PX4/ecl.git","svn_url":"https://github.com/PX4/ecl","homepage":"http://dev.px4.io","size":20676,"stargazers_count":12,"watchers_count":12,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":13,"forks":25,"open_issues":13,"watchers":12,"default_branch":"master"}},"base":{"label":"PX4:master","ref":"master","sha":"d5046b078ee1324860feeb3f4e08588f4bb1deb0","user":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"repo":{"id":44974513,"name":"ecl","full_name":"PX4/ecl","owner":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PX4/ecl","description":"Estimation & Control Library for Guidance, Navigation and Control Applications","fork":false,"url":"https://api.github.com/repos/PX4/ecl","forks_url":"https://api.github.com/repos/PX4/ecl/forks","keys_url":"https://api.github.com/repos/PX4/ecl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PX4/ecl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PX4/ecl/teams","hooks_url":"https://api.github.com/repos/PX4/ecl/hooks","issue_events_url":"https://api.github.com/repos/PX4/ecl/issues/events{/number}","events_url":"https://api.github.com/repos/PX4/ecl/events","assignees_url":"https://api.github.com/repos/PX4/ecl/assignees{/user}","branches_url":"https://api.github.com/repos/PX4/ecl/branches{/branch}","tags_url":"https://api.github.com/repos/PX4/ecl/tags","blobs_url":"https://api.github.com/repos/PX4/ecl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PX4/ecl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PX4/ecl/git/refs{/sha}","trees_url":"https://api.github.com/repos/PX4/ecl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PX4/ecl/statuses/{sha}","languages_url":"https://api.github.com/repos/PX4/ecl/languages","stargazers_url":"https://api.github.com/repos/PX4/ecl/stargazers","contributors_url":"https://api.github.com/repos/PX4/ecl/contributors","subscribers_url":"https://api.github.com/repos/PX4/ecl/subscribers","subscription_url":"https://api.github.com/repos/PX4/ecl/subscription","commits_url":"https://api.github.com/repos/PX4/ecl/commits{/sha}","git_commits_url":"https://api.github.com/repos/PX4/ecl/git/commits{/sha}","comments_url":"https://api.github.com/repos/PX4/ecl/comments{/number}","issue_comment_url":"https://api.github.com/repos/PX4/ecl/issues/comments{/number}","contents_url":"https://api.github.com/repos/PX4/ecl/contents/{+path}","compare_url":"https://api.github.com/repos/PX4/ecl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PX4/ecl/merges","archive_url":"https://api.github.com/repos/PX4/ecl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PX4/ecl/downloads","issues_url":"https://api.github.com/repos/PX4/ecl/issues{/number}","pulls_url":"https://api.github.com/repos/PX4/ecl/pulls{/number}","milestones_url":"https://api.github.com/repos/PX4/ecl/milestones{/number}","notifications_url":"https://api.github.com/repos/PX4/ecl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PX4/ecl/labels{/name}","releases_url":"https://api.github.com/repos/PX4/ecl/releases{/id}","deployments_url":"https://api.github.com/repos/PX4/ecl/deployments","created_at":"2015-10-26T14:41:25Z","updated_at":"2016-05-14T01:40:13Z","pushed_at":"2016-05-18T02:34:22Z","git_url":"git://github.com/PX4/ecl.git","ssh_url":"git@github.com:PX4/ecl.git","clone_url":"https://github.com/PX4/ecl.git","svn_url":"https://github.com/PX4/ecl","homepage":"http://dev.px4.io","size":20676,"stargazers_count":12,"watchers_count":12,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":13,"forks":25,"open_issues":13,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PX4/ecl/pulls/134"},"html":{"href":"https://github.com/PX4/ecl/pull/134"},"issue":{"href":"https://api.github.com/repos/PX4/ecl/issues/134"},"comments":{"href":"https://api.github.com/repos/PX4/ecl/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/PX4/ecl/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/PX4/ecl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PX4/ecl/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/PX4/ecl/statuses/e4b2e9c93dfad03aec14e974991a309d732ba1ee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"priseborough","id":3596952,"avatar_url":"https://avatars.githubusercontent.com/u/3596952?v=3","gravatar_id":"","url":"https://api.github.com/users/priseborough","html_url":"https://github.com/priseborough","followers_url":"https://api.github.com/users/priseborough/followers","following_url":"https://api.github.com/users/priseborough/following{/other_user}","gists_url":"https://api.github.com/users/priseborough/gists{/gist_id}","starred_url":"https://api.github.com/users/priseborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priseborough/subscriptions","organizations_url":"https://api.github.com/users/priseborough/orgs","repos_url":"https://api.github.com/users/priseborough/repos","events_url":"https://api.github.com/users/priseborough/events{/privacy}","received_events_url":"https://api.github.com/users/priseborough/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":6,"additions":423,"deletions":30,"changed_files":8}}