ec
Fork of EC by
Diff: SpeedController.cpp
- Revision:
- 21:211633c6e454
- Parent:
- 20:3ed9cd8e8676
- Child:
- 23:ee41ae658144
--- a/SpeedController.cpp Fri Apr 14 06:09:01 2017 +0000 +++ b/SpeedController.cpp Sat Apr 15 07:47:18 2017 +0000 @@ -115,6 +115,7 @@ if(out_duty<-0.02)out_duty=-0.02; if((duty>=0)&&(duty<0.95)) out+=out_duty; duty=0.0001*out/*+target_RPM/C*/; + if(duty>=0.95) duty=0.94; turnF(duty); }