ROBOSTEP_5期 / Mbed 2 deprecated George_Master_Param

Dependencies:   mbed robot

Revision:
23:ef274a44a867
Parent:
22:0ed9de464f40
Child:
25:c740e6fd5dab
diff -r 0ed9de464f40 -r ef274a44a867 moves/moves.cpp
--- a/moves/moves.cpp	Fri May 03 09:34:05 2019 +0000
+++ b/moves/moves.cpp	Fri May 03 09:56:10 2019 +0000
@@ -10,7 +10,7 @@
 PIDcontroller pid_lo(0.01, 0.000, 0.000);
 PIDcontroller pid_li(0.01, 0.000, 0.000);    //Kp.Ki,Kd
 Motor motor_lo(&motor_lo_f, &motor_lo_b),
-      motor_li(&motor_li_f, &motor_li_b); 
+      motor_li(&motor_li_f, &motor_li_b);
 OneLeg leg_lo, leg_li;
 Robot robot;
 
@@ -138,6 +138,8 @@
 
 void reset()
 {
+    motor_lo.setDutyLimit(0.3);
+    motor_li.setDutyLimit(0.3);
     while(switch_lo.read()) {
         motor_lo.output(0.3);
     }