arming checks: add health topic

This commit is contained in:
Beat Küng
2022-08-25 22:02:15 -04:00
committed by Daniel Agar
parent 07afcf4586
commit b7a6de05df
6 changed files with 50 additions and 0 deletions
@@ -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] = {
};