{"action":"created","comment":{"url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/comments/98336684","pull_request_review_id":18978632,"id":98336684,"diff_hunk":"@@ -0,0 +1,48 @@\n+package competition.subsystems.drive.commands;\n+\n+import com.google.inject.Inject;\n+\n+import xbot.common.command.BaseCommand;\n+import xbot.common.math.PIDManager;\n+import xbot.common.properties.DoubleProperty;\n+import xbot.common.properties.XPropertyManager;\n+import competition.subsystems.drive.DriveSubsystem;\n+\n+public class DriveToPositionCommand extends BaseCommand{\n+\n+    private final DriveSubsystem driveSubsystem;\n+    private final PIDManager travelManager;\n+    \n+    private final DoubleProperty distanceTolerance;\n+    private double targetPosition;\n+    \n+    @Inject\n+    public DriveToPositionCommand(DriveSubsystem driveSubsystem, XPropertyManager propManager) {\n+        this.driveSubsystem = driveSubsystem;\n+        this.requires(driveSubsystem);\n+        this.travelManager = new PIDManager(\"DriveToPosition\", propManager, 0.1, 0, 0);","path":"Competition2017/src/competition/subsystems/drive/commands/DriveToPositionCommand.java","position":23,"original_position":23,"commit_id":"34edf47beee1a6f30877edaaf7f2dc07c99d3ba3","original_commit_id":"34edf47beee1a6f30877edaaf7f2dc07c99d3ba3","user":{"login":"imathno","id":15962378,"avatar_url":"https://avatars.githubusercontent.com/u/15962378?v=3","gravatar_id":"","url":"https://api.github.com/users/imathno","html_url":"https://github.com/imathno","followers_url":"https://api.github.com/users/imathno/followers","following_url":"https://api.github.com/users/imathno/following{/other_user}","gists_url":"https://api.github.com/users/imathno/gists{/gist_id}","starred_url":"https://api.github.com/users/imathno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imathno/subscriptions","organizations_url":"https://api.github.com/users/imathno/orgs","repos_url":"https://api.github.com/users/imathno/repos","events_url":"https://api.github.com/users/imathno/events{/privacy}","received_events_url":"https://api.github.com/users/imathno/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2017-01-28T18:36:26Z","updated_at":"2017-01-28T18:36:26Z","html_url":"https://github.com/Team488/TeamXbot2017/pull/8#discussion_r98336684","pull_request_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/comments/98336684"},"html":{"href":"https://github.com/Team488/TeamXbot2017/pull/8#discussion_r98336684"},"pull_request":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8","id":103437621,"html_url":"https://github.com/Team488/TeamXbot2017/pull/8","diff_url":"https://github.com/Team488/TeamXbot2017/pull/8.diff","patch_url":"https://github.com/Team488/TeamXbot2017/pull/8.patch","issue_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/8","number":8,"state":"open","locked":false,"title":"Feature/drive to position command","user":{"login":"imathno","id":15962378,"avatar_url":"https://avatars.githubusercontent.com/u/15962378?v=3","gravatar_id":"","url":"https://api.github.com/users/imathno","html_url":"https://github.com/imathno","followers_url":"https://api.github.com/users/imathno/followers","following_url":"https://api.github.com/users/imathno/following{/other_user}","gists_url":"https://api.github.com/users/imathno/gists{/gist_id}","starred_url":"https://api.github.com/users/imathno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imathno/subscriptions","organizations_url":"https://api.github.com/users/imathno/orgs","repos_url":"https://api.github.com/users/imathno/repos","events_url":"https://api.github.com/users/imathno/events{/privacy}","received_events_url":"https://api.github.com/users/imathno/received_events","type":"User","site_admin":false},"body":"Implemented DriveToPositionCommand\r\nAdded new method to DriveTestBase\r\nAdded test for DriveToPositionCommand","created_at":"2017-01-27T04:43:16Z","updated_at":"2017-01-28T18:36:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e23f7eafeb5cca9305ad818bcc54e6285b2a0d1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/8/comments","statuses_url":"https://api.github.com/repos/Team488/TeamXbot2017/statuses/34edf47beee1a6f30877edaaf7f2dc07c99d3ba3","head":{"label":"Team488:feature/drive-to-position-command","ref":"feature/drive-to-position-command","sha":"34edf47beee1a6f30877edaaf7f2dc07c99d3ba3","user":{"login":"Team488","id":3441816,"avatar_url":"https://avatars.githubusercontent.com/u/3441816?v=3","gravatar_id":"","url":"https://api.github.com/users/Team488","html_url":"https://github.com/Team488","followers_url":"https://api.github.com/users/Team488/followers","following_url":"https://api.github.com/users/Team488/following{/other_user}","gists_url":"https://api.github.com/users/Team488/gists{/gist_id}","starred_url":"https://api.github.com/users/Team488/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team488/subscriptions","organizations_url":"https://api.github.com/users/Team488/orgs","repos_url":"https://api.github.com/users/Team488/repos","events_url":"https://api.github.com/users/Team488/events{/privacy}","received_events_url":"https://api.github.com/users/Team488/received_events","type":"Organization","site_admin":false},"repo":{"id":79303141,"name":"TeamXbot2017","full_name":"Team488/TeamXbot2017","owner":{"login":"Team488","id":3441816,"avatar_url":"https://avatars.githubusercontent.com/u/3441816?v=3","gravatar_id":"","url":"https://api.github.com/users/Team488","html_url":"https://github.com/Team488","followers_url":"https://api.github.com/users/Team488/followers","following_url":"https://api.github.com/users/Team488/following{/other_user}","gists_url":"https://api.github.com/users/Team488/gists{/gist_id}","starred_url":"https://api.github.com/users/Team488/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team488/subscriptions","organizations_url":"https://api.github.com/users/Team488/orgs","repos_url":"https://api.github.com/users/Team488/repos","events_url":"https://api.github.com/users/Team488/events{/privacy}","received_events_url":"https://api.github.com/users/Team488/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Team488/TeamXbot2017","description":"2017 competition bot","fork":false,"url":"https://api.github.com/repos/Team488/TeamXbot2017","forks_url":"https://api.github.com/repos/Team488/TeamXbot2017/forks","keys_url":"https://api.github.com/repos/Team488/TeamXbot2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Team488/TeamXbot2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Team488/TeamXbot2017/teams","hooks_url":"https://api.github.com/repos/Team488/TeamXbot2017/hooks","issue_events_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/events{/number}","events_url":"https://api.github.com/repos/Team488/TeamXbot2017/events","assignees_url":"https://api.github.com/repos/Team488/TeamXbot2017/assignees{/user}","branches_url":"https://api.github.com/repos/Team488/TeamXbot2017/branches{/branch}","tags_url":"https://api.github.com/repos/Team488/TeamXbot2017/tags","blobs_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Team488/TeamXbot2017/statuses/{sha}","languages_url":"https://api.github.com/repos/Team488/TeamXbot2017/languages","stargazers_url":"https://api.github.com/repos/Team488/TeamXbot2017/stargazers","contributors_url":"https://api.github.com/repos/Team488/TeamXbot2017/contributors","subscribers_url":"https://api.github.com/repos/Team488/TeamXbot2017/subscribers","subscription_url":"https://api.github.com/repos/Team488/TeamXbot2017/subscription","commits_url":"https://api.github.com/repos/Team488/TeamXbot2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/Team488/TeamXbot2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/Team488/TeamXbot2017/contents/{+path}","compare_url":"https://api.github.com/repos/Team488/TeamXbot2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Team488/TeamXbot2017/merges","archive_url":"https://api.github.com/repos/Team488/TeamXbot2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Team488/TeamXbot2017/downloads","issues_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues{/number}","pulls_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls{/number}","milestones_url":"https://api.github.com/repos/Team488/TeamXbot2017/milestones{/number}","notifications_url":"https://api.github.com/repos/Team488/TeamXbot2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Team488/TeamXbot2017/labels{/name}","releases_url":"https://api.github.com/repos/Team488/TeamXbot2017/releases{/id}","deployments_url":"https://api.github.com/repos/Team488/TeamXbot2017/deployments","created_at":"2017-01-18T04:25:55Z","updated_at":"2017-01-18T04:41:05Z","pushed_at":"2017-01-28T18:18:18Z","git_url":"git://github.com/Team488/TeamXbot2017.git","ssh_url":"git@github.com:Team488/TeamXbot2017.git","clone_url":"https://github.com/Team488/TeamXbot2017.git","svn_url":"https://github.com/Team488/TeamXbot2017","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Team488:master","ref":"master","sha":"a0aaafc8fe3d97a133a046c3269c9e82d3c5232a","user":{"login":"Team488","id":3441816,"avatar_url":"https://avatars.githubusercontent.com/u/3441816?v=3","gravatar_id":"","url":"https://api.github.com/users/Team488","html_url":"https://github.com/Team488","followers_url":"https://api.github.com/users/Team488/followers","following_url":"https://api.github.com/users/Team488/following{/other_user}","gists_url":"https://api.github.com/users/Team488/gists{/gist_id}","starred_url":"https://api.github.com/users/Team488/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team488/subscriptions","organizations_url":"https://api.github.com/users/Team488/orgs","repos_url":"https://api.github.com/users/Team488/repos","events_url":"https://api.github.com/users/Team488/events{/privacy}","received_events_url":"https://api.github.com/users/Team488/received_events","type":"Organization","site_admin":false},"repo":{"id":79303141,"name":"TeamXbot2017","full_name":"Team488/TeamXbot2017","owner":{"login":"Team488","id":3441816,"avatar_url":"https://avatars.githubusercontent.com/u/3441816?v=3","gravatar_id":"","url":"https://api.github.com/users/Team488","html_url":"https://github.com/Team488","followers_url":"https://api.github.com/users/Team488/followers","following_url":"https://api.github.com/users/Team488/following{/other_user}","gists_url":"https://api.github.com/users/Team488/gists{/gist_id}","starred_url":"https://api.github.com/users/Team488/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team488/subscriptions","organizations_url":"https://api.github.com/users/Team488/orgs","repos_url":"https://api.github.com/users/Team488/repos","events_url":"https://api.github.com/users/Team488/events{/privacy}","received_events_url":"https://api.github.com/users/Team488/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Team488/TeamXbot2017","description":"2017 competition bot","fork":false,"url":"https://api.github.com/repos/Team488/TeamXbot2017","forks_url":"https://api.github.com/repos/Team488/TeamXbot2017/forks","keys_url":"https://api.github.com/repos/Team488/TeamXbot2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Team488/TeamXbot2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Team488/TeamXbot2017/teams","hooks_url":"https://api.github.com/repos/Team488/TeamXbot2017/hooks","issue_events_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/events{/number}","events_url":"https://api.github.com/repos/Team488/TeamXbot2017/events","assignees_url":"https://api.github.com/repos/Team488/TeamXbot2017/assignees{/user}","branches_url":"https://api.github.com/repos/Team488/TeamXbot2017/branches{/branch}","tags_url":"https://api.github.com/repos/Team488/TeamXbot2017/tags","blobs_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Team488/TeamXbot2017/statuses/{sha}","languages_url":"https://api.github.com/repos/Team488/TeamXbot2017/languages","stargazers_url":"https://api.github.com/repos/Team488/TeamXbot2017/stargazers","contributors_url":"https://api.github.com/repos/Team488/TeamXbot2017/contributors","subscribers_url":"https://api.github.com/repos/Team488/TeamXbot2017/subscribers","subscription_url":"https://api.github.com/repos/Team488/TeamXbot2017/subscription","commits_url":"https://api.github.com/repos/Team488/TeamXbot2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/Team488/TeamXbot2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/Team488/TeamXbot2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/Team488/TeamXbot2017/contents/{+path}","compare_url":"https://api.github.com/repos/Team488/TeamXbot2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Team488/TeamXbot2017/merges","archive_url":"https://api.github.com/repos/Team488/TeamXbot2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Team488/TeamXbot2017/downloads","issues_url":"https://api.github.com/repos/Team488/TeamXbot2017/issues{/number}","pulls_url":"https://api.github.com/repos/Team488/TeamXbot2017/pulls{/number}","milestones_url":"https://api.github.com/repos/Team488/TeamXbot2017/milestones{/number}","notifications_url":"https://api.github.com/repos/Team488/TeamXbot2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Team488/TeamXbot2017/labels{/name}","releases_url":"https://api.github.com/repos/Team488/TeamXbot2017/releases{/id}","deployments_url":"https://api.github.com/repos/Team488/TeamXbot2017/deployments","created_at":"2017-01-18T04:25:55Z","updated_at":"2017-01-18T04:41:05Z","pushed_at":"2017-01-28T18:18:18Z","git_url":"git://github.com/Team488/TeamXbot2017.git","ssh_url":"git@github.com:Team488/TeamXbot2017.git","clone_url":"https://github.com/Team488/TeamXbot2017.git","svn_url":"https://github.com/Team488/TeamXbot2017","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8"},"html":{"href":"https://github.com/Team488/TeamXbot2017/pull/8"},"issue":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/issues/8"},"comments":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Team488/TeamXbot2017/statuses/34edf47beee1a6f30877edaaf7f2dc07c99d3ba3"}}}}
{"actor":{"display_login":"imathno"}}