{"action":"created","comment":{"url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/comments/170437730","pull_request_review_id":99128387,"id":170437730,"diff_hunk":"@@ -53,35 +59,51 @@ def robotInit(self):\n \n         # @TODO: Find actual non-placeholder values for the channel IDs\n         self.wings = Wings(\n-            wpilib.DoubleSolenoid(0, 1),\n             wpilib.DoubleSolenoid(2, 3),\n+            wpilib.DoubleSolenoid(4, 5),\n         )\n \n+        self.brake = wpilib.DoubleSolenoid(0, 1)\n+\n         self.driver = wpilib.XboxController(0)\n         self.operator = wpilib.XboxController(1)\n \n         self.auto_exec = iter([])\n \n         self.gyro = wpilib.ADXRS450_Gyro()\n \n-        self.vision_socket = network.VisionSocket()\n+        if Robot.isReal():\n+            self.vision_socket = network.VisionSocket()\n+            self.switch_configuration = wpilib.DriverStation.getInstance().getGameSpecificMessage()\n+        else:\n+            self.vision_socket = network.MockSocket()\n+            self.switch_configuration = \"Sim Mode\"\n+\n         self.vision_socket.start()\n         self.timer = 0\n \n     def robotPeriodic(self):\n         if self.timer % 100 == 0:\n             print(self.vision_socket.get_angle(1.0))\n+            print(\"ID: {}\".format(self.vision_socket.get_id()))\n             print(\"is bound: {}\".format(self.vision_socket.is_bound()))\n         self.timer += 1\n \n     def teleopInit(self):\n         print(\"Teleop Init Begin!\")\n+        self.switch_configuration = wpilib.DriverStation.getInstance().getGameSpecificMessage()","path":"robot.py","position":73,"original_position":73,"commit_id":"1f85d1dbae114d249dfeb8e7e8079c35c7d76370","original_commit_id":"1f85d1dbae114d249dfeb8e7e8079c35c7d76370","user":{"login":"a2aaron","id":15718048,"avatar_url":"https://avatars1.githubusercontent.com/u/15718048?v=4","gravatar_id":"","url":"https://api.github.com/users/a2aaron","html_url":"https://github.com/a2aaron","followers_url":"https://api.github.com/users/a2aaron/followers","following_url":"https://api.github.com/users/a2aaron/following{/other_user}","gists_url":"https://api.github.com/users/a2aaron/gists{/gist_id}","starred_url":"https://api.github.com/users/a2aaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2aaron/subscriptions","organizations_url":"https://api.github.com/users/a2aaron/orgs","repos_url":"https://api.github.com/users/a2aaron/repos","events_url":"https://api.github.com/users/a2aaron/events{/privacy}","received_events_url":"https://api.github.com/users/a2aaron/received_events","type":"User","site_admin":false},"body":"Oh, hm... `Robot.isReal()` is false when in sim mode, so we'd end up breaking the simulator if we try to use it.","created_at":"2018-02-25T00:50:37Z","updated_at":"2018-02-25T00:50:37Z","html_url":"https://github.com/FRC1076/2018-Competition/pull/30#discussion_r170437730","pull_request_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/comments/170437730"},"html":{"href":"https://github.com/FRC1076/2018-Competition/pull/30#discussion_r170437730"},"pull_request":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30"}},"in_reply_to_id":170432684},"pull_request":{"url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30","id":171152030,"html_url":"https://github.com/FRC1076/2018-Competition/pull/30","diff_url":"https://github.com/FRC1076/2018-Competition/pull/30.diff","patch_url":"https://github.com/FRC1076/2018-Competition/pull/30.patch","issue_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/30","number":30,"state":"open","locked":false,"title":"Make templates for autonomous, add PID control to VisionAuto, and track IDs of Vision packets","user":{"login":"a2aaron","id":15718048,"avatar_url":"https://avatars1.githubusercontent.com/u/15718048?v=4","gravatar_id":"","url":"https://api.github.com/users/a2aaron","html_url":"https://github.com/a2aaron","followers_url":"https://api.github.com/users/a2aaron/followers","following_url":"https://api.github.com/users/a2aaron/following{/other_user}","gists_url":"https://api.github.com/users/a2aaron/gists{/gist_id}","starred_url":"https://api.github.com/users/a2aaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2aaron/subscriptions","organizations_url":"https://api.github.com/users/a2aaron/orgs","repos_url":"https://api.github.com/users/a2aaron/repos","events_url":"https://api.github.com/users/a2aaron/events{/privacy}","received_events_url":"https://api.github.com/users/a2aaron/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-24T01:22:31Z","updated_at":"2018-02-25T00:50:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2638ce36ec0cfbaf0b5249bd31e6963478bc758","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30/commits","review_comments_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30/comments","review_comment_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/30/comments","statuses_url":"https://api.github.com/repos/FRC1076/2018-Competition/statuses/1f85d1dbae114d249dfeb8e7e8079c35c7d76370","head":{"label":"FRC1076:auton_templates","ref":"auton_templates","sha":"1f85d1dbae114d249dfeb8e7e8079c35c7d76370","user":{"login":"FRC1076","id":9311430,"avatar_url":"https://avatars1.githubusercontent.com/u/9311430?v=4","gravatar_id":"","url":"https://api.github.com/users/FRC1076","html_url":"https://github.com/FRC1076","followers_url":"https://api.github.com/users/FRC1076/followers","following_url":"https://api.github.com/users/FRC1076/following{/other_user}","gists_url":"https://api.github.com/users/FRC1076/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC1076/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC1076/subscriptions","organizations_url":"https://api.github.com/users/FRC1076/orgs","repos_url":"https://api.github.com/users/FRC1076/repos","events_url":"https://api.github.com/users/FRC1076/events{/privacy}","received_events_url":"https://api.github.com/users/FRC1076/received_events","type":"Organization","site_admin":false},"repo":{"id":117180775,"name":"2018-Competition","full_name":"FRC1076/2018-Competition","owner":{"login":"FRC1076","id":9311430,"avatar_url":"https://avatars1.githubusercontent.com/u/9311430?v=4","gravatar_id":"","url":"https://api.github.com/users/FRC1076","html_url":"https://github.com/FRC1076","followers_url":"https://api.github.com/users/FRC1076/followers","following_url":"https://api.github.com/users/FRC1076/following{/other_user}","gists_url":"https://api.github.com/users/FRC1076/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC1076/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC1076/subscriptions","organizations_url":"https://api.github.com/users/FRC1076/orgs","repos_url":"https://api.github.com/users/FRC1076/repos","events_url":"https://api.github.com/users/FRC1076/events{/privacy}","received_events_url":"https://api.github.com/users/FRC1076/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRC1076/2018-Competition","description":null,"fork":false,"url":"https://api.github.com/repos/FRC1076/2018-Competition","forks_url":"https://api.github.com/repos/FRC1076/2018-Competition/forks","keys_url":"https://api.github.com/repos/FRC1076/2018-Competition/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRC1076/2018-Competition/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRC1076/2018-Competition/teams","hooks_url":"https://api.github.com/repos/FRC1076/2018-Competition/hooks","issue_events_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/events{/number}","events_url":"https://api.github.com/repos/FRC1076/2018-Competition/events","assignees_url":"https://api.github.com/repos/FRC1076/2018-Competition/assignees{/user}","branches_url":"https://api.github.com/repos/FRC1076/2018-Competition/branches{/branch}","tags_url":"https://api.github.com/repos/FRC1076/2018-Competition/tags","blobs_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRC1076/2018-Competition/statuses/{sha}","languages_url":"https://api.github.com/repos/FRC1076/2018-Competition/languages","stargazers_url":"https://api.github.com/repos/FRC1076/2018-Competition/stargazers","contributors_url":"https://api.github.com/repos/FRC1076/2018-Competition/contributors","subscribers_url":"https://api.github.com/repos/FRC1076/2018-Competition/subscribers","subscription_url":"https://api.github.com/repos/FRC1076/2018-Competition/subscription","commits_url":"https://api.github.com/repos/FRC1076/2018-Competition/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRC1076/2018-Competition/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/comments{/number}","contents_url":"https://api.github.com/repos/FRC1076/2018-Competition/contents/{+path}","compare_url":"https://api.github.com/repos/FRC1076/2018-Competition/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRC1076/2018-Competition/merges","archive_url":"https://api.github.com/repos/FRC1076/2018-Competition/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRC1076/2018-Competition/downloads","issues_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues{/number}","pulls_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls{/number}","milestones_url":"https://api.github.com/repos/FRC1076/2018-Competition/milestones{/number}","notifications_url":"https://api.github.com/repos/FRC1076/2018-Competition/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRC1076/2018-Competition/labels{/name}","releases_url":"https://api.github.com/repos/FRC1076/2018-Competition/releases{/id}","deployments_url":"https://api.github.com/repos/FRC1076/2018-Competition/deployments","created_at":"2018-01-12T02:21:59Z","updated_at":"2018-02-02T23:11:57Z","pushed_at":"2018-02-25T00:24:32Z","git_url":"git://github.com/FRC1076/2018-Competition.git","ssh_url":"git@github.com:FRC1076/2018-Competition.git","clone_url":"https://github.com/FRC1076/2018-Competition.git","svn_url":"https://github.com/FRC1076/2018-Competition","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"develop"}},"base":{"label":"FRC1076:develop","ref":"develop","sha":"7fd04e8329cb0d455a4a25f8e448b8ba4c207af8","user":{"login":"FRC1076","id":9311430,"avatar_url":"https://avatars1.githubusercontent.com/u/9311430?v=4","gravatar_id":"","url":"https://api.github.com/users/FRC1076","html_url":"https://github.com/FRC1076","followers_url":"https://api.github.com/users/FRC1076/followers","following_url":"https://api.github.com/users/FRC1076/following{/other_user}","gists_url":"https://api.github.com/users/FRC1076/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC1076/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC1076/subscriptions","organizations_url":"https://api.github.com/users/FRC1076/orgs","repos_url":"https://api.github.com/users/FRC1076/repos","events_url":"https://api.github.com/users/FRC1076/events{/privacy}","received_events_url":"https://api.github.com/users/FRC1076/received_events","type":"Organization","site_admin":false},"repo":{"id":117180775,"name":"2018-Competition","full_name":"FRC1076/2018-Competition","owner":{"login":"FRC1076","id":9311430,"avatar_url":"https://avatars1.githubusercontent.com/u/9311430?v=4","gravatar_id":"","url":"https://api.github.com/users/FRC1076","html_url":"https://github.com/FRC1076","followers_url":"https://api.github.com/users/FRC1076/followers","following_url":"https://api.github.com/users/FRC1076/following{/other_user}","gists_url":"https://api.github.com/users/FRC1076/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC1076/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC1076/subscriptions","organizations_url":"https://api.github.com/users/FRC1076/orgs","repos_url":"https://api.github.com/users/FRC1076/repos","events_url":"https://api.github.com/users/FRC1076/events{/privacy}","received_events_url":"https://api.github.com/users/FRC1076/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRC1076/2018-Competition","description":null,"fork":false,"url":"https://api.github.com/repos/FRC1076/2018-Competition","forks_url":"https://api.github.com/repos/FRC1076/2018-Competition/forks","keys_url":"https://api.github.com/repos/FRC1076/2018-Competition/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRC1076/2018-Competition/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRC1076/2018-Competition/teams","hooks_url":"https://api.github.com/repos/FRC1076/2018-Competition/hooks","issue_events_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/events{/number}","events_url":"https://api.github.com/repos/FRC1076/2018-Competition/events","assignees_url":"https://api.github.com/repos/FRC1076/2018-Competition/assignees{/user}","branches_url":"https://api.github.com/repos/FRC1076/2018-Competition/branches{/branch}","tags_url":"https://api.github.com/repos/FRC1076/2018-Competition/tags","blobs_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRC1076/2018-Competition/statuses/{sha}","languages_url":"https://api.github.com/repos/FRC1076/2018-Competition/languages","stargazers_url":"https://api.github.com/repos/FRC1076/2018-Competition/stargazers","contributors_url":"https://api.github.com/repos/FRC1076/2018-Competition/contributors","subscribers_url":"https://api.github.com/repos/FRC1076/2018-Competition/subscribers","subscription_url":"https://api.github.com/repos/FRC1076/2018-Competition/subscription","commits_url":"https://api.github.com/repos/FRC1076/2018-Competition/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRC1076/2018-Competition/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRC1076/2018-Competition/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues/comments{/number}","contents_url":"https://api.github.com/repos/FRC1076/2018-Competition/contents/{+path}","compare_url":"https://api.github.com/repos/FRC1076/2018-Competition/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRC1076/2018-Competition/merges","archive_url":"https://api.github.com/repos/FRC1076/2018-Competition/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRC1076/2018-Competition/downloads","issues_url":"https://api.github.com/repos/FRC1076/2018-Competition/issues{/number}","pulls_url":"https://api.github.com/repos/FRC1076/2018-Competition/pulls{/number}","milestones_url":"https://api.github.com/repos/FRC1076/2018-Competition/milestones{/number}","notifications_url":"https://api.github.com/repos/FRC1076/2018-Competition/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRC1076/2018-Competition/labels{/name}","releases_url":"https://api.github.com/repos/FRC1076/2018-Competition/releases{/id}","deployments_url":"https://api.github.com/repos/FRC1076/2018-Competition/deployments","created_at":"2018-01-12T02:21:59Z","updated_at":"2018-02-02T23:11:57Z","pushed_at":"2018-02-25T00:24:32Z","git_url":"git://github.com/FRC1076/2018-Competition.git","ssh_url":"git@github.com:FRC1076/2018-Competition.git","clone_url":"https://github.com/FRC1076/2018-Competition.git","svn_url":"https://github.com/FRC1076/2018-Competition","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30"},"html":{"href":"https://github.com/FRC1076/2018-Competition/pull/30"},"issue":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/issues/30"},"comments":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/FRC1076/2018-Competition/statuses/1f85d1dbae114d249dfeb8e7e8079c35c7d76370"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"a2aaron"}}