{"action":"created","comment":{"url":"https://api.github.com/repos/diydrones/ardupilot/pulls/comments/38301753","id":38301753,"diff_hunk":"@@ -0,0 +1,368 @@\n+// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-\r\n+/*\r\n+   This program is free software: you can redistribute it and/or modify\r\n+   it under the terms of the GNU General Public License as published by\r\n+   the Free Software Foundation, either version 3 of the License, or\r\n+   (at your option) any later version.\r\n+\r\n+   This program is distributed in the hope that it will be useful,\r\n+   but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n+   GNU General Public License for more details.\r\n+\r\n+   You should have received a copy of the GNU General Public License\r\n+   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r\n+ */\r\n+\r\n+//\r\n+//  Septentrio GPS driver for ArduPilot.\r\n+//  Code by Michael Oborne\r\n+//\r\n+\r\n+#include \"AP_GPS.h\"\r\n+#include \"AP_GPS_SBF.h\"\r\n+#include <DataFlash/DataFlash.h>\r\n+\r\n+#if GPS_RTK_AVAILABLE\r\n+\r\n+extern const AP_HAL::HAL& hal;\r\n+\r\n+#define SBF_DEBUGGING 0\r\n+\r\n+#if SBF_DEBUGGING\r\n+ # define Debug(fmt, args ...)                  \\\r\n+do {                                            \\\r\n+    hal.console->printf(\"%s:%d: \" fmt \"\\n\",     \\\r\n+                        __FUNCTION__, __LINE__, \\\r\n+                        ## args);               \\\r\n+    hal.scheduler->delay(1);                    \\\r\n+} while(0)\r\n+#else\r\n+ # define Debug(fmt, args ...)\r\n+#endif\r\n+\r\n+AP_GPS_SBF::AP_GPS_SBF(AP_GPS &_gps, AP_GPS::GPS_State &_state,\r\n+                       AP_HAL::UARTDriver *_port) :\r\n+    AP_GPS_Backend(_gps, _state, _port)\r\n+{\t\r\n+    sbf_msg.sbf_state = sbf_msg_parser_t::PREAMBLE1;\r\n+}\r\n+\r\n+// Process all bytes available from the stream\r\n+//\r\n+bool\r\n+AP_GPS_SBF::read(void)\r\n+{\r\n+\tuint32_t now = hal.scheduler->millis();\r\n+\t\r\n+\tif (_init_blob_index < (sizeof(_initialisation_blob) / sizeof(_initialisation_blob[0]))) {\r","path":"libraries/AP_GPS/AP_GPS_SBF.cpp","position":58,"original_position":58,"commit_id":"335aee036dfdbea5f418345650ef64519b227041","original_commit_id":"335aee036dfdbea5f418345650ef64519b227041","user":{"login":"WickedShell","id":567688,"avatar_url":"https://avatars.githubusercontent.com/u/567688?v=3","gravatar_id":"","url":"https://api.github.com/users/WickedShell","html_url":"https://github.com/WickedShell","followers_url":"https://api.github.com/users/WickedShell/followers","following_url":"https://api.github.com/users/WickedShell/following{/other_user}","gists_url":"https://api.github.com/users/WickedShell/gists{/gist_id}","starred_url":"https://api.github.com/users/WickedShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WickedShell/subscriptions","organizations_url":"https://api.github.com/users/WickedShell/orgs","repos_url":"https://api.github.com/users/WickedShell/repos","events_url":"https://api.github.com/users/WickedShell/events{/privacy}","received_events_url":"https://api.github.com/users/WickedShell/received_events","type":"User","site_admin":false},"body":"Is this check needed? We don't detect GPSes until after we finish the init blob (or at least we aren't supposed to)","created_at":"2015-08-31T10:57:38Z","updated_at":"2015-08-31T10:57:38Z","html_url":"https://github.com/diydrones/ardupilot/pull/2783#discussion_r38301753","pull_request_url":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783","_links":{"self":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/comments/38301753"},"html":{"href":"https://github.com/diydrones/ardupilot/pull/2783#discussion_r38301753"},"pull_request":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783"}}},"pull_request":{"url":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783","id":43708695,"html_url":"https://github.com/diydrones/ardupilot/pull/2783","diff_url":"https://github.com/diydrones/ardupilot/pull/2783.diff","patch_url":"https://github.com/diydrones/ardupilot/pull/2783.patch","issue_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2783","number":2783,"state":"open","locked":false,"title":"Add Septentrio GPS support","user":{"login":"meee1","id":511568,"avatar_url":"https://avatars.githubusercontent.com/u/511568?v=3","gravatar_id":"","url":"https://api.github.com/users/meee1","html_url":"https://github.com/meee1","followers_url":"https://api.github.com/users/meee1/followers","following_url":"https://api.github.com/users/meee1/following{/other_user}","gists_url":"https://api.github.com/users/meee1/gists{/gist_id}","starred_url":"https://api.github.com/users/meee1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meee1/subscriptions","organizations_url":"https://api.github.com/users/meee1/orgs","repos_url":"https://api.github.com/users/meee1/repos","events_url":"https://api.github.com/users/meee1/events{/privacy}","received_events_url":"https://api.github.com/users/meee1/received_events","type":"User","site_admin":false},"body":"testing can be seen here\r\nhttp://vps.oborne.me/rtk/rtk%2030-8-2015/\r\n","created_at":"2015-08-30T06:55:29Z","updated_at":"2015-08-31T10:57:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db621452ed9d2a26eb9caacdd2384f3ea4059bf5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783/commits","review_comments_url":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783/comments","review_comment_url":"https://api.github.com/repos/diydrones/ardupilot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diydrones/ardupilot/issues/2783/comments","statuses_url":"https://api.github.com/repos/diydrones/ardupilot/statuses/335aee036dfdbea5f418345650ef64519b227041","head":{"label":"meee1:AP_GPS_SBF","ref":"AP_GPS_SBF","sha":"335aee036dfdbea5f418345650ef64519b227041","user":{"login":"meee1","id":511568,"avatar_url":"https://avatars.githubusercontent.com/u/511568?v=3","gravatar_id":"","url":"https://api.github.com/users/meee1","html_url":"https://github.com/meee1","followers_url":"https://api.github.com/users/meee1/followers","following_url":"https://api.github.com/users/meee1/following{/other_user}","gists_url":"https://api.github.com/users/meee1/gists{/gist_id}","starred_url":"https://api.github.com/users/meee1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meee1/subscriptions","organizations_url":"https://api.github.com/users/meee1/orgs","repos_url":"https://api.github.com/users/meee1/repos","events_url":"https://api.github.com/users/meee1/events{/privacy}","received_events_url":"https://api.github.com/users/meee1/received_events","type":"User","site_admin":false},"repo":{"id":9802148,"name":"ardupilot","full_name":"meee1/ardupilot","owner":{"login":"meee1","id":511568,"avatar_url":"https://avatars.githubusercontent.com/u/511568?v=3","gravatar_id":"","url":"https://api.github.com/users/meee1","html_url":"https://github.com/meee1","followers_url":"https://api.github.com/users/meee1/followers","following_url":"https://api.github.com/users/meee1/following{/other_user}","gists_url":"https://api.github.com/users/meee1/gists{/gist_id}","starred_url":"https://api.github.com/users/meee1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meee1/subscriptions","organizations_url":"https://api.github.com/users/meee1/orgs","repos_url":"https://api.github.com/users/meee1/repos","events_url":"https://api.github.com/users/meee1/events{/privacy}","received_events_url":"https://api.github.com/users/meee1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meee1/ardupilot","description":"","fork":true,"url":"https://api.github.com/repos/meee1/ardupilot","forks_url":"https://api.github.com/repos/meee1/ardupilot/forks","keys_url":"https://api.github.com/repos/meee1/ardupilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meee1/ardupilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meee1/ardupilot/teams","hooks_url":"https://api.github.com/repos/meee1/ardupilot/hooks","issue_events_url":"https://api.github.com/repos/meee1/ardupilot/issues/events{/number}","events_url":"https://api.github.com/repos/meee1/ardupilot/events","assignees_url":"https://api.github.com/repos/meee1/ardupilot/assignees{/user}","branches_url":"https://api.github.com/repos/meee1/ardupilot/branches{/branch}","tags_url":"https://api.github.com/repos/meee1/ardupilot/tags","blobs_url":"https://api.github.com/repos/meee1/ardupilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meee1/ardupilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meee1/ardupilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/meee1/ardupilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meee1/ardupilot/statuses/{sha}","languages_url":"https://api.github.com/repos/meee1/ardupilot/languages","stargazers_url":"https://api.github.com/repos/meee1/ardupilot/stargazers","contributors_url":"https://api.github.com/repos/meee1/ardupilot/contributors","subscribers_url":"https://api.github.com/repos/meee1/ardupilot/subscribers","subscription_url":"https://api.github.com/repos/meee1/ardupilot/subscription","commits_url":"https://api.github.com/repos/meee1/ardupilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/meee1/ardupilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/meee1/ardupilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/meee1/ardupilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/meee1/ardupilot/contents/{+path}","compare_url":"https://api.github.com/repos/meee1/ardupilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meee1/ardupilot/merges","archive_url":"https://api.github.com/repos/meee1/ardupilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meee1/ardupilot/downloads","issues_url":"https://api.github.com/repos/meee1/ardupilot/issues{/number}","pulls_url":"https://api.github.com/repos/meee1/ardupilot/pulls{/number}","milestones_url":"https://api.github.com/repos/meee1/ardupilot/milestones{/number}","notifications_url":"https://api.github.com/repos/meee1/ardupilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meee1/ardupilot/labels{/name}","releases_url":"https://api.github.com/repos/meee1/ardupilot/releases{/id}","created_at":"2013-05-01T23:34:49Z","updated_at":"2015-04-27T05:50:44Z","pushed_at":"2015-08-30T12:54:46Z","git_url":"git://github.com/meee1/ardupilot.git","ssh_url":"git@github.com:meee1/ardupilot.git","clone_url":"https://github.com/meee1/ardupilot.git","svn_url":"https://github.com/meee1/ardupilot","homepage":null,"size":69145,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"diydrones:master","ref":"master","sha":"15b242832e63910028fa13e1a9b831f6d39f80c2","user":{"login":"diydrones","id":3189387,"avatar_url":"https://avatars.githubusercontent.com/u/3189387?v=3","gravatar_id":"","url":"https://api.github.com/users/diydrones","html_url":"https://github.com/diydrones","followers_url":"https://api.github.com/users/diydrones/followers","following_url":"https://api.github.com/users/diydrones/following{/other_user}","gists_url":"https://api.github.com/users/diydrones/gists{/gist_id}","starred_url":"https://api.github.com/users/diydrones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diydrones/subscriptions","organizations_url":"https://api.github.com/users/diydrones/orgs","repos_url":"https://api.github.com/users/diydrones/repos","events_url":"https://api.github.com/users/diydrones/events{/privacy}","received_events_url":"https://api.github.com/users/diydrones/received_events","type":"Organization","site_admin":false},"repo":{"id":7512484,"name":"ardupilot","full_name":"diydrones/ardupilot","owner":{"login":"diydrones","id":3189387,"avatar_url":"https://avatars.githubusercontent.com/u/3189387?v=3","gravatar_id":"","url":"https://api.github.com/users/diydrones","html_url":"https://github.com/diydrones","followers_url":"https://api.github.com/users/diydrones/followers","following_url":"https://api.github.com/users/diydrones/following{/other_user}","gists_url":"https://api.github.com/users/diydrones/gists{/gist_id}","starred_url":"https://api.github.com/users/diydrones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diydrones/subscriptions","organizations_url":"https://api.github.com/users/diydrones/orgs","repos_url":"https://api.github.com/users/diydrones/repos","events_url":"https://api.github.com/users/diydrones/events{/privacy}","received_events_url":"https://api.github.com/users/diydrones/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diydrones/ardupilot","description":"APM Plane, APM Copter, APM Rover source","fork":false,"url":"https://api.github.com/repos/diydrones/ardupilot","forks_url":"https://api.github.com/repos/diydrones/ardupilot/forks","keys_url":"https://api.github.com/repos/diydrones/ardupilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diydrones/ardupilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diydrones/ardupilot/teams","hooks_url":"https://api.github.com/repos/diydrones/ardupilot/hooks","issue_events_url":"https://api.github.com/repos/diydrones/ardupilot/issues/events{/number}","events_url":"https://api.github.com/repos/diydrones/ardupilot/events","assignees_url":"https://api.github.com/repos/diydrones/ardupilot/assignees{/user}","branches_url":"https://api.github.com/repos/diydrones/ardupilot/branches{/branch}","tags_url":"https://api.github.com/repos/diydrones/ardupilot/tags","blobs_url":"https://api.github.com/repos/diydrones/ardupilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diydrones/ardupilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diydrones/ardupilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/diydrones/ardupilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diydrones/ardupilot/statuses/{sha}","languages_url":"https://api.github.com/repos/diydrones/ardupilot/languages","stargazers_url":"https://api.github.com/repos/diydrones/ardupilot/stargazers","contributors_url":"https://api.github.com/repos/diydrones/ardupilot/contributors","subscribers_url":"https://api.github.com/repos/diydrones/ardupilot/subscribers","subscription_url":"https://api.github.com/repos/diydrones/ardupilot/subscription","commits_url":"https://api.github.com/repos/diydrones/ardupilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/diydrones/ardupilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/diydrones/ardupilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/diydrones/ardupilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/diydrones/ardupilot/contents/{+path}","compare_url":"https://api.github.com/repos/diydrones/ardupilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diydrones/ardupilot/merges","archive_url":"https://api.github.com/repos/diydrones/ardupilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diydrones/ardupilot/downloads","issues_url":"https://api.github.com/repos/diydrones/ardupilot/issues{/number}","pulls_url":"https://api.github.com/repos/diydrones/ardupilot/pulls{/number}","milestones_url":"https://api.github.com/repos/diydrones/ardupilot/milestones{/number}","notifications_url":"https://api.github.com/repos/diydrones/ardupilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diydrones/ardupilot/labels{/name}","releases_url":"https://api.github.com/repos/diydrones/ardupilot/releases{/id}","created_at":"2013-01-09T00:58:52Z","updated_at":"2015-08-31T07:17:56Z","pushed_at":"2015-08-31T09:37:02Z","git_url":"git://github.com/diydrones/ardupilot.git","ssh_url":"git@github.com:diydrones/ardupilot.git","clone_url":"https://github.com/diydrones/ardupilot.git","svn_url":"https://github.com/diydrones/ardupilot","homepage":"http://ardupilot.com/","size":122748,"stargazers_count":1389,"watchers_count":1389,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2639,"mirror_url":null,"open_issues_count":613,"forks":2639,"open_issues":613,"watchers":1389,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783"},"html":{"href":"https://github.com/diydrones/ardupilot/pull/2783"},"issue":{"href":"https://api.github.com/repos/diydrones/ardupilot/issues/2783"},"comments":{"href":"https://api.github.com/repos/diydrones/ardupilot/issues/2783/comments"},"review_comments":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783/comments"},"review_comment":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diydrones/ardupilot/pulls/2783/commits"},"statuses":{"href":"https://api.github.com/repos/diydrones/ardupilot/statuses/335aee036dfdbea5f418345650ef64519b227041"}}}}