ROBOSTEP_5期 / Mbed 2 deprecated George_Master_BOTHMOVE

Dependencies:   mbed robot

Revision:
9:e248986c8423
Parent:
8:ded0354412ae
Child:
10:a335588b9ef0
--- a/main.cpp	Wed May 01 07:41:15 2019 +0000
+++ b/main.cpp	Wed May 01 08:13:24 2019 +0000
@@ -296,8 +296,8 @@
     robot.setLeg(&leg_lo, &leg_li);
     robot.setTickerTime(0.01); //モータ出力間隔 0.01
 
-    motor_lo.setDutyLimit(0.3);
-    motor_li.setDutyLimit(0.3);
+    motor_lo.setDutyLimit(0.5);
+    motor_li.setDutyLimit(0.5);
 
     /*
     char str[255] = {};
@@ -322,7 +322,8 @@
 
     while(1)
     {
-        straight(step_num_l, step_num_r);
+        //straight(step_num_l, step_num_r);
+        turnLeft(step_num_l, step_num_r);
         //printf("machine degree:%.3f\r\n", degree0);
         wait(0.01);
     }