diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/debug/motors/PID/PID.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/debug/motors/PID/PID.ino b/code/debug/motors/PID/PID.ino index 1e86a5d..86a32ee 100644 --- a/code/debug/motors/PID/PID.ino +++ b/code/debug/motors/PID/PID.ino @@ -73,7 +73,7 @@ void updateSpeed() { //6 interupts per rotation and interuptDuration but in seconds m1encSP = (m1enc / 6.0) / (interuptDuration/1000.0); m1enc = 0; - if (m1encSP < 1 || isnan(m1encSP)) { + if (m1encSP < 0 || isnan(m1encSP)) { m1encSP = 0; tone(buzzer, 1000); Serial.println(" ___________________________"); |
