Make the equal value threshold configurable

This commit is contained in:
Lorenz Meier
2016-12-17 15:25:29 +01:00
committed by Lorenz Meier
parent 00dbffe11d
commit 75520641a5
4 changed files with 32 additions and 3 deletions
+9 -1
View File
@@ -118,12 +118,20 @@ public:
void print();
/**
* Set the timeout value
* Set the timeout value for the whole group
*
* @param timeout_interval_us The timeout interval in microseconds
*/
void set_timeout(uint32_t timeout_interval_us);
/**
* Set the equal count threshold for the whole group
*
* @param threshold The number of equal values before considering the sensor stale
*/
void set_equal_value_threshold(uint32_t threshold);
private:
DataValidator *_first; /**< sibling in the group */
uint32_t _timeout_interval_us; /**< currently set timeout */