mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 10:13:34 +08:00
arming checks: add health topic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user