{"action":"created","comment":{"url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/comments/52111357","id":52111357,"diff_hunk":"@@ -0,0 +1,30 @@\n+package org.team1540.zukoazula;\n+\n+import ccre.channel.BooleanIO;\n+import ccre.channel.BooleanInput;\n+import ccre.channel.EventInput;\n+import ccre.channel.FloatInput;\n+import ccre.channel.FloatOutput;\n+import ccre.ctrl.ExtendedMotor;\n+import ccre.ctrl.ExtendedMotorFailureException;\n+import ccre.drivers.ctre.talon.TalonExtendedMotor;\n+import ccre.frc.FRC;\n+\n+public class IntakeArm {\n+    private static final TalonExtendedMotor intakeArmCAN = FRC.talonCAN(9);\n+    private static final TalonExtendedMotor intakeArmRollerCAN = FRC.talonCAN(11);\n+    private static final FloatInput encoder = intakeArmCAN.modEncoder().getEncoderPosition();\n+\n+    private static final FloatInput intakeArmAxis = ZukoAzula.controlBinding.addFloat(\"Intake Arm Axis\").deadzone(0.2f).negated();\n+    private static final EventInput intakeArmRollerForward = ZukoAzula.controlBinding.addEvent(\"Intake Arm Rollers Forward\");\n+    private static final EventInput intakeArmRollerBackward = ZukoAzula.controlBinding.addEvent(\"Intake Arm Rollers Backward\");\n+    private static final EventInput intakeArmRollerStop = ZukoAzula.controlBinding.addEvent(\"Intake Arm Rollers Stop\");\n+\n+    public static void setup() throws ExtendedMotorFailureException {\n+        intakeArmAxis.send(intakeArmCAN.simpleControl());\n+        FloatOutput rollerOutput = intakeArmRollerCAN.simpleControl();\n+        rollerOutput.setWhen(1, intakeArmRollerForward);\n+        rollerOutput.setWhen(0, intakeArmRollerStop);\n+        rollerOutput.setWhen(-1, intakeArmRollerBackward);","path":"ZukoAzula2016/src/org/team1540/zukoazula/IntakeArm.java","position":28,"original_position":28,"commit_id":"65a3e133a2f3b3250be9d676b57b77a2da0da8c7","original_commit_id":"2baf2757f9230b570fb39f75d3c9b243b58222ef","user":{"login":"amackworth","id":509593,"avatar_url":"https://avatars.githubusercontent.com/u/509593?v=3","gravatar_id":"","url":"https://api.github.com/users/amackworth","html_url":"https://github.com/amackworth","followers_url":"https://api.github.com/users/amackworth/followers","following_url":"https://api.github.com/users/amackworth/following{/other_user}","gists_url":"https://api.github.com/users/amackworth/gists{/gist_id}","starred_url":"https://api.github.com/users/amackworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amackworth/subscriptions","organizations_url":"https://api.github.com/users/amackworth/orgs","repos_url":"https://api.github.com/users/amackworth/repos","events_url":"https://api.github.com/users/amackworth/events{/privacy}","received_events_url":"https://api.github.com/users/amackworth/received_events","type":"User","site_admin":false},"body":"Agreed! We'll have to discuss with the co-pilot.","created_at":"2016-02-07T02:08:14Z","updated_at":"2016-02-07T02:08:14Z","html_url":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7#discussion_r52111357","pull_request_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/comments/52111357"},"html":{"href":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7#discussion_r52111357"},"pull_request":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7","id":58535987,"html_url":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7","diff_url":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7.diff","patch_url":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7.patch","issue_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/7","number":7,"state":"open","locked":false,"title":"Intake Arm","user":{"login":"amackworth","id":509593,"avatar_url":"https://avatars.githubusercontent.com/u/509593?v=3","gravatar_id":"","url":"https://api.github.com/users/amackworth","html_url":"https://github.com/amackworth","followers_url":"https://api.github.com/users/amackworth/followers","following_url":"https://api.github.com/users/amackworth/following{/other_user}","gists_url":"https://api.github.com/users/amackworth/gists{/gist_id}","starred_url":"https://api.github.com/users/amackworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amackworth/subscriptions","organizations_url":"https://api.github.com/users/amackworth/orgs","repos_url":"https://api.github.com/users/amackworth/repos","events_url":"https://api.github.com/users/amackworth/events{/privacy}","received_events_url":"https://api.github.com/users/amackworth/received_events","type":"User","site_admin":false},"body":"Current intake control scheme: one axis for raising/lowering arm, a toggle button to enable/disable rollers, and another to switch direction.","created_at":"2016-02-07T01:43:03Z","updated_at":"2016-02-07T02:08:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"648fa6a15a4e909877f12081606b2d8b86036afb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7/commits","review_comments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7/comments","review_comment_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/7/comments","statuses_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/statuses/65a3e133a2f3b3250be9d676b57b77a2da0da8c7","head":{"label":"flamingchickens1540:intake","ref":"intake","sha":"65a3e133a2f3b3250be9d676b57b77a2da0da8c7","user":{"login":"flamingchickens1540","id":5280254,"avatar_url":"https://avatars.githubusercontent.com/u/5280254?v=3","gravatar_id":"","url":"https://api.github.com/users/flamingchickens1540","html_url":"https://github.com/flamingchickens1540","followers_url":"https://api.github.com/users/flamingchickens1540/followers","following_url":"https://api.github.com/users/flamingchickens1540/following{/other_user}","gists_url":"https://api.github.com/users/flamingchickens1540/gists{/gist_id}","starred_url":"https://api.github.com/users/flamingchickens1540/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flamingchickens1540/subscriptions","organizations_url":"https://api.github.com/users/flamingchickens1540/orgs","repos_url":"https://api.github.com/users/flamingchickens1540/repos","events_url":"https://api.github.com/users/flamingchickens1540/events{/privacy}","received_events_url":"https://api.github.com/users/flamingchickens1540/received_events","type":"Organization","site_admin":false},"repo":{"id":49390247,"name":"zuko-azula-2016","full_name":"flamingchickens1540/zuko-azula-2016","owner":{"login":"flamingchickens1540","id":5280254,"avatar_url":"https://avatars.githubusercontent.com/u/5280254?v=3","gravatar_id":"","url":"https://api.github.com/users/flamingchickens1540","html_url":"https://github.com/flamingchickens1540","followers_url":"https://api.github.com/users/flamingchickens1540/followers","following_url":"https://api.github.com/users/flamingchickens1540/following{/other_user}","gists_url":"https://api.github.com/users/flamingchickens1540/gists{/gist_id}","starred_url":"https://api.github.com/users/flamingchickens1540/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flamingchickens1540/subscriptions","organizations_url":"https://api.github.com/users/flamingchickens1540/orgs","repos_url":"https://api.github.com/users/flamingchickens1540/repos","events_url":"https://api.github.com/users/flamingchickens1540/events{/privacy}","received_events_url":"https://api.github.com/users/flamingchickens1540/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flamingchickens1540/zuko-azula-2016","description":"Robot code for Team 1540's Zuko and Azula","fork":false,"url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016","forks_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/forks","keys_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/teams","hooks_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/hooks","issue_events_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/events{/number}","events_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/events","assignees_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/assignees{/user}","branches_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/branches{/branch}","tags_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/tags","blobs_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/languages","stargazers_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/stargazers","contributors_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/contributors","subscribers_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/subscribers","subscription_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/subscription","commits_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/contents/{+path}","compare_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/merges","archive_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/downloads","issues_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues{/number}","pulls_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/labels{/name}","releases_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/releases{/id}","deployments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/deployments","created_at":"2016-01-10T23:21:56Z","updated_at":"2016-01-17T01:05:33Z","pushed_at":"2016-02-07T02:07:59Z","git_url":"git://github.com/flamingchickens1540/zuko-azula-2016.git","ssh_url":"git@github.com:flamingchickens1540/zuko-azula-2016.git","clone_url":"https://github.com/flamingchickens1540/zuko-azula-2016.git","svn_url":"https://github.com/flamingchickens1540/zuko-azula-2016","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"flamingchickens1540:master","ref":"master","sha":"6064d197559aae2d2f5d4d2fd1d802765e62b27d","user":{"login":"flamingchickens1540","id":5280254,"avatar_url":"https://avatars.githubusercontent.com/u/5280254?v=3","gravatar_id":"","url":"https://api.github.com/users/flamingchickens1540","html_url":"https://github.com/flamingchickens1540","followers_url":"https://api.github.com/users/flamingchickens1540/followers","following_url":"https://api.github.com/users/flamingchickens1540/following{/other_user}","gists_url":"https://api.github.com/users/flamingchickens1540/gists{/gist_id}","starred_url":"https://api.github.com/users/flamingchickens1540/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flamingchickens1540/subscriptions","organizations_url":"https://api.github.com/users/flamingchickens1540/orgs","repos_url":"https://api.github.com/users/flamingchickens1540/repos","events_url":"https://api.github.com/users/flamingchickens1540/events{/privacy}","received_events_url":"https://api.github.com/users/flamingchickens1540/received_events","type":"Organization","site_admin":false},"repo":{"id":49390247,"name":"zuko-azula-2016","full_name":"flamingchickens1540/zuko-azula-2016","owner":{"login":"flamingchickens1540","id":5280254,"avatar_url":"https://avatars.githubusercontent.com/u/5280254?v=3","gravatar_id":"","url":"https://api.github.com/users/flamingchickens1540","html_url":"https://github.com/flamingchickens1540","followers_url":"https://api.github.com/users/flamingchickens1540/followers","following_url":"https://api.github.com/users/flamingchickens1540/following{/other_user}","gists_url":"https://api.github.com/users/flamingchickens1540/gists{/gist_id}","starred_url":"https://api.github.com/users/flamingchickens1540/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flamingchickens1540/subscriptions","organizations_url":"https://api.github.com/users/flamingchickens1540/orgs","repos_url":"https://api.github.com/users/flamingchickens1540/repos","events_url":"https://api.github.com/users/flamingchickens1540/events{/privacy}","received_events_url":"https://api.github.com/users/flamingchickens1540/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flamingchickens1540/zuko-azula-2016","description":"Robot code for Team 1540's Zuko and Azula","fork":false,"url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016","forks_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/forks","keys_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/teams","hooks_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/hooks","issue_events_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/events{/number}","events_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/events","assignees_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/assignees{/user}","branches_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/branches{/branch}","tags_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/tags","blobs_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/languages","stargazers_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/stargazers","contributors_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/contributors","subscribers_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/subscribers","subscription_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/subscription","commits_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/contents/{+path}","compare_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/merges","archive_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/downloads","issues_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues{/number}","pulls_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/labels{/name}","releases_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/releases{/id}","deployments_url":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/deployments","created_at":"2016-01-10T23:21:56Z","updated_at":"2016-01-17T01:05:33Z","pushed_at":"2016-02-07T02:07:59Z","git_url":"git://github.com/flamingchickens1540/zuko-azula-2016.git","ssh_url":"git@github.com:flamingchickens1540/zuko-azula-2016.git","clone_url":"https://github.com/flamingchickens1540/zuko-azula-2016.git","svn_url":"https://github.com/flamingchickens1540/zuko-azula-2016","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7"},"html":{"href":"https://github.com/flamingchickens1540/zuko-azula-2016/pull/7"},"issue":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/7"},"comments":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/flamingchickens1540/zuko-azula-2016/statuses/65a3e133a2f3b3250be9d676b57b77a2da0da8c7"}}}}