{"action":"closed","number":408,"pull_request":{"url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408","id":145828476,"html_url":"https://github.com/rhempel/ev3dev-lang-python/pull/408","diff_url":"https://github.com/rhempel/ev3dev-lang-python/pull/408.diff","patch_url":"https://github.com/rhempel/ev3dev-lang-python/pull/408.patch","issue_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/408","number":408,"state":"closed","locked":false,"title":"Add a wait_until_angle_changed_by() method to GyroSensor","user":{"login":"gregcowell","id":22849618,"avatar_url":"https://avatars3.githubusercontent.com/u/22849618?v=4","gravatar_id":"","url":"https://api.github.com/users/gregcowell","html_url":"https://github.com/gregcowell","followers_url":"https://api.github.com/users/gregcowell/followers","following_url":"https://api.github.com/users/gregcowell/following{/other_user}","gists_url":"https://api.github.com/users/gregcowell/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcowell/subscriptions","organizations_url":"https://api.github.com/users/gregcowell/orgs","repos_url":"https://api.github.com/users/gregcowell/repos","events_url":"https://api.github.com/users/gregcowell/events{/privacy}","received_events_url":"https://api.github.com/users/gregcowell/received_events","type":"User","site_admin":false},"body":"This adds a method to the GyroSensor class that simplifies the required code when using the gyro sensor to make accurate turns. Here is a short example:\r\n```\r\nmotor_pair = MoveSteering(OUTPUT_B, OUTPUT_C)\r\ngyro = GyroSensor()\r\n\r\n# Spin robot to the left\r\nmotor_pair.on(steering=-100, speed_pct=5)\r\n\r\n# Wait until angle changed by 90 degrees\r\ngyro.wait_until_angle_changed_by(90)\r\n\r\n# Stop motors\r\nmotor_pair.off()\r\n```\r\nHave discussed this with @dwalton76.","created_at":"2017-10-10T23:57:27Z","updated_at":"2017-10-11T22:04:36Z","closed_at":"2017-10-11T22:04:36Z","merged_at":"2017-10-11T22:04:36Z","merge_commit_sha":"081ea218c0ee6c6f943ccebc0009c1c9c271c6ef","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408/commits","review_comments_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408/comments","review_comment_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/408/comments","statuses_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/statuses/3901b074ddddd4ab77fd81b7b791f27e488cfa1d","head":{"label":"gregcowell:gyrowait","ref":"gyrowait","sha":"3901b074ddddd4ab77fd81b7b791f27e488cfa1d","user":{"login":"gregcowell","id":22849618,"avatar_url":"https://avatars3.githubusercontent.com/u/22849618?v=4","gravatar_id":"","url":"https://api.github.com/users/gregcowell","html_url":"https://github.com/gregcowell","followers_url":"https://api.github.com/users/gregcowell/followers","following_url":"https://api.github.com/users/gregcowell/following{/other_user}","gists_url":"https://api.github.com/users/gregcowell/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcowell/subscriptions","organizations_url":"https://api.github.com/users/gregcowell/orgs","repos_url":"https://api.github.com/users/gregcowell/repos","events_url":"https://api.github.com/users/gregcowell/events{/privacy}","received_events_url":"https://api.github.com/users/gregcowell/received_events","type":"User","site_admin":false},"repo":{"id":105724182,"name":"ev3dev-lang-python","full_name":"gregcowell/ev3dev-lang-python","owner":{"login":"gregcowell","id":22849618,"avatar_url":"https://avatars3.githubusercontent.com/u/22849618?v=4","gravatar_id":"","url":"https://api.github.com/users/gregcowell","html_url":"https://github.com/gregcowell","followers_url":"https://api.github.com/users/gregcowell/followers","following_url":"https://api.github.com/users/gregcowell/following{/other_user}","gists_url":"https://api.github.com/users/gregcowell/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcowell/subscriptions","organizations_url":"https://api.github.com/users/gregcowell/orgs","repos_url":"https://api.github.com/users/gregcowell/repos","events_url":"https://api.github.com/users/gregcowell/events{/privacy}","received_events_url":"https://api.github.com/users/gregcowell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gregcowell/ev3dev-lang-python","description":"Pure python bindings for ev3dev","fork":true,"url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python","forks_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/forks","keys_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/teams","hooks_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/hooks","issue_events_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/issues/events{/number}","events_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/events","assignees_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/assignees{/user}","branches_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/branches{/branch}","tags_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/tags","blobs_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/statuses/{sha}","languages_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/languages","stargazers_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/stargazers","contributors_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/contributors","subscribers_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/subscribers","subscription_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/subscription","commits_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/contents/{+path}","compare_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/merges","archive_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/downloads","issues_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/issues{/number}","pulls_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/pulls{/number}","milestones_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/milestones{/number}","notifications_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/labels{/name}","releases_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/releases{/id}","deployments_url":"https://api.github.com/repos/gregcowell/ev3dev-lang-python/deployments","created_at":"2017-10-04T02:20:18Z","updated_at":"2017-10-04T02:20:19Z","pushed_at":"2017-10-11T20:58:56Z","git_url":"git://github.com/gregcowell/ev3dev-lang-python.git","ssh_url":"git@github.com:gregcowell/ev3dev-lang-python.git","clone_url":"https://github.com/gregcowell/ev3dev-lang-python.git","svn_url":"https://github.com/gregcowell/ev3dev-lang-python","homepage":null,"size":9573,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"rhempel:develop","ref":"develop","sha":"d505bb855ba632e008512737aaeb31c60807ae34","user":{"login":"rhempel","id":5571620,"avatar_url":"https://avatars3.githubusercontent.com/u/5571620?v=4","gravatar_id":"","url":"https://api.github.com/users/rhempel","html_url":"https://github.com/rhempel","followers_url":"https://api.github.com/users/rhempel/followers","following_url":"https://api.github.com/users/rhempel/following{/other_user}","gists_url":"https://api.github.com/users/rhempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rhempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhempel/subscriptions","organizations_url":"https://api.github.com/users/rhempel/orgs","repos_url":"https://api.github.com/users/rhempel/repos","events_url":"https://api.github.com/users/rhempel/events{/privacy}","received_events_url":"https://api.github.com/users/rhempel/received_events","type":"User","site_admin":false},"repo":{"id":43603757,"name":"ev3dev-lang-python","full_name":"rhempel/ev3dev-lang-python","owner":{"login":"rhempel","id":5571620,"avatar_url":"https://avatars3.githubusercontent.com/u/5571620?v=4","gravatar_id":"","url":"https://api.github.com/users/rhempel","html_url":"https://github.com/rhempel","followers_url":"https://api.github.com/users/rhempel/followers","following_url":"https://api.github.com/users/rhempel/following{/other_user}","gists_url":"https://api.github.com/users/rhempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rhempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhempel/subscriptions","organizations_url":"https://api.github.com/users/rhempel/orgs","repos_url":"https://api.github.com/users/rhempel/repos","events_url":"https://api.github.com/users/rhempel/events{/privacy}","received_events_url":"https://api.github.com/users/rhempel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhempel/ev3dev-lang-python","description":"Pure python bindings for ev3dev","fork":false,"url":"https://api.github.com/repos/rhempel/ev3dev-lang-python","forks_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/forks","keys_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/teams","hooks_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/hooks","issue_events_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/events{/number}","events_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/events","assignees_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/assignees{/user}","branches_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/branches{/branch}","tags_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/tags","blobs_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/statuses/{sha}","languages_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/languages","stargazers_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/stargazers","contributors_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/contributors","subscribers_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/subscribers","subscription_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/subscription","commits_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/contents/{+path}","compare_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/merges","archive_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/downloads","issues_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues{/number}","pulls_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls{/number}","milestones_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/milestones{/number}","notifications_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/labels{/name}","releases_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/releases{/id}","deployments_url":"https://api.github.com/repos/rhempel/ev3dev-lang-python/deployments","created_at":"2015-10-03T15:32:20Z","updated_at":"2017-10-10T12:10:52Z","pushed_at":"2017-10-11T22:04:36Z","git_url":"git://github.com/rhempel/ev3dev-lang-python.git","ssh_url":"git@github.com:rhempel/ev3dev-lang-python.git","clone_url":"https://github.com/rhempel/ev3dev-lang-python.git","svn_url":"https://github.com/rhempel/ev3dev-lang-python","homepage":null,"size":9604,"stargazers_count":117,"watchers_count":117,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":24,"forks":55,"open_issues":24,"watchers":117,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408"},"html":{"href":"https://github.com/rhempel/ev3dev-lang-python/pull/408"},"issue":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/408"},"comments":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/issues/408/comments"},"review_comments":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408/comments"},"review_comment":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/pulls/408/commits"},"statuses":{"href":"https://api.github.com/repos/rhempel/ev3dev-lang-python/statuses/3901b074ddddd4ab77fd81b7b791f27e488cfa1d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"dwalton76","id":468309,"avatar_url":"https://avatars2.githubusercontent.com/u/468309?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalton76","html_url":"https://github.com/dwalton76","followers_url":"https://api.github.com/users/dwalton76/followers","following_url":"https://api.github.com/users/dwalton76/following{/other_user}","gists_url":"https://api.github.com/users/dwalton76/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalton76/subscriptions","organizations_url":"https://api.github.com/users/dwalton76/orgs","repos_url":"https://api.github.com/users/dwalton76/repos","events_url":"https://api.github.com/users/dwalton76/events{/privacy}","received_events_url":"https://api.github.com/users/dwalton76/received_events","type":"User","site_admin":false},"comments":0,"review_comments":11,"maintainer_can_modify":false,"commits":1,"additions":11,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"dwalton76"}}