PX4 Firmware
PX4 Autopilot Software http://px4.io
HealthFlags.h File Reference

Contains helper functions to efficiently set the system health flags from commander and preflight check. More...

#include <px4_platform_common/log.h>
#include <uORB/topics/vehicle_status.h>
Include dependency graph for HealthFlags.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void set_health_flags (uint64_t subsystem_type, bool present, bool enabled, bool ok, vehicle_status_s &status)
 
void set_health_flags_present_healthy (uint64_t subsystem_type, bool present, bool healthy, vehicle_status_s &status)
 
void set_health_flags_healthy (uint64_t subsystem_type, bool healthy, vehicle_status_s &status)
 

Detailed Description

Contains helper functions to efficiently set the system health flags from commander and preflight check.

Author
Philipp Oettershagen (phili.nosp@m.pp.o.nosp@m.etter.nosp@m.shag.nosp@m.en@ma.nosp@m.vt.e.nosp@m.thz.c.nosp@m.h)

Definition in file HealthFlags.h.

Function Documentation

◆ set_health_flags()

void set_health_flags ( uint64_t  subsystem_type,
bool  present,
bool  enabled,
bool  ok,
vehicle_status_s status 
)

◆ set_health_flags_healthy()

void set_health_flags_healthy ( uint64_t  subsystem_type,
bool  healthy,
vehicle_status_s status 
)

Definition at line 76 of file HealthFlags.cpp.

References vehicle_status_s::onboard_control_sensors_enabled, vehicle_status_s::onboard_control_sensors_present, and set_health_flags().

Referenced by Commander::estimator_check(), PreFlightCheck::imuConsistencyCheck(), and PreFlightCheck::magConsistencyCheck().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_health_flags_present_healthy()

void set_health_flags_present_healthy ( uint64_t  subsystem_type,
bool  present,
bool  healthy,
vehicle_status_s status 
)

Definition at line 70 of file HealthFlags.cpp.

References vehicle_status_s::onboard_control_sensors_enabled, and set_health_flags().

Referenced by Commander::estimator_check().

Here is the call graph for this function:
Here is the caller graph for this function: