commented out the encoder accelerator for now. seems like 1.1 beta is ready
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user