mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-19 19:04:33 +08:00
AirspeedSelector: fix messaging
This commit is contained in:
@@ -594,7 +594,7 @@ void AirspeedModule::select_airspeed_and_publish()
|
||||
// print warning or info, depending of whether airspeed got declared invalid or healthy
|
||||
if (_valid_airspeed_index != _prev_airspeed_index &&
|
||||
_number_of_airspeed_sensors > 0) {
|
||||
if (_vehicle_status.arming_state == !vehicle_status_s::ARMING_STATE_ARMED && _prev_airspeed_index > 0) {
|
||||
if (_vehicle_status.arming_state != vehicle_status_s::ARMING_STATE_ARMED && _prev_airspeed_index > 0) {
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Airspeed sensor failure detected. Check connection and reboot.\t");
|
||||
events::send(events::ID("airspeed_selector_sensor_failure_disarmed"), events::Log::Critical,
|
||||
"Airspeed sensor failure detected. Check connection and reboot");
|
||||
|
||||
Reference in New Issue
Block a user