mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
set best sensor to -1 after last sensor fails (#23425)
This commit is contained in:
parent
36d89df0a7
commit
39abd87949
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user