Dependents:   omuni_a omuni

Fork of T_motor by ken fuji

Files at this revision

API Documentation at this revision

Comitter:
fujikenac
Date:
Thu Sep 21 08:14:35 2017 +0000
Parent:
6:dc3db7df2a4b
Child:
8:2759e619969a
Commit message:
?????

Changed in this revision

T_motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/T_motor.cpp	Mon Sep 04 02:04:39 2017 +0000
+++ b/T_motor.cpp	Thu Sep 21 08:14:35 2017 +0000
@@ -27,7 +27,7 @@
 
 T_motor& T_motor::operator=(float fval)// -1 <= fval <= 1
 {
-    if(fabs(fval) < 0.001f)free();
+    if(fabs(fval) < 0.005f)free();
     else {
         if(fval < 0) run(1,char(-1*fval*255));
         else if(fval > 0) run(0,char(fval*255));
@@ -37,7 +37,7 @@
 
 void T_motor::control(float fval)//copy from operator
 {
-    if(fabs(fval) < 0.001f)free();
+    if(fabs(fval) < 0.005f)free();
     else {
         if(fval < 0) run(1,char(-1*fval*255));
         else if(fval > 0) run(0,char(fval*255));