{"action":"created","comment":{"url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/comments/24957595","id":24957595,"diff_hunk":"@@ -76,12 +76,45 @@ def turn_forward_left(self):\n             self.robot.left_motor.set(0)\n             self.robot.right_motor.set(val)\n             yield\n+\"\"\"\n+\n+\n+class TurnStrategy:\n+\n+    def __init__(self, robot):\n+        self.robot = robot\n+        self.robot.strategies['turn'] = self\n+\n+    def autonomousInit(self):\n+        self.auto = ParallelGenerators()\n+        self.auto.add(\"turn\", self.turn(90))\n+        self.auto.add(\"brake\", self.brake(), after=\"turn\")\n+        self.auto.add(\"wait\", self.wait(), after=\"brake\")\n+\n+    def autonomousPeriodic(self):\n+        self.auto.next()\n+\n+    def turn(self, angle):\n+        while abs(self.robot.gyro.getAngle()) % 360 < angle:","path":"tiredrive/strategies.py","position":33,"original_position":33,"commit_id":"13dc426e05bbf1483016c91ee51d86ab8b47ff56","original_commit_id":"13dc426e05bbf1483016c91ee51d86ab8b47ff56","user":{"login":"leviatronix","id":6005576,"avatar_url":"https://avatars.githubusercontent.com/u/6005576?v=3","gravatar_id":"","url":"https://api.github.com/users/leviatronix","html_url":"https://github.com/leviatronix","followers_url":"https://api.github.com/users/leviatronix/followers","following_url":"https://api.github.com/users/leviatronix/following{/other_user}","gists_url":"https://api.github.com/users/leviatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/leviatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leviatronix/subscriptions","organizations_url":"https://api.github.com/users/leviatronix/orgs","repos_url":"https://api.github.com/users/leviatronix/repos","events_url":"https://api.github.com/users/leviatronix/events{/privacy}","received_events_url":"https://api.github.com/users/leviatronix/received_events","type":"User","site_admin":false},"body":"yes. the code should be fixed so that it doesn't assume initial angle is 0","created_at":"2015-02-19T00:56:13Z","updated_at":"2015-02-19T00:56:13Z","html_url":"https://github.com/Retro3223/2015-recycle-rush/pull/5#discussion_r24957595","pull_request_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/comments/24957595"},"html":{"href":"https://github.com/Retro3223/2015-recycle-rush/pull/5#discussion_r24957595"},"pull_request":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5","id":29577502,"html_url":"https://github.com/Retro3223/2015-recycle-rush/pull/5","diff_url":"https://github.com/Retro3223/2015-recycle-rush/pull/5.diff","patch_url":"https://github.com/Retro3223/2015-recycle-rush/pull/5.patch","issue_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/5","number":5,"state":"open","locked":false,"title":"Last minute bug fixes and tuning autonomous values","user":{"login":"leviatronix","id":6005576,"avatar_url":"https://avatars.githubusercontent.com/u/6005576?v=3","gravatar_id":"","url":"https://api.github.com/users/leviatronix","html_url":"https://github.com/leviatronix","followers_url":"https://api.github.com/users/leviatronix/followers","following_url":"https://api.github.com/users/leviatronix/following{/other_user}","gists_url":"https://api.github.com/users/leviatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/leviatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leviatronix/subscriptions","organizations_url":"https://api.github.com/users/leviatronix/orgs","repos_url":"https://api.github.com/users/leviatronix/repos","events_url":"https://api.github.com/users/leviatronix/events{/privacy}","received_events_url":"https://api.github.com/users/leviatronix/received_events","type":"User","site_admin":false},"body":"while some of this code is not thoroughly tested or is known to be broken, i believe the quality of code is good or the problem can be easily fixed at next opportunity.","created_at":"2015-02-19T00:28:17Z","updated_at":"2015-02-19T00:56:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2544a0db1d3b36d30aefa3eda375513d4d4bf6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/5/comments","statuses_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/statuses/13dc426e05bbf1483016c91ee51d86ab8b47ff56","head":{"label":"leviatronix:master","ref":"master","sha":"13dc426e05bbf1483016c91ee51d86ab8b47ff56","user":{"login":"leviatronix","id":6005576,"avatar_url":"https://avatars.githubusercontent.com/u/6005576?v=3","gravatar_id":"","url":"https://api.github.com/users/leviatronix","html_url":"https://github.com/leviatronix","followers_url":"https://api.github.com/users/leviatronix/followers","following_url":"https://api.github.com/users/leviatronix/following{/other_user}","gists_url":"https://api.github.com/users/leviatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/leviatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leviatronix/subscriptions","organizations_url":"https://api.github.com/users/leviatronix/orgs","repos_url":"https://api.github.com/users/leviatronix/repos","events_url":"https://api.github.com/users/leviatronix/events{/privacy}","received_events_url":"https://api.github.com/users/leviatronix/received_events","type":"User","site_admin":false},"repo":{"id":30953829,"name":"2015-recycle-rush","full_name":"leviatronix/2015-recycle-rush","owner":{"login":"leviatronix","id":6005576,"avatar_url":"https://avatars.githubusercontent.com/u/6005576?v=3","gravatar_id":"","url":"https://api.github.com/users/leviatronix","html_url":"https://github.com/leviatronix","followers_url":"https://api.github.com/users/leviatronix/followers","following_url":"https://api.github.com/users/leviatronix/following{/other_user}","gists_url":"https://api.github.com/users/leviatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/leviatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leviatronix/subscriptions","organizations_url":"https://api.github.com/users/leviatronix/orgs","repos_url":"https://api.github.com/users/leviatronix/repos","events_url":"https://api.github.com/users/leviatronix/events{/privacy}","received_events_url":"https://api.github.com/users/leviatronix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leviatronix/2015-recycle-rush","description":"","fork":true,"url":"https://api.github.com/repos/leviatronix/2015-recycle-rush","forks_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/forks","keys_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/teams","hooks_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/hooks","issue_events_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/issues/events{/number}","events_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/events","assignees_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/assignees{/user}","branches_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/branches{/branch}","tags_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/tags","blobs_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/git/refs{/sha}","trees_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/statuses/{sha}","languages_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/languages","stargazers_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/stargazers","contributors_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/contributors","subscribers_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/subscribers","subscription_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/subscription","commits_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/commits{/sha}","git_commits_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/git/commits{/sha}","comments_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/comments{/number}","issue_comment_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/issues/comments/{number}","contents_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/contents/{+path}","compare_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/merges","archive_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/downloads","issues_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/issues{/number}","pulls_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/pulls{/number}","milestones_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/milestones{/number}","notifications_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/labels{/name}","releases_url":"https://api.github.com/repos/leviatronix/2015-recycle-rush/releases{/id}","created_at":"2015-02-18T05:44:59Z","updated_at":"2015-02-19T00:19:40Z","pushed_at":"2015-02-19T00:19:40Z","git_url":"git://github.com/leviatronix/2015-recycle-rush.git","ssh_url":"git@github.com:leviatronix/2015-recycle-rush.git","clone_url":"https://github.com/leviatronix/2015-recycle-rush.git","svn_url":"https://github.com/leviatronix/2015-recycle-rush","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"master"}},"base":{"label":"Retro3223:master","ref":"master","sha":"b180f3f96ac43d9c3a576201c9f528820cd932eb","user":{"login":"Retro3223","id":6465744,"avatar_url":"https://avatars.githubusercontent.com/u/6465744?v=3","gravatar_id":"","url":"https://api.github.com/users/Retro3223","html_url":"https://github.com/Retro3223","followers_url":"https://api.github.com/users/Retro3223/followers","following_url":"https://api.github.com/users/Retro3223/following{/other_user}","gists_url":"https://api.github.com/users/Retro3223/gists{/gist_id}","starred_url":"https://api.github.com/users/Retro3223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Retro3223/subscriptions","organizations_url":"https://api.github.com/users/Retro3223/orgs","repos_url":"https://api.github.com/users/Retro3223/repos","events_url":"https://api.github.com/users/Retro3223/events{/privacy}","received_events_url":"https://api.github.com/users/Retro3223/received_events","type":"Organization","site_admin":false},"repo":{"id":28008636,"name":"2015-recycle-rush","full_name":"Retro3223/2015-recycle-rush","owner":{"login":"Retro3223","id":6465744,"avatar_url":"https://avatars.githubusercontent.com/u/6465744?v=3","gravatar_id":"","url":"https://api.github.com/users/Retro3223","html_url":"https://github.com/Retro3223","followers_url":"https://api.github.com/users/Retro3223/followers","following_url":"https://api.github.com/users/Retro3223/following{/other_user}","gists_url":"https://api.github.com/users/Retro3223/gists{/gist_id}","starred_url":"https://api.github.com/users/Retro3223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Retro3223/subscriptions","organizations_url":"https://api.github.com/users/Retro3223/orgs","repos_url":"https://api.github.com/users/Retro3223/repos","events_url":"https://api.github.com/users/Retro3223/events{/privacy}","received_events_url":"https://api.github.com/users/Retro3223/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Retro3223/2015-recycle-rush","description":"","fork":false,"url":"https://api.github.com/repos/Retro3223/2015-recycle-rush","forks_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/forks","keys_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/teams","hooks_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/hooks","issue_events_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/events{/number}","events_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/events","assignees_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/assignees{/user}","branches_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/branches{/branch}","tags_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/tags","blobs_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/git/refs{/sha}","trees_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/statuses/{sha}","languages_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/languages","stargazers_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/stargazers","contributors_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/contributors","subscribers_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/subscribers","subscription_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/subscription","commits_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/commits{/sha}","git_commits_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/git/commits{/sha}","comments_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/comments{/number}","issue_comment_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/comments/{number}","contents_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/contents/{+path}","compare_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/merges","archive_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/downloads","issues_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues{/number}","pulls_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls{/number}","milestones_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/milestones{/number}","notifications_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/labels{/name}","releases_url":"https://api.github.com/repos/Retro3223/2015-recycle-rush/releases{/id}","created_at":"2014-12-14T21:25:46Z","updated_at":"2015-02-18T05:59:41Z","pushed_at":"2015-02-18T05:59:39Z","git_url":"git://github.com/Retro3223/2015-recycle-rush.git","ssh_url":"git@github.com:Retro3223/2015-recycle-rush.git","clone_url":"https://github.com/Retro3223/2015-recycle-rush.git","svn_url":"https://github.com/Retro3223/2015-recycle-rush","homepage":null,"size":536,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5"},"html":{"href":"https://github.com/Retro3223/2015-recycle-rush/pull/5"},"issue":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/5"},"comments":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Retro3223/2015-recycle-rush/statuses/13dc426e05bbf1483016c91ee51d86ab8b47ff56"}}}}