mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +08:00
sensors: correct comment logic
By removing the no the comment matches the implementation (which I think makes sense).
This commit is contained in:
committed by
Mathieu Bresciani
parent
3ab4213314
commit
be3cdc0439
@@ -164,7 +164,7 @@ float *DataValidatorGroup::get_best(uint64_t timestamp, int *index)
|
||||
/*
|
||||
* Switch if:
|
||||
* 1) the confidence is higher and priority is equal or higher
|
||||
* 2) the confidence is no less than 1% different and the priority is higher
|
||||
* 2) the confidence is less than 1% different and the priority is higher
|
||||
*/
|
||||
if ((((max_confidence < MIN_REGULAR_CONFIDENCE) && (confidence >= MIN_REGULAR_CONFIDENCE)) ||
|
||||
(confidence > max_confidence && (next->priority() >= max_priority)) ||
|
||||
|
||||
Reference in New Issue
Block a user