{"action":"created","comment":{"url":"https://api.github.com/repos/frc5687/2018-robot/pulls/comments/168971641","pull_request_review_id":97422470,"id":168971641,"diff_hunk":"@@ -37,14 +39,24 @@ public int delaySwitchValue(){\n         return delaySwitch.get();\n     }\n \n+    private static String[] positionLabels = {\"Unused\",\"Far Left\",\"Near Left\", \"Center Left\",\"Center Right\", \"Near Right\",\"Far Right\"};\n+    private static String[] modeLabels = {\"Stay Put\", \"Cross The Line\", \"Switch Face\", \"Scale\", \"Unused\"};\n+    private static long[] delays = {0, 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 4000, 5000};\n \n     public void updateDashboard(){\n+        SmartDashboard.putString(\"Auto/Position\", positionLabels[Math.max(0, positionSwitchValue())]);\n+        SmartDashboard.putString(\"Auto/Mode\", modeLabels[Math.max(0, modeSwitchValue())]);\n+        SmartDashboard.putString(\"Auto/Delay\", Long.toString(delays[Math.max(0, delaySwitchValue())]) + \"ms\");\n+        SmartDashboard.putString(\"AutoChooser/Label/Position\", positionLabels[Math.max(0, positionSwitchValue())]);\n+        SmartDashboard.putString(\"AutoChooser/Label/Mode\", modeLabels[Math.max(0, modeSwitchValue())]);\n+        SmartDashboard.putString(\"AutoChooser/Label/Delay\", Long.toString(delays[Math.max(0, delaySwitchValue())]) + \"ms\");\n         SmartDashboard.putNumber(\"AutoChooser/Raw/Position\", positionSwitch.getRaw());\n         SmartDashboard.putNumber(\"AutoChooser/Raw/Mode\", modeSwitch.getRaw());\n         SmartDashboard.putNumber(\"AutoChooser/Raw/Delay\", delaySwitch.getRaw());\n         SmartDashboard.putNumber(\"AutoChooser/Numeric/Position\", positionSwitchValue());\n         SmartDashboard.putNumber(\"AutoChooser/Numeric/Mode\", modeSwitchValue());\n         SmartDashboard.putNumber(\"AutoChooser/Numeric/Delay\", delaySwitch.get());\n+        DriverStation.getInstance().waitForData();","path":"src/main/java/org/frc5687/powerup/robot/utils/AutoChooser.java","position":30,"original_position":30,"commit_id":"ce13ad878f4163d0f4685744ab3b9166ab02c26b","original_commit_id":"ce13ad878f4163d0f4685744ab3b9166ab02c26b","user":{"login":"JCharante","id":13973198,"avatar_url":"https://avatars3.githubusercontent.com/u/13973198?v=4","gravatar_id":"","url":"https://api.github.com/users/JCharante","html_url":"https://github.com/JCharante","followers_url":"https://api.github.com/users/JCharante/followers","following_url":"https://api.github.com/users/JCharante/following{/other_user}","gists_url":"https://api.github.com/users/JCharante/gists{/gist_id}","starred_url":"https://api.github.com/users/JCharante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCharante/subscriptions","organizations_url":"https://api.github.com/users/JCharante/orgs","repos_url":"https://api.github.com/users/JCharante/repos","events_url":"https://api.github.com/users/JCharante/events{/privacy}","received_events_url":"https://api.github.com/users/JCharante/received_events","type":"User","site_admin":false},"body":"Educate me: what does this accomplish?","created_at":"2018-02-19T00:03:35Z","updated_at":"2018-02-19T00:04:18Z","html_url":"https://github.com/frc5687/2018-robot/pull/152#discussion_r168971641","pull_request_url":"https://api.github.com/repos/frc5687/2018-robot/pulls/152","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/comments/168971641"},"html":{"href":"https://github.com/frc5687/2018-robot/pull/152#discussion_r168971641"},"pull_request":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/frc5687/2018-robot/pulls/152","id":169858193,"html_url":"https://github.com/frc5687/2018-robot/pull/152","diff_url":"https://github.com/frc5687/2018-robot/pull/152.diff","patch_url":"https://github.com/frc5687/2018-robot/pull/152.patch","issue_url":"https://api.github.com/repos/frc5687/2018-robot/issues/152","number":152,"state":"open","locked":false,"title":"Fix #149","user":{"login":"BenBernardCIS","id":599290,"avatar_url":"https://avatars2.githubusercontent.com/u/599290?v=4","gravatar_id":"","url":"https://api.github.com/users/BenBernardCIS","html_url":"https://github.com/BenBernardCIS","followers_url":"https://api.github.com/users/BenBernardCIS/followers","following_url":"https://api.github.com/users/BenBernardCIS/following{/other_user}","gists_url":"https://api.github.com/users/BenBernardCIS/gists{/gist_id}","starred_url":"https://api.github.com/users/BenBernardCIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenBernardCIS/subscriptions","organizations_url":"https://api.github.com/users/BenBernardCIS/orgs","repos_url":"https://api.github.com/users/BenBernardCIS/repos","events_url":"https://api.github.com/users/BenBernardCIS/events{/privacy}","received_events_url":"https://api.github.com/users/BenBernardCIS/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-18T23:56:33Z","updated_at":"2018-02-19T00:04:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3fe433661d2c7dce213e46610a6e05864f8cb3b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/frc5687/2018-robot/pulls/152/commits","review_comments_url":"https://api.github.com/repos/frc5687/2018-robot/pulls/152/comments","review_comment_url":"https://api.github.com/repos/frc5687/2018-robot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frc5687/2018-robot/issues/152/comments","statuses_url":"https://api.github.com/repos/frc5687/2018-robot/statuses/ce13ad878f4163d0f4685744ab3b9166ab02c26b","head":{"label":"frc5687:Auto/#149-Labels","ref":"Auto/#149-Labels","sha":"ce13ad878f4163d0f4685744ab3b9166ab02c26b","user":{"login":"frc5687","id":10579455,"avatar_url":"https://avatars1.githubusercontent.com/u/10579455?v=4","gravatar_id":"","url":"https://api.github.com/users/frc5687","html_url":"https://github.com/frc5687","followers_url":"https://api.github.com/users/frc5687/followers","following_url":"https://api.github.com/users/frc5687/following{/other_user}","gists_url":"https://api.github.com/users/frc5687/gists{/gist_id}","starred_url":"https://api.github.com/users/frc5687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frc5687/subscriptions","organizations_url":"https://api.github.com/users/frc5687/orgs","repos_url":"https://api.github.com/users/frc5687/repos","events_url":"https://api.github.com/users/frc5687/events{/privacy}","received_events_url":"https://api.github.com/users/frc5687/received_events","type":"Organization","site_admin":false},"repo":{"id":117253645,"name":"2018-robot","full_name":"frc5687/2018-robot","owner":{"login":"frc5687","id":10579455,"avatar_url":"https://avatars1.githubusercontent.com/u/10579455?v=4","gravatar_id":"","url":"https://api.github.com/users/frc5687","html_url":"https://github.com/frc5687","followers_url":"https://api.github.com/users/frc5687/followers","following_url":"https://api.github.com/users/frc5687/following{/other_user}","gists_url":"https://api.github.com/users/frc5687/gists{/gist_id}","starred_url":"https://api.github.com/users/frc5687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frc5687/subscriptions","organizations_url":"https://api.github.com/users/frc5687/orgs","repos_url":"https://api.github.com/users/frc5687/repos","events_url":"https://api.github.com/users/frc5687/events{/privacy}","received_events_url":"https://api.github.com/users/frc5687/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frc5687/2018-robot","description":"Code for the 2018 robot","fork":false,"url":"https://api.github.com/repos/frc5687/2018-robot","forks_url":"https://api.github.com/repos/frc5687/2018-robot/forks","keys_url":"https://api.github.com/repos/frc5687/2018-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frc5687/2018-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frc5687/2018-robot/teams","hooks_url":"https://api.github.com/repos/frc5687/2018-robot/hooks","issue_events_url":"https://api.github.com/repos/frc5687/2018-robot/issues/events{/number}","events_url":"https://api.github.com/repos/frc5687/2018-robot/events","assignees_url":"https://api.github.com/repos/frc5687/2018-robot/assignees{/user}","branches_url":"https://api.github.com/repos/frc5687/2018-robot/branches{/branch}","tags_url":"https://api.github.com/repos/frc5687/2018-robot/tags","blobs_url":"https://api.github.com/repos/frc5687/2018-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frc5687/2018-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frc5687/2018-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/frc5687/2018-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frc5687/2018-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/frc5687/2018-robot/languages","stargazers_url":"https://api.github.com/repos/frc5687/2018-robot/stargazers","contributors_url":"https://api.github.com/repos/frc5687/2018-robot/contributors","subscribers_url":"https://api.github.com/repos/frc5687/2018-robot/subscribers","subscription_url":"https://api.github.com/repos/frc5687/2018-robot/subscription","commits_url":"https://api.github.com/repos/frc5687/2018-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/frc5687/2018-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/frc5687/2018-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/frc5687/2018-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/frc5687/2018-robot/contents/{+path}","compare_url":"https://api.github.com/repos/frc5687/2018-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frc5687/2018-robot/merges","archive_url":"https://api.github.com/repos/frc5687/2018-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frc5687/2018-robot/downloads","issues_url":"https://api.github.com/repos/frc5687/2018-robot/issues{/number}","pulls_url":"https://api.github.com/repos/frc5687/2018-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/frc5687/2018-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/frc5687/2018-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frc5687/2018-robot/labels{/name}","releases_url":"https://api.github.com/repos/frc5687/2018-robot/releases{/id}","deployments_url":"https://api.github.com/repos/frc5687/2018-robot/deployments","created_at":"2018-01-12T14:57:14Z","updated_at":"2018-02-18T18:55:06Z","pushed_at":"2018-02-18T23:56:33Z","git_url":"git://github.com/frc5687/2018-robot.git","ssh_url":"git@github.com:frc5687/2018-robot.git","clone_url":"https://github.com/frc5687/2018-robot.git","svn_url":"https://github.com/frc5687/2018-robot","homepage":"","size":1321,"stargazers_count":3,"watchers_count":3,"language":"Java","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":19,"license":null,"forks":0,"open_issues":19,"watchers":3,"default_branch":"master"}},"base":{"label":"frc5687:master","ref":"master","sha":"d05060e1df6f4b56fbaef4908db1acd9ab6aa19a","user":{"login":"frc5687","id":10579455,"avatar_url":"https://avatars1.githubusercontent.com/u/10579455?v=4","gravatar_id":"","url":"https://api.github.com/users/frc5687","html_url":"https://github.com/frc5687","followers_url":"https://api.github.com/users/frc5687/followers","following_url":"https://api.github.com/users/frc5687/following{/other_user}","gists_url":"https://api.github.com/users/frc5687/gists{/gist_id}","starred_url":"https://api.github.com/users/frc5687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frc5687/subscriptions","organizations_url":"https://api.github.com/users/frc5687/orgs","repos_url":"https://api.github.com/users/frc5687/repos","events_url":"https://api.github.com/users/frc5687/events{/privacy}","received_events_url":"https://api.github.com/users/frc5687/received_events","type":"Organization","site_admin":false},"repo":{"id":117253645,"name":"2018-robot","full_name":"frc5687/2018-robot","owner":{"login":"frc5687","id":10579455,"avatar_url":"https://avatars1.githubusercontent.com/u/10579455?v=4","gravatar_id":"","url":"https://api.github.com/users/frc5687","html_url":"https://github.com/frc5687","followers_url":"https://api.github.com/users/frc5687/followers","following_url":"https://api.github.com/users/frc5687/following{/other_user}","gists_url":"https://api.github.com/users/frc5687/gists{/gist_id}","starred_url":"https://api.github.com/users/frc5687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frc5687/subscriptions","organizations_url":"https://api.github.com/users/frc5687/orgs","repos_url":"https://api.github.com/users/frc5687/repos","events_url":"https://api.github.com/users/frc5687/events{/privacy}","received_events_url":"https://api.github.com/users/frc5687/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frc5687/2018-robot","description":"Code for the 2018 robot","fork":false,"url":"https://api.github.com/repos/frc5687/2018-robot","forks_url":"https://api.github.com/repos/frc5687/2018-robot/forks","keys_url":"https://api.github.com/repos/frc5687/2018-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frc5687/2018-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frc5687/2018-robot/teams","hooks_url":"https://api.github.com/repos/frc5687/2018-robot/hooks","issue_events_url":"https://api.github.com/repos/frc5687/2018-robot/issues/events{/number}","events_url":"https://api.github.com/repos/frc5687/2018-robot/events","assignees_url":"https://api.github.com/repos/frc5687/2018-robot/assignees{/user}","branches_url":"https://api.github.com/repos/frc5687/2018-robot/branches{/branch}","tags_url":"https://api.github.com/repos/frc5687/2018-robot/tags","blobs_url":"https://api.github.com/repos/frc5687/2018-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frc5687/2018-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frc5687/2018-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/frc5687/2018-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frc5687/2018-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/frc5687/2018-robot/languages","stargazers_url":"https://api.github.com/repos/frc5687/2018-robot/stargazers","contributors_url":"https://api.github.com/repos/frc5687/2018-robot/contributors","subscribers_url":"https://api.github.com/repos/frc5687/2018-robot/subscribers","subscription_url":"https://api.github.com/repos/frc5687/2018-robot/subscription","commits_url":"https://api.github.com/repos/frc5687/2018-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/frc5687/2018-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/frc5687/2018-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/frc5687/2018-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/frc5687/2018-robot/contents/{+path}","compare_url":"https://api.github.com/repos/frc5687/2018-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frc5687/2018-robot/merges","archive_url":"https://api.github.com/repos/frc5687/2018-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frc5687/2018-robot/downloads","issues_url":"https://api.github.com/repos/frc5687/2018-robot/issues{/number}","pulls_url":"https://api.github.com/repos/frc5687/2018-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/frc5687/2018-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/frc5687/2018-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frc5687/2018-robot/labels{/name}","releases_url":"https://api.github.com/repos/frc5687/2018-robot/releases{/id}","deployments_url":"https://api.github.com/repos/frc5687/2018-robot/deployments","created_at":"2018-01-12T14:57:14Z","updated_at":"2018-02-18T18:55:06Z","pushed_at":"2018-02-18T23:56:33Z","git_url":"git://github.com/frc5687/2018-robot.git","ssh_url":"git@github.com:frc5687/2018-robot.git","clone_url":"https://github.com/frc5687/2018-robot.git","svn_url":"https://github.com/frc5687/2018-robot","homepage":"","size":1321,"stargazers_count":3,"watchers_count":3,"language":"Java","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":19,"license":null,"forks":0,"open_issues":19,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/152"},"html":{"href":"https://github.com/frc5687/2018-robot/pull/152"},"issue":{"href":"https://api.github.com/repos/frc5687/2018-robot/issues/152"},"comments":{"href":"https://api.github.com/repos/frc5687/2018-robot/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frc5687/2018-robot/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/frc5687/2018-robot/statuses/ce13ad878f4163d0f4685744ab3b9166ab02c26b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JCharante"}}