{"action":"created","comment":{"url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/comments/126027687","pull_request_review_id":48467888,"id":126027687,"diff_hunk":"@@ -0,0 +1,85 @@\n+/*\n+ * Copyright (C) 2017 Swift Navigation Inc.\n+ * Contact: Swift Navigation <dev@swiftnav.com>\n+ *\n+ * This source is subject to the license found in the file 'LICENSE' which must\n+ * be be distributed together with this source. All other rights reserved.\n+ *\n+ * THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND,\n+ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED\n+ * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.\n+ */\n+\n+#ifndef GNSS_CONVERTERS_RTCM3_SBP_H\n+#define GNSS_CONVERTERS_RTCM3_SBP_H\n+\n+#include <rtcm3_messages.h>\n+#include <rtcm3_sbp.h>\n+\n+#define MSG_OBS_P_MULTIPLIER ((double)5e1)\n+#define MSG_OBS_CN0_MULTIPLIER ((float)4)\n+#define MSG_OBS_LF_MULTIPLIER ((double)(1 << 8))\n+#define MSG_OBS_FLAGS_CODE_VALID ((u8)(1 << 0))\n+#define MSG_OBS_FLAGS_PHASE_VALID ((u8)(1 << 1))\n+#define MSG_OBS_FLAGS_HALF_CYCLE_KNOWN ((u8)(1 << 2))\n+\n+#define SBP_HEADER_SIZE 11\n+#define SBP_OBS_SIZE 17\n+#define MAX_SBP_PAYLOAD 255\n+#define MAX_OBS_IN_SBP ((MAX_SBP_PAYLOAD - SBP_HEADER_SIZE) / SBP_OBS_SIZE)\n+\n+#define MS_TO_S 1e-3\n+#define S_TO_MS 1e3\n+\n+extern bool rtcm3_debug;\n+\n+/** Code identifier. */\n+typedef enum code {","path":"c/src/rtcm3_sbp_internal.h","position":34,"original_position":37,"commit_id":"0bbfb0618164a269edfe2eff96d36466609254be","original_commit_id":"4357b7e5e714369add340b323c1eeb111168ee3c","user":{"login":"anth-cole","id":12860347,"avatar_url":"https://avatars0.githubusercontent.com/u/12860347?v=3","gravatar_id":"","url":"https://api.github.com/users/anth-cole","html_url":"https://github.com/anth-cole","followers_url":"https://api.github.com/users/anth-cole/followers","following_url":"https://api.github.com/users/anth-cole/following{/other_user}","gists_url":"https://api.github.com/users/anth-cole/gists{/gist_id}","starred_url":"https://api.github.com/users/anth-cole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anth-cole/subscriptions","organizations_url":"https://api.github.com/users/anth-cole/orgs","repos_url":"https://api.github.com/users/anth-cole/repos","events_url":"https://api.github.com/users/anth-cole/events{/privacy}","received_events_url":"https://api.github.com/users/anth-cole/received_events","type":"User","site_admin":false},"body":"sure, but not in this PR","created_at":"2017-07-06T22:03:21Z","updated_at":"2017-07-06T22:06:09Z","html_url":"https://github.com/swift-nav/gnss-converters/pull/37#discussion_r126027687","pull_request_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/comments/126027687"},"html":{"href":"https://github.com/swift-nav/gnss-converters/pull/37#discussion_r126027687"},"pull_request":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37","id":127837534,"html_url":"https://github.com/swift-nav/gnss-converters/pull/37","diff_url":"https://github.com/swift-nav/gnss-converters/pull/37.diff","patch_url":"https://github.com/swift-nav/gnss-converters/pull/37.patch","issue_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/37","number":37,"state":"open","locked":false,"title":"C RTCM3 to SBP Convertor library","user":{"login":"anth-cole","id":12860347,"avatar_url":"https://avatars0.githubusercontent.com/u/12860347?v=3","gravatar_id":"","url":"https://api.github.com/users/anth-cole","html_url":"https://github.com/anth-cole","followers_url":"https://api.github.com/users/anth-cole/followers","following_url":"https://api.github.com/users/anth-cole/following{/other_user}","gists_url":"https://api.github.com/users/anth-cole/gists{/gist_id}","starred_url":"https://api.github.com/users/anth-cole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anth-cole/subscriptions","organizations_url":"https://api.github.com/users/anth-cole/orgs","repos_url":"https://api.github.com/users/anth-cole/repos","events_url":"https://api.github.com/users/anth-cole/events{/privacy}","received_events_url":"https://api.github.com/users/anth-cole/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-28T03:54:25Z","updated_at":"2017-07-06T22:06:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5abb854beb48ff161a39188c6ddc9e5dd2fd3040","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37/commits","review_comments_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37/comments","review_comment_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/37/comments","statuses_url":"https://api.github.com/repos/swift-nav/gnss-converters/statuses/0bbfb0618164a269edfe2eff96d36466609254be","head":{"label":"swift-nav:c_rtcm_library","ref":"c_rtcm_library","sha":"0bbfb0618164a269edfe2eff96d36466609254be","user":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars0.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"repo":{"id":47715362,"name":"gnss-converters","full_name":"swift-nav/gnss-converters","owner":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars0.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swift-nav/gnss-converters","description":"GNSS converters","fork":false,"url":"https://api.github.com/repos/swift-nav/gnss-converters","forks_url":"https://api.github.com/repos/swift-nav/gnss-converters/forks","keys_url":"https://api.github.com/repos/swift-nav/gnss-converters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swift-nav/gnss-converters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swift-nav/gnss-converters/teams","hooks_url":"https://api.github.com/repos/swift-nav/gnss-converters/hooks","issue_events_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/events{/number}","events_url":"https://api.github.com/repos/swift-nav/gnss-converters/events","assignees_url":"https://api.github.com/repos/swift-nav/gnss-converters/assignees{/user}","branches_url":"https://api.github.com/repos/swift-nav/gnss-converters/branches{/branch}","tags_url":"https://api.github.com/repos/swift-nav/gnss-converters/tags","blobs_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/refs{/sha}","trees_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swift-nav/gnss-converters/statuses/{sha}","languages_url":"https://api.github.com/repos/swift-nav/gnss-converters/languages","stargazers_url":"https://api.github.com/repos/swift-nav/gnss-converters/stargazers","contributors_url":"https://api.github.com/repos/swift-nav/gnss-converters/contributors","subscribers_url":"https://api.github.com/repos/swift-nav/gnss-converters/subscribers","subscription_url":"https://api.github.com/repos/swift-nav/gnss-converters/subscription","commits_url":"https://api.github.com/repos/swift-nav/gnss-converters/commits{/sha}","git_commits_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/commits{/sha}","comments_url":"https://api.github.com/repos/swift-nav/gnss-converters/comments{/number}","issue_comment_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/comments{/number}","contents_url":"https://api.github.com/repos/swift-nav/gnss-converters/contents/{+path}","compare_url":"https://api.github.com/repos/swift-nav/gnss-converters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swift-nav/gnss-converters/merges","archive_url":"https://api.github.com/repos/swift-nav/gnss-converters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swift-nav/gnss-converters/downloads","issues_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues{/number}","pulls_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls{/number}","milestones_url":"https://api.github.com/repos/swift-nav/gnss-converters/milestones{/number}","notifications_url":"https://api.github.com/repos/swift-nav/gnss-converters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swift-nav/gnss-converters/labels{/name}","releases_url":"https://api.github.com/repos/swift-nav/gnss-converters/releases{/id}","deployments_url":"https://api.github.com/repos/swift-nav/gnss-converters/deployments","created_at":"2015-12-09T19:57:02Z","updated_at":"2017-05-02T00:29:29Z","pushed_at":"2017-07-06T22:05:46Z","git_url":"git://github.com/swift-nav/gnss-converters.git","ssh_url":"git@github.com:swift-nav/gnss-converters.git","clone_url":"https://github.com/swift-nav/gnss-converters.git","svn_url":"https://github.com/swift-nav/gnss-converters","homepage":null,"size":135,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"swift-nav:master","ref":"master","sha":"fb39f2f87b7eec25754b415186e5699287064eca","user":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars0.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"repo":{"id":47715362,"name":"gnss-converters","full_name":"swift-nav/gnss-converters","owner":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars0.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swift-nav/gnss-converters","description":"GNSS converters","fork":false,"url":"https://api.github.com/repos/swift-nav/gnss-converters","forks_url":"https://api.github.com/repos/swift-nav/gnss-converters/forks","keys_url":"https://api.github.com/repos/swift-nav/gnss-converters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swift-nav/gnss-converters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swift-nav/gnss-converters/teams","hooks_url":"https://api.github.com/repos/swift-nav/gnss-converters/hooks","issue_events_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/events{/number}","events_url":"https://api.github.com/repos/swift-nav/gnss-converters/events","assignees_url":"https://api.github.com/repos/swift-nav/gnss-converters/assignees{/user}","branches_url":"https://api.github.com/repos/swift-nav/gnss-converters/branches{/branch}","tags_url":"https://api.github.com/repos/swift-nav/gnss-converters/tags","blobs_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/refs{/sha}","trees_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swift-nav/gnss-converters/statuses/{sha}","languages_url":"https://api.github.com/repos/swift-nav/gnss-converters/languages","stargazers_url":"https://api.github.com/repos/swift-nav/gnss-converters/stargazers","contributors_url":"https://api.github.com/repos/swift-nav/gnss-converters/contributors","subscribers_url":"https://api.github.com/repos/swift-nav/gnss-converters/subscribers","subscription_url":"https://api.github.com/repos/swift-nav/gnss-converters/subscription","commits_url":"https://api.github.com/repos/swift-nav/gnss-converters/commits{/sha}","git_commits_url":"https://api.github.com/repos/swift-nav/gnss-converters/git/commits{/sha}","comments_url":"https://api.github.com/repos/swift-nav/gnss-converters/comments{/number}","issue_comment_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues/comments{/number}","contents_url":"https://api.github.com/repos/swift-nav/gnss-converters/contents/{+path}","compare_url":"https://api.github.com/repos/swift-nav/gnss-converters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swift-nav/gnss-converters/merges","archive_url":"https://api.github.com/repos/swift-nav/gnss-converters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swift-nav/gnss-converters/downloads","issues_url":"https://api.github.com/repos/swift-nav/gnss-converters/issues{/number}","pulls_url":"https://api.github.com/repos/swift-nav/gnss-converters/pulls{/number}","milestones_url":"https://api.github.com/repos/swift-nav/gnss-converters/milestones{/number}","notifications_url":"https://api.github.com/repos/swift-nav/gnss-converters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swift-nav/gnss-converters/labels{/name}","releases_url":"https://api.github.com/repos/swift-nav/gnss-converters/releases{/id}","deployments_url":"https://api.github.com/repos/swift-nav/gnss-converters/deployments","created_at":"2015-12-09T19:57:02Z","updated_at":"2017-05-02T00:29:29Z","pushed_at":"2017-07-06T22:05:46Z","git_url":"git://github.com/swift-nav/gnss-converters.git","ssh_url":"git@github.com:swift-nav/gnss-converters.git","clone_url":"https://github.com/swift-nav/gnss-converters.git","svn_url":"https://github.com/swift-nav/gnss-converters","homepage":null,"size":135,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37"},"html":{"href":"https://github.com/swift-nav/gnss-converters/pull/37"},"issue":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/issues/37"},"comments":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/swift-nav/gnss-converters/statuses/0bbfb0618164a269edfe2eff96d36466609254be"}}}}
{"actor":{"display_login":"anth-cole"}}