ROBOSTEP_5期 / Mbed 2 deprecated George_Master_Param

Dependencies:   mbed robot

Revision:
34:0a8ae7f92262
Parent:
33:2dbbe198adaf
Child:
35:04699b49c463
--- a/main.cpp	Mon May 13 09:02:19 2019 +0000
+++ b/main.cpp	Mon May 13 11:55:08 2019 +0000
@@ -77,7 +77,7 @@
             }
             printf("get distance mode");
             for(int i=0; i<1; ++i) {
-                while(get_dist_back() < 320) {//300
+                while(Hcsr04BackWithEc() < 320) {//300
                     straightAndInfinity(0, 7);
                 }
             }
@@ -103,7 +103,6 @@
             for(int i= 0; i<14; ++i) straight();
             while(get_dist_back() > 80) straight();
             //段差後旋回
-            printf("angle:%.3f backdist:%.2f\r\n", degree0, get_dist_back());
             motor_lo.setDutyLimit(0.5);//0.5
             motor_li.setDutyLimit(0.5);
             
@@ -112,7 +111,6 @@
             
         case 2://段差直後
             printf("go lope!!!!!!!!!!\r\n");
-            printf("angle:%.3f back dist:%.2f\r\n", degree0, get_dist_back());
             //前進
             motor_lo.setDutyLimit(0.7);
             motor_li.setDutyLimit(0.7);