ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
9:a919aa92e65e
Parent:
8:833757a1df66
Child:
10:216d5a573dc7
--- a/EC.cpp	Mon Nov 21 06:31:24 2016 +0000
+++ b/EC.cpp	Mon Nov 28 13:01:04 2016 +0000
@@ -45,7 +45,7 @@
         first=true;
         now_time=timer.read();
         RPM=60/(now_time-old_time);
-        if((RPM_old-RPM)>150){
+        if((RPM_old-RPM)>250){
             printf("\r\n CAUTION : speed downed drastically\r\n");
             NVIC_SystemReset();
         }