Reverse the linked list of data_validator_group #2 (#389)

* 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:
Beat Küng
2018-01-30 09:11:01 +11:00
committed by Paul Riseborough
parent 337cdcc59a
commit d078d68f64
4 changed files with 31 additions and 12 deletions
+2 -1
View File
@@ -133,7 +133,8 @@ public:
private:
DataValidator *_first; /**< sibling in the group */
DataValidator *_first; /**< first node in the group */
DataValidator *_last; /**< last node in the group */
uint32_t _timeout_interval_us; /**< currently set timeout */
int _curr_best; /**< currently best index */
int _prev_best; /**< the previous best index */