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,7 @@
#include <px4_platform_common/events.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module_params.h>
#include <uORB/topics/health_report.h>
#include <uORB/topics/vehicle_status.h>
#include <uORB/topics/vehicle_status_flags.h>
@@ -207,6 +208,8 @@ public:
(uint32_t)(_results[_current_result].arming_checks.can_run & getModeGroup(nav_state)) != 0;
}
void getHealthReport(health_report_s &report) const;
/**
* Report a health failure. A health issue generally refers to a hardware issue, independent from environment
* or e.g. calibration.