{"action":"created","comment":{"url":"https://api.github.com/repos/FRC930/Robot2015/pulls/comments/24866250","id":24866250,"diff_hunk":"@@ -1,38 +1,33 @@\n package org.usfirst.frc.team930.robot;\n \n+import org.usfirst.frc.team930.robot.commands.CloseClaw;\n+import org.usfirst.frc.team930.robot.commands.CloseLeftClaw;\n+import org.usfirst.frc.team930.robot.commands.CloseRightClaw;\n+import org.usfirst.frc.team930.robot.commands.OpenClaw;\n+import org.usfirst.frc.team930.robot.commands.OpenLeftClaw;\n+import org.usfirst.frc.team930.robot.commands.OpenRightClaw;\n+\n+import edu.wpi.first.wpilibj.Joystick;\n import edu.wpi.first.wpilibj.buttons.Button;\n-import org.usfirst.frc.team930.robot.commands.ExampleCommand;\n+import edu.wpi.first.wpilibj.buttons.JoystickButton;\n \n-/**\n- * This class is the glue that binds the controls on the physical operator\n- * interface to the commands and command groups that allow control of the robot.\n- */\n public class OI {\n-    //// CREATING BUTTONS\n-    // One type of button is a joystick button which is any button on a joystick.\n-    // You create one by telling it which joystick it's on and which button\n-    // number it is.\n-    // Joystick stick = new Joystick(port);\n-    // Button button = new JoystickButton(stick, buttonNumber);\n-    \n-    // There are a few additional built in buttons you can use. Additionally,\n-    // by subclassing Button you can create custom triggers and bind those to\n-    // commands the same as any other Button.\n-    \n-    //// TRIGGERING COMMANDS WITH BUTTONS\n-    // Once you have a button, it's trivial to bind it to a button in one of\n-    // three ways:\n-    \n-    // Start the command when the button is pressed and let it run the command\n-    // until it is finished as determined by it's isFinished method.\n-    // button.whenPressed(new ExampleCommand());\n-    \n-    // Run the command while the button is being held down and interrupt it once\n-    // the button is released.\n-    // button.whileHeld(new ExampleCommand());\n-    \n-    // Start the command when the button is released  and let it run the command\n-    // until it is finished as determined by it's isFinished method.\n-    // button.whenReleased(new ExampleCommand());\n+\tJoystick driver = new Joystick(0);\n+\tJoystick codriver = new Joystick(1); \n+\t\n+\tJoystickButton closeButtonLeft = new JoystickButton(driver, 1);","path":"src/org/usfirst/frc/team930/robot/OI.java","position":49,"original_position":49,"commit_id":"2f23f37becfef507355f449c2c2cbbf2a1374814","original_commit_id":"2f23f37becfef507355f449c2c2cbbf2a1374814","user":{"login":"Gregadeaux","id":472886,"avatar_url":"https://avatars.githubusercontent.com/u/472886?v=3","gravatar_id":"","url":"https://api.github.com/users/Gregadeaux","html_url":"https://github.com/Gregadeaux","followers_url":"https://api.github.com/users/Gregadeaux/followers","following_url":"https://api.github.com/users/Gregadeaux/following{/other_user}","gists_url":"https://api.github.com/users/Gregadeaux/gists{/gist_id}","starred_url":"https://api.github.com/users/Gregadeaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gregadeaux/subscriptions","organizations_url":"https://api.github.com/users/Gregadeaux/orgs","repos_url":"https://api.github.com/users/Gregadeaux/repos","events_url":"https://api.github.com/users/Gregadeaux/events{/privacy}","received_events_url":"https://api.github.com/users/Gregadeaux/received_events","type":"User","site_admin":false},"body":"Lets rename these to their representations on the controller. i.e\r\n```\r\nJoystickButton aButton = new JoystickButton(......)\r\n```","created_at":"2015-02-17T23:35:34Z","updated_at":"2015-02-17T23:35:34Z","html_url":"https://github.com/FRC930/Robot2015/pull/2#discussion_r24866250","pull_request_url":"https://api.github.com/repos/FRC930/Robot2015/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/comments/24866250"},"html":{"href":"https://github.com/FRC930/Robot2015/pull/2#discussion_r24866250"},"pull_request":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/FRC930/Robot2015/pulls/2","id":29488194,"html_url":"https://github.com/FRC930/Robot2015/pull/2","diff_url":"https://github.com/FRC930/Robot2015/pull/2.diff","patch_url":"https://github.com/FRC930/Robot2015/pull/2.patch","issue_url":"https://api.github.com/repos/FRC930/Robot2015/issues/2","number":2,"state":"open","locked":false,"title":"Claw","user":{"login":"OZinkgraf","id":3085136,"avatar_url":"https://avatars.githubusercontent.com/u/3085136?v=3","gravatar_id":"","url":"https://api.github.com/users/OZinkgraf","html_url":"https://github.com/OZinkgraf","followers_url":"https://api.github.com/users/OZinkgraf/followers","following_url":"https://api.github.com/users/OZinkgraf/following{/other_user}","gists_url":"https://api.github.com/users/OZinkgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/OZinkgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OZinkgraf/subscriptions","organizations_url":"https://api.github.com/users/OZinkgraf/orgs","repos_url":"https://api.github.com/users/OZinkgraf/repos","events_url":"https://api.github.com/users/OZinkgraf/events{/privacy}","received_events_url":"https://api.github.com/users/OZinkgraf/received_events","type":"User","site_admin":false},"body":"@FRC930/controls Please review :dolphin: ","created_at":"2015-02-17T23:29:55Z","updated_at":"2015-02-17T23:35:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FRC930/Robot2015/pulls/2/commits","review_comments_url":"https://api.github.com/repos/FRC930/Robot2015/pulls/2/comments","review_comment_url":"https://api.github.com/repos/FRC930/Robot2015/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FRC930/Robot2015/issues/2/comments","statuses_url":"https://api.github.com/repos/FRC930/Robot2015/statuses/2f23f37becfef507355f449c2c2cbbf2a1374814","head":{"label":"FRC930:claw","ref":"claw","sha":"2f23f37becfef507355f449c2c2cbbf2a1374814","user":{"login":"FRC930","id":2754047,"avatar_url":"https://avatars.githubusercontent.com/u/2754047?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC930","html_url":"https://github.com/FRC930","followers_url":"https://api.github.com/users/FRC930/followers","following_url":"https://api.github.com/users/FRC930/following{/other_user}","gists_url":"https://api.github.com/users/FRC930/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC930/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC930/subscriptions","organizations_url":"https://api.github.com/users/FRC930/orgs","repos_url":"https://api.github.com/users/FRC930/repos","events_url":"https://api.github.com/users/FRC930/events{/privacy}","received_events_url":"https://api.github.com/users/FRC930/received_events","type":"Organization","site_admin":false},"repo":{"id":29997265,"name":"Robot2015","full_name":"FRC930/Robot2015","owner":{"login":"FRC930","id":2754047,"avatar_url":"https://avatars.githubusercontent.com/u/2754047?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC930","html_url":"https://github.com/FRC930","followers_url":"https://api.github.com/users/FRC930/followers","following_url":"https://api.github.com/users/FRC930/following{/other_user}","gists_url":"https://api.github.com/users/FRC930/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC930/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC930/subscriptions","organizations_url":"https://api.github.com/users/FRC930/orgs","repos_url":"https://api.github.com/users/FRC930/repos","events_url":"https://api.github.com/users/FRC930/events{/privacy}","received_events_url":"https://api.github.com/users/FRC930/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRC930/Robot2015","description":"Command based robot (HMS 930)","fork":false,"url":"https://api.github.com/repos/FRC930/Robot2015","forks_url":"https://api.github.com/repos/FRC930/Robot2015/forks","keys_url":"https://api.github.com/repos/FRC930/Robot2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRC930/Robot2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRC930/Robot2015/teams","hooks_url":"https://api.github.com/repos/FRC930/Robot2015/hooks","issue_events_url":"https://api.github.com/repos/FRC930/Robot2015/issues/events{/number}","events_url":"https://api.github.com/repos/FRC930/Robot2015/events","assignees_url":"https://api.github.com/repos/FRC930/Robot2015/assignees{/user}","branches_url":"https://api.github.com/repos/FRC930/Robot2015/branches{/branch}","tags_url":"https://api.github.com/repos/FRC930/Robot2015/tags","blobs_url":"https://api.github.com/repos/FRC930/Robot2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRC930/Robot2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRC930/Robot2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRC930/Robot2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRC930/Robot2015/statuses/{sha}","languages_url":"https://api.github.com/repos/FRC930/Robot2015/languages","stargazers_url":"https://api.github.com/repos/FRC930/Robot2015/stargazers","contributors_url":"https://api.github.com/repos/FRC930/Robot2015/contributors","subscribers_url":"https://api.github.com/repos/FRC930/Robot2015/subscribers","subscription_url":"https://api.github.com/repos/FRC930/Robot2015/subscription","commits_url":"https://api.github.com/repos/FRC930/Robot2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRC930/Robot2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRC930/Robot2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRC930/Robot2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/FRC930/Robot2015/contents/{+path}","compare_url":"https://api.github.com/repos/FRC930/Robot2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRC930/Robot2015/merges","archive_url":"https://api.github.com/repos/FRC930/Robot2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRC930/Robot2015/downloads","issues_url":"https://api.github.com/repos/FRC930/Robot2015/issues{/number}","pulls_url":"https://api.github.com/repos/FRC930/Robot2015/pulls{/number}","milestones_url":"https://api.github.com/repos/FRC930/Robot2015/milestones{/number}","notifications_url":"https://api.github.com/repos/FRC930/Robot2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRC930/Robot2015/labels{/name}","releases_url":"https://api.github.com/repos/FRC930/Robot2015/releases{/id}","created_at":"2015-01-29T01:20:07Z","updated_at":"2015-02-17T23:28:55Z","pushed_at":"2015-02-17T23:29:00Z","git_url":"git://github.com/FRC930/Robot2015.git","ssh_url":"git@github.com:FRC930/Robot2015.git","clone_url":"https://github.com/FRC930/Robot2015.git","svn_url":"https://github.com/FRC930/Robot2015","homepage":null,"size":3972,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"FRC930:master","ref":"master","sha":"fa75819e2d4e07df98d36a421a4614893eab8f70","user":{"login":"FRC930","id":2754047,"avatar_url":"https://avatars.githubusercontent.com/u/2754047?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC930","html_url":"https://github.com/FRC930","followers_url":"https://api.github.com/users/FRC930/followers","following_url":"https://api.github.com/users/FRC930/following{/other_user}","gists_url":"https://api.github.com/users/FRC930/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC930/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC930/subscriptions","organizations_url":"https://api.github.com/users/FRC930/orgs","repos_url":"https://api.github.com/users/FRC930/repos","events_url":"https://api.github.com/users/FRC930/events{/privacy}","received_events_url":"https://api.github.com/users/FRC930/received_events","type":"Organization","site_admin":false},"repo":{"id":29997265,"name":"Robot2015","full_name":"FRC930/Robot2015","owner":{"login":"FRC930","id":2754047,"avatar_url":"https://avatars.githubusercontent.com/u/2754047?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC930","html_url":"https://github.com/FRC930","followers_url":"https://api.github.com/users/FRC930/followers","following_url":"https://api.github.com/users/FRC930/following{/other_user}","gists_url":"https://api.github.com/users/FRC930/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC930/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC930/subscriptions","organizations_url":"https://api.github.com/users/FRC930/orgs","repos_url":"https://api.github.com/users/FRC930/repos","events_url":"https://api.github.com/users/FRC930/events{/privacy}","received_events_url":"https://api.github.com/users/FRC930/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRC930/Robot2015","description":"Command based robot (HMS 930)","fork":false,"url":"https://api.github.com/repos/FRC930/Robot2015","forks_url":"https://api.github.com/repos/FRC930/Robot2015/forks","keys_url":"https://api.github.com/repos/FRC930/Robot2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRC930/Robot2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRC930/Robot2015/teams","hooks_url":"https://api.github.com/repos/FRC930/Robot2015/hooks","issue_events_url":"https://api.github.com/repos/FRC930/Robot2015/issues/events{/number}","events_url":"https://api.github.com/repos/FRC930/Robot2015/events","assignees_url":"https://api.github.com/repos/FRC930/Robot2015/assignees{/user}","branches_url":"https://api.github.com/repos/FRC930/Robot2015/branches{/branch}","tags_url":"https://api.github.com/repos/FRC930/Robot2015/tags","blobs_url":"https://api.github.com/repos/FRC930/Robot2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRC930/Robot2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRC930/Robot2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRC930/Robot2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRC930/Robot2015/statuses/{sha}","languages_url":"https://api.github.com/repos/FRC930/Robot2015/languages","stargazers_url":"https://api.github.com/repos/FRC930/Robot2015/stargazers","contributors_url":"https://api.github.com/repos/FRC930/Robot2015/contributors","subscribers_url":"https://api.github.com/repos/FRC930/Robot2015/subscribers","subscription_url":"https://api.github.com/repos/FRC930/Robot2015/subscription","commits_url":"https://api.github.com/repos/FRC930/Robot2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRC930/Robot2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRC930/Robot2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRC930/Robot2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/FRC930/Robot2015/contents/{+path}","compare_url":"https://api.github.com/repos/FRC930/Robot2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRC930/Robot2015/merges","archive_url":"https://api.github.com/repos/FRC930/Robot2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRC930/Robot2015/downloads","issues_url":"https://api.github.com/repos/FRC930/Robot2015/issues{/number}","pulls_url":"https://api.github.com/repos/FRC930/Robot2015/pulls{/number}","milestones_url":"https://api.github.com/repos/FRC930/Robot2015/milestones{/number}","notifications_url":"https://api.github.com/repos/FRC930/Robot2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRC930/Robot2015/labels{/name}","releases_url":"https://api.github.com/repos/FRC930/Robot2015/releases{/id}","created_at":"2015-01-29T01:20:07Z","updated_at":"2015-02-17T23:28:55Z","pushed_at":"2015-02-17T23:29:00Z","git_url":"git://github.com/FRC930/Robot2015.git","ssh_url":"git@github.com:FRC930/Robot2015.git","clone_url":"https://github.com/FRC930/Robot2015.git","svn_url":"https://github.com/FRC930/Robot2015","homepage":null,"size":3972,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/2"},"html":{"href":"https://github.com/FRC930/Robot2015/pull/2"},"issue":{"href":"https://api.github.com/repos/FRC930/Robot2015/issues/2"},"comments":{"href":"https://api.github.com/repos/FRC930/Robot2015/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FRC930/Robot2015/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/FRC930/Robot2015/statuses/2f23f37becfef507355f449c2c2cbbf2a1374814"}}}}