ec

Dependents:   F3RC

Fork of EC by ROBOSTEP_LIBRARY

Revision:
27:72711b6cbe2a
Parent:
26:45a53e3c81b1
Child:
29:b8de333facd4
--- a/SpeedController.cpp	Wed Aug 02 06:55:54 2017 +0000
+++ b/SpeedController.cpp	Thu Aug 10 05:27:10 2017 +0000
@@ -23,7 +23,7 @@
     if(out_duty>0.1)out_duty=0.1;
     if(out_duty<-0.1)out_duty=-0.1;
     if((duty>=-0.95)&&(duty<=0.95)) out+=out_duty;
-    duty=0.0001*out+target_omega/C;
+    duty=0.00002*out+target_omega/C;
     if(duty<-0.95)duty=-0.95;
     else if(duty>0.95)duty=0.95;
     old_time_=now_time_;