PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Contains helper functions to efficiently set the system health flags from commander and preflight check. More...
#include "HealthFlags.h"
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) |
Contains helper functions to efficiently set the system health flags from commander and preflight check.
Definition in file HealthFlags.cpp.
void set_health_flags | ( | uint64_t | subsystem_type, |
bool | present, | ||
bool | enabled, | ||
bool | ok, | ||
vehicle_status_s & | status | ||
) |
Definition at line 44 of file HealthFlags.cpp.
References vehicle_status_s::onboard_control_sensors_enabled, vehicle_status_s::onboard_control_sensors_health, and vehicle_status_s::onboard_control_sensors_present.
Referenced by PreFlightCheck::accelerometerCheck(), PreFlightCheck::airspeedCheck(), PreFlightCheck::baroCheck(), PreFlightCheck::ekf2Check(), PreFlightCheck::gyroCheck(), PreFlightCheck::magnometerCheck(), PreFlightCheck::preflightCheck(), Commander::run(), set_health_flags_healthy(), and set_health_flags_present_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().
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().