wobblyhead hg > arduino > Potentiometer
comparison Potentiometer.h @ 3:8f15fb46a050
higher jitter threshold, necesary at higher ambient temp?
| author | ark |
|---|---|
| date | 2017-06-02 21:39 +0200 |
| parents | a5e06e87f081 |
| children | ea44b28e12ab |
comparison
equal
deleted
inserted
replaced
| 2:a5e06e87f081 | 3:8f15fb46a050 |
|---|---|
| 40 | 40 |
| 41 /** jitter threshold. value changes smalled than the threshold will be | 41 /** jitter threshold. value changes smalled than the threshold will be |
| 42 * added to current average. value changes larger than the threshold | 42 * added to current average. value changes larger than the threshold |
| 43 * reset the average. | 43 * reset the average. |
| 44 */ | 44 */ |
| 45 const unsigned long JITTER_THRESHOLD = 2; | 45 const unsigned long JITTER_THRESHOLD = 3; |
| 46 | 46 |
| 47 /** max samples for de-jittering. | 47 /** max samples for de-jittering. |
| 48 */ | 48 */ |
| 49 const int MAX_SAMPLES = 20; | 49 const int MAX_SAMPLES = 20; |
| 50 | 50 |
