{"action":"created","comment":{"url":"https://api.github.com/repos/PX4/Firmware/pulls/comments/146240448","pull_request_review_id":71152269,"id":146240448,"diff_hunk":"@@ -0,0 +1,107 @@\n+/****************************************************************************\n+ *\n+ *   Copyright (c) 2017 PX4 Development Team. All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions\n+ * are met:\n+ *\n+ * 1. Redistributions of source code must retain the above copyright\n+ *    notice, this list of conditions and the following disclaimer.\n+ * 2. Redistributions in binary form must reproduce the above copyright\n+ *    notice, this list of conditions and the following disclaimer in\n+ *    the documentation and/or other materials provided with the\n+ *    distribution.\n+ * 3. Neither the name PX4 nor the names of its contributors may be\n+ *    used to endorse or promote products derived from this software\n+ *    without specific prior written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS\n+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ *\n+ ****************************************************************************/\n+\n+/**\n+ * @file status_display.h\n+ * Status Display decouple the LED and tune form the original commander\n+ *\n+ * @author Simone Guscetti <simone@px4.io>\n+ */\n+\n+#pragma once\n+\n+#include \"subscriber_handler.h\"\n+\n+#include <drivers/drv_hrt.h>\n+\n+#include <uORB/uORB.h>\n+#include <uORB/topics/battery_status.h>\n+#include <uORB/topics/cpuload.h>\n+#include <uORB/topics/led_control.h>\n+#include <uORB/topics/vehicle_status.h>\n+#include <uORB/topics/vehicle_status_flags.h>\n+\n+#define CPU_OVERLOAD_VALUE 0.80f","path":"src/modules/events/status_display.h","position":null,"original_position":54,"commit_id":"e4ff83d35f1bd809e5d8c2237d2475d9150a2e1a","original_commit_id":"ad4fd6bb2cf0dafc74be40c44ca73bbc0b454c8f","user":{"login":"ChristophTobler","id":14769636,"avatar_url":"https://avatars1.githubusercontent.com/u/14769636?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristophTobler","html_url":"https://github.com/ChristophTobler","followers_url":"https://api.github.com/users/ChristophTobler/followers","following_url":"https://api.github.com/users/ChristophTobler/following{/other_user}","gists_url":"https://api.github.com/users/ChristophTobler/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophTobler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophTobler/subscriptions","organizations_url":"https://api.github.com/users/ChristophTobler/orgs","repos_url":"https://api.github.com/users/ChristophTobler/repos","events_url":"https://api.github.com/users/ChristophTobler/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophTobler/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-10-23T11:49:56Z","updated_at":"2017-10-23T11:49:56Z","html_url":"https://github.com/PX4/Firmware/pull/8172#discussion_r146240448","pull_request_url":"https://api.github.com/repos/PX4/Firmware/pulls/8172","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/comments/146240448"},"html":{"href":"https://github.com/PX4/Firmware/pull/8172#discussion_r146240448"},"pull_request":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/8172"}},"in_reply_to_id":146237707},"pull_request":{"url":"https://api.github.com/repos/PX4/Firmware/pulls/8172","id":148068983,"html_url":"https://github.com/PX4/Firmware/pull/8172","diff_url":"https://github.com/PX4/Firmware/pull/8172.diff","patch_url":"https://github.com/PX4/Firmware/pull/8172.patch","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/8172","number":8172,"state":"open","locked":false,"title":"add subscriber handler and status displays","user":{"login":"ChristophTobler","id":14769636,"avatar_url":"https://avatars1.githubusercontent.com/u/14769636?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristophTobler","html_url":"https://github.com/ChristophTobler","followers_url":"https://api.github.com/users/ChristophTobler/followers","following_url":"https://api.github.com/users/ChristophTobler/following{/other_user}","gists_url":"https://api.github.com/users/ChristophTobler/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophTobler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophTobler/subscriptions","organizations_url":"https://api.github.com/users/ChristophTobler/orgs","repos_url":"https://api.github.com/users/ChristophTobler/repos","events_url":"https://api.github.com/users/ChristophTobler/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophTobler/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-23T08:34:45Z","updated_at":"2017-10-23T11:49:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f62fd5ed050ae6e7d62abbb0b32dc0395bb84b2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"simonegu","id":9131453,"avatar_url":"https://avatars3.githubusercontent.com/u/9131453?v=4","gravatar_id":"","url":"https://api.github.com/users/simonegu","html_url":"https://github.com/simonegu","followers_url":"https://api.github.com/users/simonegu/followers","following_url":"https://api.github.com/users/simonegu/following{/other_user}","gists_url":"https://api.github.com/users/simonegu/gists{/gist_id}","starred_url":"https://api.github.com/users/simonegu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonegu/subscriptions","organizations_url":"https://api.github.com/users/simonegu/orgs","repos_url":"https://api.github.com/users/simonegu/repos","events_url":"https://api.github.com/users/simonegu/events{/privacy}","received_events_url":"https://api.github.com/users/simonegu/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PX4/Firmware/pulls/8172/commits","review_comments_url":"https://api.github.com/repos/PX4/Firmware/pulls/8172/comments","review_comment_url":"https://api.github.com/repos/PX4/Firmware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/8172/comments","statuses_url":"https://api.github.com/repos/PX4/Firmware/statuses/e4ff83d35f1bd809e5d8c2237d2475d9150a2e1a","head":{"label":"PX4:pr-sub_handler","ref":"pr-sub_handler","sha":"e4ff83d35f1bd809e5d8c2237d2475d9150a2e1a","user":{"login":"PX4","id":2096014,"avatar_url":"https://avatars3.githubusercontent.com/u/2096014?v=4","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"repo":{"id":5298790,"name":"Firmware","full_name":"PX4/Firmware","owner":{"login":"PX4","id":2096014,"avatar_url":"https://avatars3.githubusercontent.com/u/2096014?v=4","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PX4/Firmware","description":"PX4 Pro Autopilot Software","fork":false,"url":"https://api.github.com/repos/PX4/Firmware","forks_url":"https://api.github.com/repos/PX4/Firmware/forks","keys_url":"https://api.github.com/repos/PX4/Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PX4/Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PX4/Firmware/teams","hooks_url":"https://api.github.com/repos/PX4/Firmware/hooks","issue_events_url":"https://api.github.com/repos/PX4/Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/PX4/Firmware/events","assignees_url":"https://api.github.com/repos/PX4/Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/PX4/Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/PX4/Firmware/tags","blobs_url":"https://api.github.com/repos/PX4/Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PX4/Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PX4/Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/PX4/Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PX4/Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/PX4/Firmware/languages","stargazers_url":"https://api.github.com/repos/PX4/Firmware/stargazers","contributors_url":"https://api.github.com/repos/PX4/Firmware/contributors","subscribers_url":"https://api.github.com/repos/PX4/Firmware/subscribers","subscription_url":"https://api.github.com/repos/PX4/Firmware/subscription","commits_url":"https://api.github.com/repos/PX4/Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/PX4/Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/PX4/Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/PX4/Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/PX4/Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/PX4/Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PX4/Firmware/merges","archive_url":"https://api.github.com/repos/PX4/Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PX4/Firmware/downloads","issues_url":"https://api.github.com/repos/PX4/Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/PX4/Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/PX4/Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/PX4/Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PX4/Firmware/labels{/name}","releases_url":"https://api.github.com/repos/PX4/Firmware/releases{/id}","deployments_url":"https://api.github.com/repos/PX4/Firmware/deployments","created_at":"2012-08-04T21:19:36Z","updated_at":"2017-10-23T11:23:09Z","pushed_at":"2017-10-23T11:49:49Z","git_url":"git://github.com/PX4/Firmware.git","ssh_url":"git@github.com:PX4/Firmware.git","clone_url":"https://github.com/PX4/Firmware.git","svn_url":"https://github.com/PX4/Firmware","homepage":"http://px4.io","size":92106,"stargazers_count":1353,"watchers_count":1353,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3924,"mirror_url":null,"archived":false,"open_issues_count":493,"forks":3924,"open_issues":493,"watchers":1353,"default_branch":"master"}},"base":{"label":"PX4:master","ref":"master","sha":"ba11e0dc44b8be0b7a51886948f44590c0479824","user":{"login":"PX4","id":2096014,"avatar_url":"https://avatars3.githubusercontent.com/u/2096014?v=4","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"repo":{"id":5298790,"name":"Firmware","full_name":"PX4/Firmware","owner":{"login":"PX4","id":2096014,"avatar_url":"https://avatars3.githubusercontent.com/u/2096014?v=4","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PX4/Firmware","description":"PX4 Pro Autopilot Software","fork":false,"url":"https://api.github.com/repos/PX4/Firmware","forks_url":"https://api.github.com/repos/PX4/Firmware/forks","keys_url":"https://api.github.com/repos/PX4/Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PX4/Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PX4/Firmware/teams","hooks_url":"https://api.github.com/repos/PX4/Firmware/hooks","issue_events_url":"https://api.github.com/repos/PX4/Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/PX4/Firmware/events","assignees_url":"https://api.github.com/repos/PX4/Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/PX4/Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/PX4/Firmware/tags","blobs_url":"https://api.github.com/repos/PX4/Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PX4/Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PX4/Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/PX4/Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PX4/Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/PX4/Firmware/languages","stargazers_url":"https://api.github.com/repos/PX4/Firmware/stargazers","contributors_url":"https://api.github.com/repos/PX4/Firmware/contributors","subscribers_url":"https://api.github.com/repos/PX4/Firmware/subscribers","subscription_url":"https://api.github.com/repos/PX4/Firmware/subscription","commits_url":"https://api.github.com/repos/PX4/Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/PX4/Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/PX4/Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/PX4/Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/PX4/Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/PX4/Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PX4/Firmware/merges","archive_url":"https://api.github.com/repos/PX4/Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PX4/Firmware/downloads","issues_url":"https://api.github.com/repos/PX4/Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/PX4/Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/PX4/Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/PX4/Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PX4/Firmware/labels{/name}","releases_url":"https://api.github.com/repos/PX4/Firmware/releases{/id}","deployments_url":"https://api.github.com/repos/PX4/Firmware/deployments","created_at":"2012-08-04T21:19:36Z","updated_at":"2017-10-23T11:23:09Z","pushed_at":"2017-10-23T11:49:49Z","git_url":"git://github.com/PX4/Firmware.git","ssh_url":"git@github.com:PX4/Firmware.git","clone_url":"https://github.com/PX4/Firmware.git","svn_url":"https://github.com/PX4/Firmware","homepage":"http://px4.io","size":92106,"stargazers_count":1353,"watchers_count":1353,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3924,"mirror_url":null,"archived":false,"open_issues_count":493,"forks":3924,"open_issues":493,"watchers":1353,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/8172"},"html":{"href":"https://github.com/PX4/Firmware/pull/8172"},"issue":{"href":"https://api.github.com/repos/PX4/Firmware/issues/8172"},"comments":{"href":"https://api.github.com/repos/PX4/Firmware/issues/8172/comments"},"review_comments":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/8172/comments"},"review_comment":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/8172/commits"},"statuses":{"href":"https://api.github.com/repos/PX4/Firmware/statuses/e4ff83d35f1bd809e5d8c2237d2475d9150a2e1a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ChristophTobler"}}