ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
16:14d05ae8d566
Parent:
15:aef7cc059e50
Child:
17:e0b465d9b579
diff -r aef7cc059e50 -r 14d05ae8d566 SpeedController.cpp
--- a/SpeedController.cpp	Mon Apr 10 09:57:22 2017 +0000
+++ b/SpeedController.cpp	Mon Apr 10 10:14:38 2017 +0000
@@ -114,7 +114,7 @@
     if(out_duty>0.01)out_duty=0.01;
     if(out_duty<-0.01)out_duty=-0.01;
     out+=out_duty;
-    duty=0.0001/**out+target_RPM/C*/;
+    duty=0.0001*out/*+target_RPM/C*/;
     turnF(duty);
 }