mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
commander status flags delete condition_system_prearm_error_reported
- this flag often results in hiding useful information, or adding useless information to the mavlink console
This commit is contained in:
@@ -284,14 +284,6 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const batt
|
||||
(status->arming_state != vehicle_status_s::ARMING_STATE_STANDBY_ERROR)) {
|
||||
|
||||
if (!status_flags->condition_system_sensors_initialized) {
|
||||
|
||||
if (status_flags->condition_system_hotplug_timeout) {
|
||||
if (!status_flags->condition_system_prearm_error_reported) {
|
||||
mavlink_log_critical(mavlink_log_pub, "Not ready to fly: Sensors not set up correctly");
|
||||
status_flags->condition_system_prearm_error_reported = true;
|
||||
}
|
||||
}
|
||||
|
||||
feedback_provided = true;
|
||||
valid_transition = false;
|
||||
}
|
||||
@@ -321,13 +313,6 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const batt
|
||||
}
|
||||
}
|
||||
|
||||
/* reset feedback state */
|
||||
if (status->arming_state != vehicle_status_s::ARMING_STATE_STANDBY_ERROR &&
|
||||
status->arming_state != vehicle_status_s::ARMING_STATE_INIT &&
|
||||
valid_transition) {
|
||||
status_flags->condition_system_prearm_error_reported = false;
|
||||
}
|
||||
|
||||
/* end of atomic state update */
|
||||
#ifdef __PX4_NUTTX
|
||||
px4_leave_critical_section(flags);
|
||||
|
||||
Reference in New Issue
Block a user