First import from throwbot

Fork of TB6612FNG2 by Junichi Katsu

Files at this revision

API Documentation at this revision

Comitter:
Throwbot
Date:
Fri May 09 14:49:33 2014 +0000
Parent:
2:73cbc6028f7a
Child:
4:53e02c276f23
Commit message:
2

Changed in this revision

TB6612.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TB6612.cpp	Thu May 08 19:11:04 2014 +0000
+++ b/TB6612.cpp	Fri May 09 14:49:33 2014 +0000
@@ -22,9 +22,9 @@
 // Speed Control
 //  arg
 //   int speed -100 -- 0 -- 100
-void TB6612::speed(int speed) {
+void TB6612::speed(int speed_) {
     
-    speed *= scale;
+    float speed = scale*(float)speed_;
     
     if( speed > 0 )
     {