From 02a8f6fdce71955ce9af3dd6af727ed4772e91d7 Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Fri, 15 Dec 2023 22:04:01 +0200 Subject: [PATCH] commented out the encoder accelerator for now. seems like 1.1 beta is ready --- Software/Gravity/Interactions.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Software/Gravity/Interactions.ino b/Software/Gravity/Interactions.ino index e7a0334..70a8fe8 100644 --- a/Software/Gravity/Interactions.ino +++ b/Software/Gravity/Interactions.ino @@ -89,9 +89,11 @@ void checkInputs() { if (encPositionOld != encPosition) { int change = encPositionOld - encPosition; unsigned long ms = encoder.getMillisBetweenRotations(); - if (encDirectionOld == encDirection && ms < 50) { //encoder acceleration + /*if (encDirectionOld == encDirection && ms < 20) { //encoder acceleration change = change * 5; - } else if (encDirectionOld != encDirection && ms < 150) { //filter out encoder "jumps" + } else if (encDirectionOld == encDirection && ms < 80) { + change = change * 2; + } else */ if (encDirectionOld != encDirection && ms < 200) { //filter out encoder "jumps" change = 0; } encDirectionOld = encDirection;