ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
6:bd366dd2fd30
Parent:
5:4abba4f54406
diff -r 4abba4f54406 -r bd366dd2fd30 EC.cpp
--- a/EC.cpp	Sat Nov 12 06:50:56 2016 +0000
+++ b/EC.cpp	Tue Nov 15 07:03:12 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)>200){
             printf("\r\n CAUTION : speed downed drastically\r\n");
             NVIC_SystemReset();
         }