mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
Vehicle_Status_msg - Add attitude_failure flag to vehicle_status message
This commit is contained in:
@@ -67,6 +67,7 @@ bool high_latency_data_link_active # all low latency datalinks to GCS lost
|
||||
uint8 data_link_lost_counter # counts unique data link lost events
|
||||
bool engine_failure # Set to true if an engine failure is detected
|
||||
bool mission_failure # Set to true if mission could not continue/finish
|
||||
bool attitude_failure # Set to true if attitude failure has been detected
|
||||
|
||||
# see SYS_STATUS mavlink message for the following
|
||||
uint32 onboard_control_sensors_present
|
||||
|
||||
@@ -2295,6 +2295,7 @@ Commander::run()
|
||||
failure_status.pitch) {
|
||||
|
||||
armed.force_failsafe = true;
|
||||
status.attitude_failure = true;
|
||||
status_changed = true;
|
||||
|
||||
// Only display an user message if the circuit-breaker is disabled
|
||||
|
||||
Reference in New Issue
Block a user