mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
set best sensor to -1 after last sensor fails (#23425)
This commit is contained in:
@@ -230,6 +230,10 @@ float *DataValidatorGroup::get_best(uint64_t timestamp, int *index)
|
||||
if (_first_failover_time == 0) {
|
||||
_first_failover_time = timestamp;
|
||||
}
|
||||
|
||||
if (max_confidence < FLT_EPSILON) {
|
||||
max_index = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user