{"action":"created","comment":{"url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/comments/209538827","pull_request_review_id":145569569,"id":209538827,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTUzODgyNw==","diff_hunk":"@@ -0,0 +1,83 @@\n+#Proportional-Integral-Derivative Controller\n+\n+The proportional-integral-derivative controller (PID controller) is a control loop feedback mechanism, used for continuously modulated control.\n+The PID controller is in three parts proportional controller, integral controller, and derivative controller.\n+\n+Before we get into how a PID controller works, we need a good example to use to explain how it work.\n+Imagine you are making a self driving rc car that drives on a line, how wuld make it work given that the car moves with a constent speed.\n+\n+### Proportional Controller\n+\n+If the car is too far to the right then you would turn left and visa versa.\n+Since there is a range of angles you can turn the wheel, you can turn with proportion to how far you are from the line.\n+This is what the proportional controller (P controller) does, which is given by,\n+\n+$$ P = K_{p} e(t), $$\n+\n+Where $K_{p}$ is a constant and $e(t)$ is the current error.\n+The performance of the controller improves with larger $K_{p}$;\n+if $K_{p}$ is too high then when the error is too high, the system becomes unstable, i.e. the rc car drives in a circle.\n+\n+### Derivative Controller\n+\n+The P controller works well but it has the added problem of overshoting a lot.","path":"contents/pid_controller/pid_controller.md","position":23,"original_position":23,"commit_id":"aaa8c404ae081f21f6874c852edc568b41d57340","original_commit_id":"874abf528094fb237b0734690f0c2254573d8a7d","user":{"login":"Gathros","id":6323830,"node_id":"MDQ6VXNlcjYzMjM4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6323830?v=4","gravatar_id":"","url":"https://api.github.com/users/Gathros","html_url":"https://github.com/Gathros","followers_url":"https://api.github.com/users/Gathros/followers","following_url":"https://api.github.com/users/Gathros/following{/other_user}","gists_url":"https://api.github.com/users/Gathros/gists{/gist_id}","starred_url":"https://api.github.com/users/Gathros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gathros/subscriptions","organizations_url":"https://api.github.com/users/Gathros/orgs","repos_url":"https://api.github.com/users/Gathros/repos","events_url":"https://api.github.com/users/Gathros/events{/privacy}","received_events_url":"https://api.github.com/users/Gathros/received_events","type":"User","site_admin":false},"body":"I prefer it here.","created_at":"2018-08-13T09:09:37Z","updated_at":"2018-08-13T09:09:37Z","html_url":"https://github.com/algorithm-archivists/algorithm-archive/pull/346#discussion_r209538827","pull_request_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/comments/209538827"},"html":{"href":"https://github.com/algorithm-archivists/algorithm-archive/pull/346#discussion_r209538827"},"pull_request":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346"}},"in_reply_to_id":208888402},"pull_request":{"url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346","id":207073871,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MDczODcx","html_url":"https://github.com/algorithm-archivists/algorithm-archive/pull/346","diff_url":"https://github.com/algorithm-archivists/algorithm-archive/pull/346.diff","patch_url":"https://github.com/algorithm-archivists/algorithm-archive/pull/346.patch","issue_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/346","number":346,"state":"open","locked":false,"title":"Adding PID controller Chapter.","user":{"login":"Gathros","id":6323830,"node_id":"MDQ6VXNlcjYzMjM4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6323830?v=4","gravatar_id":"","url":"https://api.github.com/users/Gathros","html_url":"https://github.com/Gathros","followers_url":"https://api.github.com/users/Gathros/followers","following_url":"https://api.github.com/users/Gathros/following{/other_user}","gists_url":"https://api.github.com/users/Gathros/gists{/gist_id}","starred_url":"https://api.github.com/users/Gathros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gathros/subscriptions","organizations_url":"https://api.github.com/users/Gathros/orgs","repos_url":"https://api.github.com/users/Gathros/repos","events_url":"https://api.github.com/users/Gathros/events{/privacy}","received_events_url":"https://api.github.com/users/Gathros/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-08T16:57:32Z","updated_at":"2018-08-13T09:09:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b2890bdde1576ed31f5299f30e4d8ab19fbb000","assignee":{"login":"leios","id":4985692,"node_id":"MDQ6VXNlcjQ5ODU2OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/4985692?v=4","gravatar_id":"","url":"https://api.github.com/users/leios","html_url":"https://github.com/leios","followers_url":"https://api.github.com/users/leios/followers","following_url":"https://api.github.com/users/leios/following{/other_user}","gists_url":"https://api.github.com/users/leios/gists{/gist_id}","starred_url":"https://api.github.com/users/leios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leios/subscriptions","organizations_url":"https://api.github.com/users/leios/orgs","repos_url":"https://api.github.com/users/leios/repos","events_url":"https://api.github.com/users/leios/events{/privacy}","received_events_url":"https://api.github.com/users/leios/received_events","type":"User","site_admin":false},"assignees":[{"login":"leios","id":4985692,"node_id":"MDQ6VXNlcjQ5ODU2OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/4985692?v=4","gravatar_id":"","url":"https://api.github.com/users/leios","html_url":"https://github.com/leios","followers_url":"https://api.github.com/users/leios/followers","following_url":"https://api.github.com/users/leios/following{/other_user}","gists_url":"https://api.github.com/users/leios/gists{/gist_id}","starred_url":"https://api.github.com/users/leios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leios/subscriptions","organizations_url":"https://api.github.com/users/leios/orgs","repos_url":"https://api.github.com/users/leios/repos","events_url":"https://api.github.com/users/leios/events{/privacy}","received_events_url":"https://api.github.com/users/leios/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":931253276,"node_id":"MDU6TGFiZWw5MzEyNTMyNzY=","url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/labels/Chapter","name":"Chapter","color":"fbca04","default":false},{"id":917133710,"node_id":"MDU6TGFiZWw5MTcxMzM3MTA=","url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/labels/Implementation","name":"Implementation","color":"0960e2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346/commits","review_comments_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346/comments","review_comment_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/346/comments","statuses_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/statuses/aaa8c404ae081f21f6874c852edc568b41d57340","head":{"label":"Gathros:PID","ref":"PID","sha":"aaa8c404ae081f21f6874c852edc568b41d57340","user":{"login":"Gathros","id":6323830,"node_id":"MDQ6VXNlcjYzMjM4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6323830?v=4","gravatar_id":"","url":"https://api.github.com/users/Gathros","html_url":"https://github.com/Gathros","followers_url":"https://api.github.com/users/Gathros/followers","following_url":"https://api.github.com/users/Gathros/following{/other_user}","gists_url":"https://api.github.com/users/Gathros/gists{/gist_id}","starred_url":"https://api.github.com/users/Gathros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gathros/subscriptions","organizations_url":"https://api.github.com/users/Gathros/orgs","repos_url":"https://api.github.com/users/Gathros/repos","events_url":"https://api.github.com/users/Gathros/events{/privacy}","received_events_url":"https://api.github.com/users/Gathros/received_events","type":"User","site_admin":false},"repo":{"id":121783200,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE3ODMyMDA=","name":"algorithm-archive","full_name":"Gathros/algorithm-archive","owner":{"login":"Gathros","id":6323830,"node_id":"MDQ6VXNlcjYzMjM4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6323830?v=4","gravatar_id":"","url":"https://api.github.com/users/Gathros","html_url":"https://github.com/Gathros","followers_url":"https://api.github.com/users/Gathros/followers","following_url":"https://api.github.com/users/Gathros/following{/other_user}","gists_url":"https://api.github.com/users/Gathros/gists{/gist_id}","starred_url":"https://api.github.com/users/Gathros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gathros/subscriptions","organizations_url":"https://api.github.com/users/Gathros/orgs","repos_url":"https://api.github.com/users/Gathros/repos","events_url":"https://api.github.com/users/Gathros/events{/privacy}","received_events_url":"https://api.github.com/users/Gathros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gathros/algorithm-archive","description":"The Arcane Algorithm Archive for all our adventures on LeiosOS / simuleios","fork":true,"url":"https://api.github.com/repos/Gathros/algorithm-archive","forks_url":"https://api.github.com/repos/Gathros/algorithm-archive/forks","keys_url":"https://api.github.com/repos/Gathros/algorithm-archive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gathros/algorithm-archive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gathros/algorithm-archive/teams","hooks_url":"https://api.github.com/repos/Gathros/algorithm-archive/hooks","issue_events_url":"https://api.github.com/repos/Gathros/algorithm-archive/issues/events{/number}","events_url":"https://api.github.com/repos/Gathros/algorithm-archive/events","assignees_url":"https://api.github.com/repos/Gathros/algorithm-archive/assignees{/user}","branches_url":"https://api.github.com/repos/Gathros/algorithm-archive/branches{/branch}","tags_url":"https://api.github.com/repos/Gathros/algorithm-archive/tags","blobs_url":"https://api.github.com/repos/Gathros/algorithm-archive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gathros/algorithm-archive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gathros/algorithm-archive/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gathros/algorithm-archive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gathros/algorithm-archive/statuses/{sha}","languages_url":"https://api.github.com/repos/Gathros/algorithm-archive/languages","stargazers_url":"https://api.github.com/repos/Gathros/algorithm-archive/stargazers","contributors_url":"https://api.github.com/repos/Gathros/algorithm-archive/contributors","subscribers_url":"https://api.github.com/repos/Gathros/algorithm-archive/subscribers","subscription_url":"https://api.github.com/repos/Gathros/algorithm-archive/subscription","commits_url":"https://api.github.com/repos/Gathros/algorithm-archive/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gathros/algorithm-archive/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gathros/algorithm-archive/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gathros/algorithm-archive/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gathros/algorithm-archive/contents/{+path}","compare_url":"https://api.github.com/repos/Gathros/algorithm-archive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gathros/algorithm-archive/merges","archive_url":"https://api.github.com/repos/Gathros/algorithm-archive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gathros/algorithm-archive/downloads","issues_url":"https://api.github.com/repos/Gathros/algorithm-archive/issues{/number}","pulls_url":"https://api.github.com/repos/Gathros/algorithm-archive/pulls{/number}","milestones_url":"https://api.github.com/repos/Gathros/algorithm-archive/milestones{/number}","notifications_url":"https://api.github.com/repos/Gathros/algorithm-archive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gathros/algorithm-archive/labels{/name}","releases_url":"https://api.github.com/repos/Gathros/algorithm-archive/releases{/id}","deployments_url":"https://api.github.com/repos/Gathros/algorithm-archive/deployments","created_at":"2018-02-16T18:04:48Z","updated_at":"2018-08-07T20:49:36Z","pushed_at":"2018-08-09T16:30:20Z","git_url":"git://github.com/Gathros/algorithm-archive.git","ssh_url":"git@github.com:Gathros/algorithm-archive.git","clone_url":"https://github.com/Gathros/algorithm-archive.git","svn_url":"https://github.com/Gathros/algorithm-archive","homepage":null,"size":8618,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"algorithm-archivists:master","ref":"master","sha":"dba1280f67ab14c86ce08ae74efe16b5b5c255d6","user":{"login":"algorithm-archivists","id":38796691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Nzk2Njkx","avatar_url":"https://avatars2.githubusercontent.com/u/38796691?v=4","gravatar_id":"","url":"https://api.github.com/users/algorithm-archivists","html_url":"https://github.com/algorithm-archivists","followers_url":"https://api.github.com/users/algorithm-archivists/followers","following_url":"https://api.github.com/users/algorithm-archivists/following{/other_user}","gists_url":"https://api.github.com/users/algorithm-archivists/gists{/gist_id}","starred_url":"https://api.github.com/users/algorithm-archivists/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algorithm-archivists/subscriptions","organizations_url":"https://api.github.com/users/algorithm-archivists/orgs","repos_url":"https://api.github.com/users/algorithm-archivists/repos","events_url":"https://api.github.com/users/algorithm-archivists/events{/privacy}","received_events_url":"https://api.github.com/users/algorithm-archivists/received_events","type":"Organization","site_admin":false},"repo":{"id":81649789,"node_id":"MDEwOlJlcG9zaXRvcnk4MTY0OTc4OQ==","name":"algorithm-archive","full_name":"algorithm-archivists/algorithm-archive","owner":{"login":"algorithm-archivists","id":38796691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Nzk2Njkx","avatar_url":"https://avatars2.githubusercontent.com/u/38796691?v=4","gravatar_id":"","url":"https://api.github.com/users/algorithm-archivists","html_url":"https://github.com/algorithm-archivists","followers_url":"https://api.github.com/users/algorithm-archivists/followers","following_url":"https://api.github.com/users/algorithm-archivists/following{/other_user}","gists_url":"https://api.github.com/users/algorithm-archivists/gists{/gist_id}","starred_url":"https://api.github.com/users/algorithm-archivists/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algorithm-archivists/subscriptions","organizations_url":"https://api.github.com/users/algorithm-archivists/orgs","repos_url":"https://api.github.com/users/algorithm-archivists/repos","events_url":"https://api.github.com/users/algorithm-archivists/events{/privacy}","received_events_url":"https://api.github.com/users/algorithm-archivists/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algorithm-archivists/algorithm-archive","description":"A collaborative book on algorithms","fork":false,"url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive","forks_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/forks","keys_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/teams","hooks_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/hooks","issue_events_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/events{/number}","events_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/events","assignees_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/assignees{/user}","branches_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/branches{/branch}","tags_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/tags","blobs_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/git/refs{/sha}","trees_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/statuses/{sha}","languages_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/languages","stargazers_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/stargazers","contributors_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/contributors","subscribers_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/subscribers","subscription_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/subscription","commits_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/commits{/sha}","git_commits_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/git/commits{/sha}","comments_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/comments{/number}","issue_comment_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/comments{/number}","contents_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/contents/{+path}","compare_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/merges","archive_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/downloads","issues_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues{/number}","pulls_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls{/number}","milestones_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/milestones{/number}","notifications_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/labels{/name}","releases_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/releases{/id}","deployments_url":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/deployments","created_at":"2017-02-11T11:52:40Z","updated_at":"2018-08-13T04:49:19Z","pushed_at":"2018-08-13T04:49:13Z","git_url":"git://github.com/algorithm-archivists/algorithm-archive.git","ssh_url":"git@github.com:algorithm-archivists/algorithm-archive.git","clone_url":"https://github.com/algorithm-archivists/algorithm-archive.git","svn_url":"https://github.com/algorithm-archivists/algorithm-archive","homepage":"https://www.algorithm-archive.org","size":8620,"stargazers_count":471,"watchers_count":471,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":121,"mirror_url":null,"archived":false,"open_issues_count":42,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":121,"open_issues":42,"watchers":471,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346"},"html":{"href":"https://github.com/algorithm-archivists/algorithm-archive/pull/346"},"issue":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/346"},"comments":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/issues/346/comments"},"review_comments":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346/comments"},"review_comment":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/pulls/346/commits"},"statuses":{"href":"https://api.github.com/repos/algorithm-archivists/algorithm-archive/statuses/aaa8c404ae081f21f6874c852edc568b41d57340"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Gathros"}}