mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 04:43:34 +08:00
arming checks: add health topic
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include "Common.hpp"
|
||||
|
||||
#include <px4_platform_common/module_params.h>
|
||||
#include <uORB/Publication.hpp>
|
||||
#include <uORB/topics/health_report.h>
|
||||
|
||||
class HealthAndArmingChecks : public ModuleParams
|
||||
{
|
||||
@@ -62,6 +64,8 @@ private:
|
||||
Context _context;
|
||||
Report _reporter;
|
||||
|
||||
uORB::Publication<health_report_s> _health_report_pub{ORB_ID(health_report)};
|
||||
|
||||
// all checks
|
||||
HealthAndArmingCheckBase *_checks[10] = {
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user