{"action":"opened","number":65,"pull_request":{"url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65","id":65407438,"html_url":"https://github.com/SRJC-Computer-Science-Club/micromouse/pull/65","diff_url":"https://github.com/SRJC-Computer-Science-Club/micromouse/pull/65.diff","patch_url":"https://github.com/SRJC-Computer-Science-Club/micromouse/pull/65.patch","issue_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/65","number":65,"state":"open","locked":false,"title":"Benji + Oran gyro2","user":{"login":"whothat","id":4276762,"avatar_url":"https://avatars.githubusercontent.com/u/4276762?v=3","gravatar_id":"","url":"https://api.github.com/users/whothat","html_url":"https://github.com/whothat","followers_url":"https://api.github.com/users/whothat/followers","following_url":"https://api.github.com/users/whothat/following{/other_user}","gists_url":"https://api.github.com/users/whothat/gists{/gist_id}","starred_url":"https://api.github.com/users/whothat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whothat/subscriptions","organizations_url":"https://api.github.com/users/whothat/orgs","repos_url":"https://api.github.com/users/whothat/repos","events_url":"https://api.github.com/users/whothat/events{/privacy}","received_events_url":"https://api.github.com/users/whothat/received_events","type":"User","site_admin":false},"body":"* [X] Compiles on desktop\r\n* [X] Complies on Teensy\r\n\r\nNOT TESTED, but compiles\r\n\r\n#### Additions\r\nMagnetometer class\r\n\r\nthis class represents the magnetometer that is part of the LSM9DS0 9DOF sensor\r\nit uses the x and y components of the vector returned by the magnetometer library\r\nit calculates the heading of the mouse based on the x and y components\r\nzero should be called as part of the calibration process, \r\nthe mouse should be facing 'North' relative to the maze when called and should not be touched or \r\nmoved\r\n\r\npublic functions\r\n\r\nfloat getHeading(); // returns the heading in degrees CW from the north set from zero()\r\ndirection getDirection(); // returns the heading as a direction type N, NW, W etc.\r\n\r\nvoid zero(); //sets north to the direction mouse is facing\r\n// takes 50ms \r\n// do not call during main run/map routine\r\n\r\n\r\n###TODO\r\n\r\nfigure out if the i2c pins are correctly chosen automatically\r\n","created_at":"2016-04-06T04:06:42Z","updated_at":"2016-04-06T04:06:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65/commits","review_comments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65/comments","review_comment_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/65/comments","statuses_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/statuses/035c6a642887134c01b648b9e566259ce0d814ec","head":{"label":"SRJC-Computer-Science-Club:benji_gyro2","ref":"benji_gyro2","sha":"035c6a642887134c01b648b9e566259ce0d814ec","user":{"login":"SRJC-Computer-Science-Club","id":17036414,"avatar_url":"https://avatars.githubusercontent.com/u/17036414?v=3","gravatar_id":"","url":"https://api.github.com/users/SRJC-Computer-Science-Club","html_url":"https://github.com/SRJC-Computer-Science-Club","followers_url":"https://api.github.com/users/SRJC-Computer-Science-Club/followers","following_url":"https://api.github.com/users/SRJC-Computer-Science-Club/following{/other_user}","gists_url":"https://api.github.com/users/SRJC-Computer-Science-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/SRJC-Computer-Science-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SRJC-Computer-Science-Club/subscriptions","organizations_url":"https://api.github.com/users/SRJC-Computer-Science-Club/orgs","repos_url":"https://api.github.com/users/SRJC-Computer-Science-Club/repos","events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/events{/privacy}","received_events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/received_events","type":"Organization","site_admin":false},"repo":{"id":50962936,"name":"micromouse","full_name":"SRJC-Computer-Science-Club/micromouse","owner":{"login":"SRJC-Computer-Science-Club","id":17036414,"avatar_url":"https://avatars.githubusercontent.com/u/17036414?v=3","gravatar_id":"","url":"https://api.github.com/users/SRJC-Computer-Science-Club","html_url":"https://github.com/SRJC-Computer-Science-Club","followers_url":"https://api.github.com/users/SRJC-Computer-Science-Club/followers","following_url":"https://api.github.com/users/SRJC-Computer-Science-Club/following{/other_user}","gists_url":"https://api.github.com/users/SRJC-Computer-Science-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/SRJC-Computer-Science-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SRJC-Computer-Science-Club/subscriptions","organizations_url":"https://api.github.com/users/SRJC-Computer-Science-Club/orgs","repos_url":"https://api.github.com/users/SRJC-Computer-Science-Club/repos","events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/events{/privacy}","received_events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SRJC-Computer-Science-Club/micromouse","description":"","fork":false,"url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse","forks_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/forks","keys_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/teams","hooks_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/hooks","issue_events_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/events{/number}","events_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/events","assignees_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/assignees{/user}","branches_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/branches{/branch}","tags_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/tags","blobs_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/statuses/{sha}","languages_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/languages","stargazers_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/stargazers","contributors_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/contributors","subscribers_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/subscribers","subscription_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/subscription","commits_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/contents/{+path}","compare_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/merges","archive_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/downloads","issues_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues{/number}","pulls_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls{/number}","milestones_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/milestones{/number}","notifications_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/labels{/name}","releases_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/releases{/id}","deployments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/deployments","created_at":"2016-02-03T00:45:58Z","updated_at":"2016-03-15T04:49:13Z","pushed_at":"2016-04-06T04:05:54Z","git_url":"git://github.com/SRJC-Computer-Science-Club/micromouse.git","ssh_url":"git@github.com:SRJC-Computer-Science-Club/micromouse.git","clone_url":"https://github.com/SRJC-Computer-Science-Club/micromouse.git","svn_url":"https://github.com/SRJC-Computer-Science-Club/micromouse","homepage":null,"size":1947,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"dev"}},"base":{"label":"SRJC-Computer-Science-Club:dev","ref":"dev","sha":"2797a8eff08bf3097ca8b5204ca7854167e8d338","user":{"login":"SRJC-Computer-Science-Club","id":17036414,"avatar_url":"https://avatars.githubusercontent.com/u/17036414?v=3","gravatar_id":"","url":"https://api.github.com/users/SRJC-Computer-Science-Club","html_url":"https://github.com/SRJC-Computer-Science-Club","followers_url":"https://api.github.com/users/SRJC-Computer-Science-Club/followers","following_url":"https://api.github.com/users/SRJC-Computer-Science-Club/following{/other_user}","gists_url":"https://api.github.com/users/SRJC-Computer-Science-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/SRJC-Computer-Science-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SRJC-Computer-Science-Club/subscriptions","organizations_url":"https://api.github.com/users/SRJC-Computer-Science-Club/orgs","repos_url":"https://api.github.com/users/SRJC-Computer-Science-Club/repos","events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/events{/privacy}","received_events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/received_events","type":"Organization","site_admin":false},"repo":{"id":50962936,"name":"micromouse","full_name":"SRJC-Computer-Science-Club/micromouse","owner":{"login":"SRJC-Computer-Science-Club","id":17036414,"avatar_url":"https://avatars.githubusercontent.com/u/17036414?v=3","gravatar_id":"","url":"https://api.github.com/users/SRJC-Computer-Science-Club","html_url":"https://github.com/SRJC-Computer-Science-Club","followers_url":"https://api.github.com/users/SRJC-Computer-Science-Club/followers","following_url":"https://api.github.com/users/SRJC-Computer-Science-Club/following{/other_user}","gists_url":"https://api.github.com/users/SRJC-Computer-Science-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/SRJC-Computer-Science-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SRJC-Computer-Science-Club/subscriptions","organizations_url":"https://api.github.com/users/SRJC-Computer-Science-Club/orgs","repos_url":"https://api.github.com/users/SRJC-Computer-Science-Club/repos","events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/events{/privacy}","received_events_url":"https://api.github.com/users/SRJC-Computer-Science-Club/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SRJC-Computer-Science-Club/micromouse","description":"","fork":false,"url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse","forks_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/forks","keys_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/teams","hooks_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/hooks","issue_events_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/events{/number}","events_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/events","assignees_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/assignees{/user}","branches_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/branches{/branch}","tags_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/tags","blobs_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/statuses/{sha}","languages_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/languages","stargazers_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/stargazers","contributors_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/contributors","subscribers_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/subscribers","subscription_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/subscription","commits_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/contents/{+path}","compare_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/merges","archive_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/downloads","issues_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues{/number}","pulls_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls{/number}","milestones_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/milestones{/number}","notifications_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/labels{/name}","releases_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/releases{/id}","deployments_url":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/deployments","created_at":"2016-02-03T00:45:58Z","updated_at":"2016-03-15T04:49:13Z","pushed_at":"2016-04-06T04:05:54Z","git_url":"git://github.com/SRJC-Computer-Science-Club/micromouse.git","ssh_url":"git@github.com:SRJC-Computer-Science-Club/micromouse.git","clone_url":"https://github.com/SRJC-Computer-Science-Club/micromouse.git","svn_url":"https://github.com/SRJC-Computer-Science-Club/micromouse","homepage":null,"size":1947,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65"},"html":{"href":"https://github.com/SRJC-Computer-Science-Club/micromouse/pull/65"},"issue":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/65"},"comments":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/SRJC-Computer-Science-Club/micromouse/statuses/035c6a642887134c01b648b9e566259ce0d814ec"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":18,"additions":151,"deletions":8,"changed_files":8}}