main

Dependents:   00_yotsuba 200_yotsuba_21 200_yotuba_21_uiChange

Revision:
11:39f44a1dc256
Parent:
9:904dac75a729
Child:
12:19149697667d
--- a/robot.cpp	Thu Mar 04 14:20:20 2021 +0000
+++ b/robot.cpp	Fri Mar 05 00:00:17 2021 +0000
@@ -108,9 +108,9 @@
 
 void Robot::motorStop(double pwm)
 {
-    motorSpeed = 0.5;
-    printf("%d\r\n", (int)(motorSpeed*10));
-    for(i=0; i<4; i++) motor[i]->setSpeed(motorSpeed);
+//    motorSpeed = 0.5;
+//    printf("%d\r\n", (int)(motorSpeed*10));
+    for(i=0; i<4; i++) motor[i]->setSpeed(pwm);
 }
 
 void Robot::kickCheck()