From b5e25c2218b9d19c9a7788bebe5618c3e42dc9a0 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 5 May 2020 21:27:09 -0400 Subject: [PATCH] sensors: checkFailover() remove verbose failure messages - in certain circumstances this additional logging can actually cause further timeouts and failure --- src/modules/sensors/voted_sensors_update.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/sensors/voted_sensors_update.cpp b/src/modules/sensors/voted_sensors_update.cpp index 1effcf5248..22dc492d8a 100644 --- a/src/modules/sensors/voted_sensors_update.cpp +++ b/src/modules/sensors/voted_sensors_update.cpp @@ -693,15 +693,11 @@ bool VotedSensorsUpdate::checkFailover(SensorData &sensor, const char *sensor_na // reduce priority of failed sensor to the minimum sensor.priority[failover_index] = ORB_PRIO_MIN; - PX4_ERR("Sensor %s #%i failed. Reconfiguring sensor priorities.", sensor_name, failover_index); - int ctr_valid = 0; for (uint8_t i = 0; i < sensor.subscription_count; i++) { if (sensor.enabled[i] && (sensor.priority[i] > ORB_PRIO_MIN)) { ctr_valid++; - PX4_INFO("Remaining sensors after failover %u: %s #%u priority: %u", failover_index, sensor_name, i, - sensor.priority[i]); } }