mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 07:03:34 +08:00
fix code style
This commit is contained in:
@@ -76,7 +76,7 @@ public:
|
||||
* Set the sibling to the next node in the group
|
||||
*
|
||||
*/
|
||||
void sibling(DataValidator* sibling) { _sibling = sibling; }
|
||||
void setSibling(DataValidator* sibling) { _sibling = sibling; }
|
||||
|
||||
/**
|
||||
* Get the confidence of this validator
|
||||
|
||||
@@ -58,9 +58,8 @@ DataValidatorGroup::DataValidatorGroup(unsigned siblings) :
|
||||
next = new DataValidator();
|
||||
if(i == 0) {
|
||||
_first = next;
|
||||
}
|
||||
else {
|
||||
prev->sibling(next);
|
||||
} else {
|
||||
prev->setSibling(next);
|
||||
}
|
||||
prev = next;
|
||||
}
|
||||
@@ -87,7 +86,7 @@ DataValidator *DataValidatorGroup::add_new_validator()
|
||||
if (!validator) {
|
||||
return nullptr;
|
||||
}
|
||||
_last->sibling(validator);
|
||||
_last->setSibling(validator);
|
||||
_last = validator;
|
||||
_last->set_timeout(_timeout_interval_us);
|
||||
return _last;
|
||||
|
||||
Reference in New Issue
Block a user