sensors: checkFailover() remove verbose failure messages

- in certain circumstances this additional logging can actually cause
further timeouts and failure
This commit is contained in:
Daniel Agar
2020-05-05 21:27:09 -04:00
parent 29f4fca7bf
commit b5e25c2218
@@ -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]);
}
}