diff --git a/src/main.js b/src/main.js index b6049768d902afbf3cc6ce014ecf91da35ec43aa..022e9c16f092f4e50a09839dac03b114f4aca759 100644 --- a/src/main.js +++ b/src/main.js @@ -620,7 +620,7 @@ function addMotionControls() { let idleTimeout; let idleDelay = 4000; //idle time before reseting reference point let autoSelect = false; // selecting items with time delay - let drawMotionFlag = false; // draw motion values for debugging + let drawMotionFlag = true; // draw motion values for debugging // motion buffer stuff let motionBuffer = []; // motion value buffer @@ -633,7 +633,7 @@ function addMotionControls() { const bufferIterationLimit = 5; // iterations before new average calculation is triggered const bufferLength = 10; // length of value buffer const noiseThreshold = 30; // threshold in pixel to avoid sensor noise - const innerLimit = 80; // threshold in pixel to define inactive area around the reference + const innerLimit = 50; // threshold in pixel to define inactive area around the reference const outerLimit = 400; // create canvas element for motion visualization