right and left move at the same time

Dependencies:   mbed robot

Revision:
6:2bc2950f32d8
Parent:
5:28581157108b
Child:
7:c5c60192eb02
--- a/main.cpp	Wed May 01 07:42:43 2019 +0000
+++ b/main.cpp	Wed May 01 08:12:51 2019 +0000
@@ -273,8 +273,8 @@
     robot.setLeg(&leg_ro, &leg_ri);
     robot.setTickerTime(0.01); //モータ出力間隔 0.01
     
-    motor_ro.setDutyLimit(0.3);
-    motor_ri.setDutyLimit(0.3);
+    motor_ro.setDutyLimit(0.5);
+    motor_ri.setDutyLimit(0.5);
     
     reset();
     bus_out = 1;
@@ -297,10 +297,6 @@
             //printf("target is %d\n\r",target_ro);
             straight(target_ro, target_ri);
         }
-        motor_ro_f.write(0);
-        motor_ro_b.write(0);
-        motor_ri_f.write(0);
-        motor_ri_b.write(0);
         bus_out = 1;
     }