{"action":"created","comment":{"url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/comments/108555121","pull_request_review_id":29593946,"id":108555121,"diff_hunk":"@@ -0,0 +1,374 @@\n+#include \"Sensor.h\"\n+#include <iostream>\n+#include <unistd.h>\n+#include \"Pod.h\"\n+#include \"StateMachineCompact/stdafx.h\"\n+#include <string>\n+#include <fstream>\n+#include <sstream>\n+#include <algorithm>\n+#include <vector>\n+#include <stdlib.h>\n+\n+#include <time.h>\n+\n+using namespace std;\n+\n+// declaring function, implented later\n+void print_help();\n+void print_help_instr();\n+\n+/**\n+\tbrings out the best in all of us\n+*/\n+void memes() {\n+\tsrand(time(NULL));\n+\tint r = rand() % 5 +1;\n+\n+\tcout << \"MEME LORD IS HERE FOR YOU:\" << endl;\n+\tif(r == 1) {\n+\t\tcout << \"http://media.treehugger.com/assets/images/2013/08/elon-musk-hyperloop-good-guy-elon-musk-meme-chris-tackett.png.662x0_q70_crop-scale.png\" << endl;\n+\t} else if (r == 2) {\n+\t\tcout << \"http://s2.quickmeme.com/img/e6/e6b0f2395a1b7168c30c19881f51e8d20e83d08bec4d0b2a67e69a0cd18b43b1.jpg\" << endl;\n+\t} else if (r == 3) {\t\n+\t\tcout << \"http://www.mememaker.net/static/images/memes/4284241.jpg\" << endl;\n+\t} else if (r == 4) {\n+\t\tcout << \"https://cdn.meme.am/cache/instances/folder695/63313695.jpg\" << endl;\n+\t} else if (r == 5) {\n+\t\tcout << \"https://s-media-cache-ak0.pinimg.com/736x/92/ab/3a/92ab3abea77d3f6a397fe8545993713e.jpg\" << endl;\n+\t}\n+\tcout << endl;\n+}\n+\n+/**\n+\tchecks if the current state of pod matches witht the check state command\n+\tword: check state command to be executed\n+\tpod: reference of pod to be checked\n+\n+\treturn: if the current state is the same as in command\n+*/\n+bool assert_state_equals(string word, Pod& pod) {\n+\tsize_t start = word.find(\"[\");\n+\tsize_t end = word.find(\"]\");\n+\tstring arg = word.substr(start+1,end-1);\n+\tint state = pod.get_current_state();\n+\t\n+\t// switch case for all the different states\n+\t// uses","path":"CentralComputing/Sensor_Test.cpp","position":57,"original_position":57,"commit_id":"a77641e3773e6e8ee63137dafd2a4e90b1ab4172","original_commit_id":"a77641e3773e6e8ee63137dafd2a4e90b1ab4172","user":{"login":"mwschmi2","id":14032529,"avatar_url":"https://avatars3.githubusercontent.com/u/14032529?v=3","gravatar_id":"","url":"https://api.github.com/users/mwschmi2","html_url":"https://github.com/mwschmi2","followers_url":"https://api.github.com/users/mwschmi2/followers","following_url":"https://api.github.com/users/mwschmi2/following{/other_user}","gists_url":"https://api.github.com/users/mwschmi2/gists{/gist_id}","starred_url":"https://api.github.com/users/mwschmi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwschmi2/subscriptions","organizations_url":"https://api.github.com/users/mwschmi2/orgs","repos_url":"https://api.github.com/users/mwschmi2/repos","events_url":"https://api.github.com/users/mwschmi2/events{/privacy}","received_events_url":"https://api.github.com/users/mwschmi2/received_events","type":"User","site_admin":false},"body":"Uses what?","created_at":"2017-03-28T22:43:25Z","updated_at":"2017-03-28T22:44:53Z","html_url":"https://github.com/IlliniHyperloopComputing/Pod/pull/5#discussion_r108555121","pull_request_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/comments/108555121"},"html":{"href":"https://github.com/IlliniHyperloopComputing/Pod/pull/5#discussion_r108555121"},"pull_request":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5","id":113072644,"html_url":"https://github.com/IlliniHyperloopComputing/Pod/pull/5","diff_url":"https://github.com/IlliniHyperloopComputing/Pod/pull/5.diff","patch_url":"https://github.com/IlliniHyperloopComputing/Pod/pull/5.patch","issue_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/5","number":5,"state":"open","locked":false,"title":"With all the changes you would ever want","user":{"login":"curtislowder","id":17357997,"avatar_url":"https://avatars1.githubusercontent.com/u/17357997?v=3","gravatar_id":"","url":"https://api.github.com/users/curtislowder","html_url":"https://github.com/curtislowder","followers_url":"https://api.github.com/users/curtislowder/followers","following_url":"https://api.github.com/users/curtislowder/following{/other_user}","gists_url":"https://api.github.com/users/curtislowder/gists{/gist_id}","starred_url":"https://api.github.com/users/curtislowder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curtislowder/subscriptions","organizations_url":"https://api.github.com/users/curtislowder/orgs","repos_url":"https://api.github.com/users/curtislowder/repos","events_url":"https://api.github.com/users/curtislowder/events{/privacy}","received_events_url":"https://api.github.com/users/curtislowder/received_events","type":"User","site_admin":false},"body":"I did all the things you asked...anything else you'd like?","created_at":"2017-03-28T21:35:51Z","updated_at":"2017-03-28T22:44:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"235b7a469d0e5a9a190f470a6b1d591d095a4dea","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5/commits","review_comments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5/comments","review_comment_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/5/comments","statuses_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/statuses/a77641e3773e6e8ee63137dafd2a4e90b1ab4172","head":{"label":"IlliniHyperloopComputing:CurtBranch","ref":"CurtBranch","sha":"a77641e3773e6e8ee63137dafd2a4e90b1ab4172","user":{"login":"IlliniHyperloopComputing","id":17462841,"avatar_url":"https://avatars3.githubusercontent.com/u/17462841?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliniHyperloopComputing","html_url":"https://github.com/IlliniHyperloopComputing","followers_url":"https://api.github.com/users/IlliniHyperloopComputing/followers","following_url":"https://api.github.com/users/IlliniHyperloopComputing/following{/other_user}","gists_url":"https://api.github.com/users/IlliniHyperloopComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliniHyperloopComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliniHyperloopComputing/subscriptions","organizations_url":"https://api.github.com/users/IlliniHyperloopComputing/orgs","repos_url":"https://api.github.com/users/IlliniHyperloopComputing/repos","events_url":"https://api.github.com/users/IlliniHyperloopComputing/events{/privacy}","received_events_url":"https://api.github.com/users/IlliniHyperloopComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":52640340,"name":"Pod","full_name":"IlliniHyperloopComputing/Pod","owner":{"login":"IlliniHyperloopComputing","id":17462841,"avatar_url":"https://avatars3.githubusercontent.com/u/17462841?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliniHyperloopComputing","html_url":"https://github.com/IlliniHyperloopComputing","followers_url":"https://api.github.com/users/IlliniHyperloopComputing/followers","following_url":"https://api.github.com/users/IlliniHyperloopComputing/following{/other_user}","gists_url":"https://api.github.com/users/IlliniHyperloopComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliniHyperloopComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliniHyperloopComputing/subscriptions","organizations_url":"https://api.github.com/users/IlliniHyperloopComputing/orgs","repos_url":"https://api.github.com/users/IlliniHyperloopComputing/repos","events_url":"https://api.github.com/users/IlliniHyperloopComputing/events{/privacy}","received_events_url":"https://api.github.com/users/IlliniHyperloopComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IlliniHyperloopComputing/Pod","description":"Control system for Illini Hyperloop","fork":false,"url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod","forks_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/forks","keys_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/teams","hooks_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/hooks","issue_events_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/events{/number}","events_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/events","assignees_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/assignees{/user}","branches_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/branches{/branch}","tags_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/tags","blobs_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/refs{/sha}","trees_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/statuses/{sha}","languages_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/languages","stargazers_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/stargazers","contributors_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/contributors","subscribers_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/subscribers","subscription_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/subscription","commits_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/commits{/sha}","git_commits_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/commits{/sha}","comments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/comments{/number}","issue_comment_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/comments{/number}","contents_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/contents/{+path}","compare_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/merges","archive_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/downloads","issues_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues{/number}","pulls_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls{/number}","milestones_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/milestones{/number}","notifications_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/labels{/name}","releases_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/releases{/id}","deployments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/deployments","created_at":"2016-02-26T23:48:10Z","updated_at":"2017-02-15T06:06:37Z","pushed_at":"2017-03-28T21:38:33Z","git_url":"git://github.com/IlliniHyperloopComputing/Pod.git","ssh_url":"git@github.com:IlliniHyperloopComputing/Pod.git","clone_url":"https://github.com/IlliniHyperloopComputing/Pod.git","svn_url":"https://github.com/IlliniHyperloopComputing/Pod","homepage":"","size":1524,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"pod2"}},"base":{"label":"IlliniHyperloopComputing:pod2","ref":"pod2","sha":"34f3bee1e91d366dda5c92f5f28878ccad3b6815","user":{"login":"IlliniHyperloopComputing","id":17462841,"avatar_url":"https://avatars3.githubusercontent.com/u/17462841?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliniHyperloopComputing","html_url":"https://github.com/IlliniHyperloopComputing","followers_url":"https://api.github.com/users/IlliniHyperloopComputing/followers","following_url":"https://api.github.com/users/IlliniHyperloopComputing/following{/other_user}","gists_url":"https://api.github.com/users/IlliniHyperloopComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliniHyperloopComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliniHyperloopComputing/subscriptions","organizations_url":"https://api.github.com/users/IlliniHyperloopComputing/orgs","repos_url":"https://api.github.com/users/IlliniHyperloopComputing/repos","events_url":"https://api.github.com/users/IlliniHyperloopComputing/events{/privacy}","received_events_url":"https://api.github.com/users/IlliniHyperloopComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":52640340,"name":"Pod","full_name":"IlliniHyperloopComputing/Pod","owner":{"login":"IlliniHyperloopComputing","id":17462841,"avatar_url":"https://avatars3.githubusercontent.com/u/17462841?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliniHyperloopComputing","html_url":"https://github.com/IlliniHyperloopComputing","followers_url":"https://api.github.com/users/IlliniHyperloopComputing/followers","following_url":"https://api.github.com/users/IlliniHyperloopComputing/following{/other_user}","gists_url":"https://api.github.com/users/IlliniHyperloopComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliniHyperloopComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliniHyperloopComputing/subscriptions","organizations_url":"https://api.github.com/users/IlliniHyperloopComputing/orgs","repos_url":"https://api.github.com/users/IlliniHyperloopComputing/repos","events_url":"https://api.github.com/users/IlliniHyperloopComputing/events{/privacy}","received_events_url":"https://api.github.com/users/IlliniHyperloopComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IlliniHyperloopComputing/Pod","description":"Control system for Illini Hyperloop","fork":false,"url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod","forks_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/forks","keys_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/teams","hooks_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/hooks","issue_events_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/events{/number}","events_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/events","assignees_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/assignees{/user}","branches_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/branches{/branch}","tags_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/tags","blobs_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/refs{/sha}","trees_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/statuses/{sha}","languages_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/languages","stargazers_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/stargazers","contributors_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/contributors","subscribers_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/subscribers","subscription_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/subscription","commits_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/commits{/sha}","git_commits_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/git/commits{/sha}","comments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/comments{/number}","issue_comment_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/comments{/number}","contents_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/contents/{+path}","compare_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/merges","archive_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/downloads","issues_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues{/number}","pulls_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls{/number}","milestones_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/milestones{/number}","notifications_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/labels{/name}","releases_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/releases{/id}","deployments_url":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/deployments","created_at":"2016-02-26T23:48:10Z","updated_at":"2017-02-15T06:06:37Z","pushed_at":"2017-03-28T21:38:33Z","git_url":"git://github.com/IlliniHyperloopComputing/Pod.git","ssh_url":"git@github.com:IlliniHyperloopComputing/Pod.git","clone_url":"https://github.com/IlliniHyperloopComputing/Pod.git","svn_url":"https://github.com/IlliniHyperloopComputing/Pod","homepage":"","size":1524,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"pod2"}},"_links":{"self":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5"},"html":{"href":"https://github.com/IlliniHyperloopComputing/Pod/pull/5"},"issue":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/5"},"comments":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/IlliniHyperloopComputing/Pod/statuses/a77641e3773e6e8ee63137dafd2a4e90b1ab4172"}}}}
{"actor":{"display_login":"mwschmi2"}}