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;