Skip to content

Commit

Permalink
added note to install RunningMedian library
Browse files Browse the repository at this point in the history
  • Loading branch information
TwidgeVR committed Oct 17, 2021
1 parent 5b47551 commit 2e34209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions firmware/lucidgloves-firmware/AdvancedConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
#define CLAMP_MIN 0 //the minimum value from the flexion sensors
#define CLAMP_MAX 4095 //the maximum value from the flexion sensors

// You must install RunningMedian library to use this feature
// https://www.arduino.cc/reference/en/libraries/runningmedian/
#define ENABLE_MEDIAN_FILTER false //use the median of the previous values, helps reduce noise
#define MEDIAN_SAMPLES 20
2 changes: 1 addition & 1 deletion firmware/lucidgloves-firmware/input.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RunningMedian by Rob Tillaart
// Requires RunningMedian library by Rob Tillaart
#if ENABLE_MEDIAN_FILTER
#include <RunningMedian.h>
RunningMedian rmSamples[5] = {
Expand Down

0 comments on commit 2e34209

Please sign in to comment.