diff Potentiometer.h @ 6:4e32bc18a7f7 default tip

adjusted jitter threshold, added ignore heuristic
author ark
date 2017-07-03 00:24 +0200
parents ea44b28e12ab
children
line wrap: on
line diff
--- a/Potentiometer.h	Thu Jun 22 01:42:31 2017 +0200
+++ b/Potentiometer.h	Mon Jul 03 00:24:29 2017 +0200
@@ -42,7 +42,7 @@
          * added to current average. value changes larger than the threshold
          * reset the average.
          */
-        const unsigned long JITTER_THRESHOLD = 3;
+        const unsigned long JITTER_THRESHOLD = 15;
         
         /** max samples for de-jittering.
          */
@@ -53,6 +53,7 @@
         float sum;
         float avg;
         int num;
+        bool ignore;
 
 };