commented out the encoder accelerator for now. seems like 1.1 beta is ready

This commit is contained in:
2023-12-15 22:04:01 +02:00
parent 877c330e74
commit 02a8f6fdce

View File

@ -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;