Validation: Use error density instead of error count. Fail over to higher priority sensors once they become available.

This commit is contained in:
Lorenz Meier
2015-10-03 15:24:47 +02:00
parent 6973023f5a
commit 526bb51570
4 changed files with 67 additions and 18 deletions
@@ -100,6 +100,7 @@ private:
int _prev_best; /**< the previous best index */
uint64_t _first_failover_time; /**< timestamp where the first failover occured or zero if none occured */
unsigned _toggle_count; /**< number of back and forth switches between two sensors */
static constexpr float MIN_REGULAR_CONFIDENCE = 0.9f;
/* we don't want this class to be copied */
DataValidatorGroup(const DataValidatorGroup&);