mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 23:07:35 +08:00
Reverse the linked list of data_validator_group and maintain a first node
for search from index 0 Fixes issue PX4/Firmware#8644
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include "data_validator.h"
|
||||
#include <ecl/ecl.h>
|
||||
|
||||
DataValidator::DataValidator(DataValidator *prev_sibling) :
|
||||
DataValidator::DataValidator() :
|
||||
_error_mask(ERROR_FLAG_NO_ERROR),
|
||||
_timeout_interval(20000),
|
||||
_time_last(0),
|
||||
@@ -58,7 +58,7 @@ DataValidator::DataValidator(DataValidator *prev_sibling) :
|
||||
_vibe{0.0f},
|
||||
_value_equal_count(0),
|
||||
_value_equal_count_threshold(VALUE_EQUAL_COUNT_DEFAULT),
|
||||
_sibling(prev_sibling)
|
||||
_sibling(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user