mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 18:20:35 +08:00
Make the equal value threshold configurable
This commit is contained in:
committed by
Lorenz Meier
parent
00dbffe11d
commit
75520641a5
@@ -91,6 +91,18 @@ DataValidatorGroup::set_timeout(uint32_t timeout_interval_us)
|
||||
_timeout_interval_us = timeout_interval_us;
|
||||
}
|
||||
|
||||
void
|
||||
DataValidatorGroup::set_equal_value_threshold(uint32_t threshold)
|
||||
{
|
||||
DataValidator *next = _first;
|
||||
|
||||
while (next != nullptr) {
|
||||
next->set_equal_value_threshold(threshold);
|
||||
next = next->sibling();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DataValidatorGroup::put(unsigned index, uint64_t timestamp, float val[3], uint64_t error_count, int priority)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user