43 #include <uORB/topics/vehicle_status.h> 44 #include <uORB/topics/vehicle_status_flags.h> 76 vehicle_status_flags_s &status_flags,
bool checkGNSS,
bool reportFailures,
bool prearm,
79 static constexpr
unsigned max_mandatory_gyro_count = 1;
80 static constexpr
unsigned max_optional_gyro_count = 3;
82 static constexpr
unsigned max_mandatory_accel_count = 1;
83 static constexpr
unsigned max_optional_accel_count = 3;
85 static constexpr
unsigned max_mandatory_mag_count = 1;
86 static constexpr
unsigned max_optional_mag_count = 4;
88 static constexpr
unsigned max_mandatory_baro_count = 1;
89 static constexpr
unsigned max_optional_baro_count = 1;
bool preflightCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s &status, vehicle_status_flags_s &status_flags, bool checkGNSS, bool reportFailures, bool prearm, const hrt_abstime &time_since_boot)
Runs a preflight check on all sensors to see if they are properly calibrated and healthy.
Definition: PreflightCheck.cpp:677
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Definition: uORB.h:134
High-resolution timer with callouts and timekeeping.
Definition: PreflightCheck.cpp:65
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
Definition: drv_hrt.h:58