mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-28 12:56:37 +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 * fix code style * validator: fix shadowing of 'sibling' argument
This commit is contained in:
committed by
Paul Riseborough
parent
337cdcc59a
commit
d078d68f64
@@ -48,7 +48,7 @@ class __EXPORT DataValidator {
|
||||
public:
|
||||
static const unsigned dimensions = 3;
|
||||
|
||||
DataValidator(DataValidator *prev_sibling = nullptr);
|
||||
DataValidator();
|
||||
virtual ~DataValidator() = default;
|
||||
|
||||
/**
|
||||
@@ -72,6 +72,12 @@ public:
|
||||
*/
|
||||
DataValidator* sibling() { return _sibling; }
|
||||
|
||||
/**
|
||||
* Set the sibling to the next node in the group
|
||||
*
|
||||
*/
|
||||
void setSibling(DataValidator* new_sibling) { _sibling = new_sibling; }
|
||||
|
||||
/**
|
||||
* Get the confidence of this validator
|
||||
* @return the confidence between 0 and 1
|
||||
|
||||
Reference in New Issue
Block a user