ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
7:87c135463de7
Parent:
5:4abba4f54406
Child:
8:833757a1df66
diff -r 4abba4f54406 -r 87c135463de7 EC.cpp
--- a/EC.cpp	Sat Nov 12 06:50:56 2016 +0000
+++ b/EC.cpp	Sat Nov 19 07:03:54 2016 +0000
@@ -45,7 +45,7 @@
         first=true;
         now_time=timer.read();
         RPM=60/(now_time-old_time);
-        if((RPM_old-RPM)>300){
+        if((RPM_old-RPM)>150){
             printf("\r\n CAUTION : speed downed drastically\r\n");
             NVIC_SystemReset();
         }