{"action":"created","comment":{"url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/comments/68481769","id":68481769,"diff_hunk":"@@ -107,5 +106,183 @@ public static double convertLatToMeters(double lat){\n     public static double convertLonToMeters(double lon){\n     \treturn lon*ONE_DEG_LON_TO_METERS_PITTSBURGH;\n     }\n+    \n+    // \n+/**\n+ * UTM (meter-based projections) to GPS Lat/Long is from\n+ * http://stackoverflow.com/questions/176137/java-convert-lat-lon-to-utm\n+ * It looks like it is based on the same algorithm as\n+ * http://www.rcn.montana.edu/resources/converter.aspx\n+ * @param loc a gps location tuple to be converted to a utm tuple \n+ * @return utm tuple of the position\n+ */\n+    public static UTMTuple deg2UTM(LocTuple loc)\n+    {\n+    \tdouble lat = loc.getLatitude();\n+    \tdouble lon = loc.getLongitude();\n+        double easting;\n+        double northing;\n+        int zone;\n+        char letter;\n+        zone= (int) Math.floor(lon/6+31);\n+        if (lat<-72) \n+            letter='C';\n+        else if (lat<-64) \n+            letter='D';\n+        else if (lat<-56)\n+            letter='E';\n+        else if (lat<-48)\n+            letter='F';\n+        else if (lat<-40)\n+            letter='G';\n+        else if (lat<-32)\n+            letter='H';\n+        else if (lat<-24)\n+            letter='J';\n+        else if (lat<-16)\n+            letter='K';\n+        else if (lat<-8) \n+            letter='L';\n+        else if (lat<0)\n+            letter='M';\n+        else if (lat<8)  \n+            letter='N';\n+        else if (lat<16) \n+            letter='P';","path":"real_time/surface_src/java_src/Alice/src/main/java/com/roboclub/robobuggy/nodes/localizers/LocalizerUtil.java","position":59,"original_position":59,"commit_id":"053f0fb18a0bdeaf566452077d930d6e698b6120","original_commit_id":"053f0fb18a0bdeaf566452077d930d6e698b6120","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid using if...else statements without curly braces](https://www.codacy.com/app/Mr-Trevor-Decker/RoboBuggy/file/2840891616/issues/source?bid=2938665&fileBranchId=3246677#l151)","created_at":"2016-06-25T01:39:49Z","updated_at":"2016-06-25T01:39:49Z","html_url":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422#discussion_r68481769","pull_request_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422","_links":{"self":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/comments/68481769"},"html":{"href":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422#discussion_r68481769"},"pull_request":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422"}}},"pull_request":{"url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422","id":67423946,"html_url":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422","diff_url":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422.diff","patch_url":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422.patch","issue_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/422","number":422,"state":"open","locked":false,"title":"Dev raceday 2016","user":{"login":"TrevorDecker","id":3860985,"avatar_url":"https://avatars.githubusercontent.com/u/3860985?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorDecker","html_url":"https://github.com/TrevorDecker","followers_url":"https://api.github.com/users/TrevorDecker/followers","following_url":"https://api.github.com/users/TrevorDecker/following{/other_user}","gists_url":"https://api.github.com/users/TrevorDecker/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorDecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorDecker/subscriptions","organizations_url":"https://api.github.com/users/TrevorDecker/orgs","repos_url":"https://api.github.com/users/TrevorDecker/repos","events_url":"https://api.github.com/users/TrevorDecker/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorDecker/received_events","type":"User","site_admin":false},"body":"Still needs to pass findbugs but this is functionally what ran on raceday ","created_at":"2016-04-21T21:17:26Z","updated_at":"2016-06-25T01:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"634274d19cb7ffe771b2c012317ab5f054122b83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422/commits","review_comments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422/comments","review_comment_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/422/comments","statuses_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/statuses/053f0fb18a0bdeaf566452077d930d6e698b6120","head":{"label":"CMU-Robotics-Club:dev_raceday_2016","ref":"dev_raceday_2016","sha":"053f0fb18a0bdeaf566452077d930d6e698b6120","user":{"login":"CMU-Robotics-Club","id":5898082,"avatar_url":"https://avatars.githubusercontent.com/u/5898082?v=3","gravatar_id":"","url":"https://api.github.com/users/CMU-Robotics-Club","html_url":"https://github.com/CMU-Robotics-Club","followers_url":"https://api.github.com/users/CMU-Robotics-Club/followers","following_url":"https://api.github.com/users/CMU-Robotics-Club/following{/other_user}","gists_url":"https://api.github.com/users/CMU-Robotics-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/CMU-Robotics-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMU-Robotics-Club/subscriptions","organizations_url":"https://api.github.com/users/CMU-Robotics-Club/orgs","repos_url":"https://api.github.com/users/CMU-Robotics-Club/repos","events_url":"https://api.github.com/users/CMU-Robotics-Club/events{/privacy}","received_events_url":"https://api.github.com/users/CMU-Robotics-Club/received_events","type":"Organization","site_admin":false},"repo":{"id":23744385,"name":"RoboBuggy","full_name":"CMU-Robotics-Club/RoboBuggy","owner":{"login":"CMU-Robotics-Club","id":5898082,"avatar_url":"https://avatars.githubusercontent.com/u/5898082?v=3","gravatar_id":"","url":"https://api.github.com/users/CMU-Robotics-Club","html_url":"https://github.com/CMU-Robotics-Club","followers_url":"https://api.github.com/users/CMU-Robotics-Club/followers","following_url":"https://api.github.com/users/CMU-Robotics-Club/following{/other_user}","gists_url":"https://api.github.com/users/CMU-Robotics-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/CMU-Robotics-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMU-Robotics-Club/subscriptions","organizations_url":"https://api.github.com/users/CMU-Robotics-Club/orgs","repos_url":"https://api.github.com/users/CMU-Robotics-Club/repos","events_url":"https://api.github.com/users/CMU-Robotics-Club/events{/privacy}","received_events_url":"https://api.github.com/users/CMU-Robotics-Club/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CMU-Robotics-Club/RoboBuggy","description":"99 problems, but a driver ain't one. (Push code, not buggies)","fork":false,"url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy","forks_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/forks","keys_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/teams","hooks_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/hooks","issue_events_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/events{/number}","events_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/events","assignees_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/assignees{/user}","branches_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/branches{/branch}","tags_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/tags","blobs_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/refs{/sha}","trees_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/statuses/{sha}","languages_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/languages","stargazers_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/stargazers","contributors_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/contributors","subscribers_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/subscribers","subscription_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/subscription","commits_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/commits{/sha}","git_commits_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/commits{/sha}","comments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/comments{/number}","issue_comment_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/comments{/number}","contents_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/contents/{+path}","compare_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/merges","archive_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/downloads","issues_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues{/number}","pulls_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls{/number}","milestones_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/milestones{/number}","notifications_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/labels{/name}","releases_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/releases{/id}","deployments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/deployments","created_at":"2014-09-06T20:20:03Z","updated_at":"2016-06-02T02:15:22Z","pushed_at":"2016-06-24T15:09:43Z","git_url":"git://github.com/CMU-Robotics-Club/RoboBuggy.git","ssh_url":"git@github.com:CMU-Robotics-Club/RoboBuggy.git","clone_url":"https://github.com/CMU-Robotics-Club/RoboBuggy.git","svn_url":"https://github.com/CMU-Robotics-Club/RoboBuggy","homepage":"","size":169787,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":84,"forks":2,"open_issues":84,"watchers":10,"default_branch":"master"}},"base":{"label":"CMU-Robotics-Club:master","ref":"master","sha":"421066a49ba2ccd28b014ec9928f6fb69e32ad6e","user":{"login":"CMU-Robotics-Club","id":5898082,"avatar_url":"https://avatars.githubusercontent.com/u/5898082?v=3","gravatar_id":"","url":"https://api.github.com/users/CMU-Robotics-Club","html_url":"https://github.com/CMU-Robotics-Club","followers_url":"https://api.github.com/users/CMU-Robotics-Club/followers","following_url":"https://api.github.com/users/CMU-Robotics-Club/following{/other_user}","gists_url":"https://api.github.com/users/CMU-Robotics-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/CMU-Robotics-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMU-Robotics-Club/subscriptions","organizations_url":"https://api.github.com/users/CMU-Robotics-Club/orgs","repos_url":"https://api.github.com/users/CMU-Robotics-Club/repos","events_url":"https://api.github.com/users/CMU-Robotics-Club/events{/privacy}","received_events_url":"https://api.github.com/users/CMU-Robotics-Club/received_events","type":"Organization","site_admin":false},"repo":{"id":23744385,"name":"RoboBuggy","full_name":"CMU-Robotics-Club/RoboBuggy","owner":{"login":"CMU-Robotics-Club","id":5898082,"avatar_url":"https://avatars.githubusercontent.com/u/5898082?v=3","gravatar_id":"","url":"https://api.github.com/users/CMU-Robotics-Club","html_url":"https://github.com/CMU-Robotics-Club","followers_url":"https://api.github.com/users/CMU-Robotics-Club/followers","following_url":"https://api.github.com/users/CMU-Robotics-Club/following{/other_user}","gists_url":"https://api.github.com/users/CMU-Robotics-Club/gists{/gist_id}","starred_url":"https://api.github.com/users/CMU-Robotics-Club/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMU-Robotics-Club/subscriptions","organizations_url":"https://api.github.com/users/CMU-Robotics-Club/orgs","repos_url":"https://api.github.com/users/CMU-Robotics-Club/repos","events_url":"https://api.github.com/users/CMU-Robotics-Club/events{/privacy}","received_events_url":"https://api.github.com/users/CMU-Robotics-Club/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CMU-Robotics-Club/RoboBuggy","description":"99 problems, but a driver ain't one. (Push code, not buggies)","fork":false,"url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy","forks_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/forks","keys_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/teams","hooks_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/hooks","issue_events_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/events{/number}","events_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/events","assignees_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/assignees{/user}","branches_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/branches{/branch}","tags_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/tags","blobs_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/refs{/sha}","trees_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/statuses/{sha}","languages_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/languages","stargazers_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/stargazers","contributors_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/contributors","subscribers_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/subscribers","subscription_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/subscription","commits_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/commits{/sha}","git_commits_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/git/commits{/sha}","comments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/comments{/number}","issue_comment_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/comments{/number}","contents_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/contents/{+path}","compare_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/merges","archive_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/downloads","issues_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues{/number}","pulls_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls{/number}","milestones_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/milestones{/number}","notifications_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/labels{/name}","releases_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/releases{/id}","deployments_url":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/deployments","created_at":"2014-09-06T20:20:03Z","updated_at":"2016-06-02T02:15:22Z","pushed_at":"2016-06-24T15:09:43Z","git_url":"git://github.com/CMU-Robotics-Club/RoboBuggy.git","ssh_url":"git@github.com:CMU-Robotics-Club/RoboBuggy.git","clone_url":"https://github.com/CMU-Robotics-Club/RoboBuggy.git","svn_url":"https://github.com/CMU-Robotics-Club/RoboBuggy","homepage":"","size":169787,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":84,"forks":2,"open_issues":84,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422"},"html":{"href":"https://github.com/CMU-Robotics-Club/RoboBuggy/pull/422"},"issue":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/422"},"comments":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/issues/422/comments"},"review_comments":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422/comments"},"review_comment":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/pulls/422/commits"},"statuses":{"href":"https://api.github.com/repos/CMU-Robotics-Club/RoboBuggy/statuses/053f0fb18a0bdeaf566452077d930d6e698b6120"}}}}
{"actor":{"display_login":"codacy-bot"}}