テスト用 gps手入力

Dependencies:   ATP3012 mbed a HMC US015_2 getGPS

Revision:
3:cad76afeff0f
Parent:
2:023018a67341
--- a/main.cpp	Thu Nov 11 11:06:39 2021 +0000
+++ b/main.cpp	Fri Nov 12 14:57:45 2021 +0000
@@ -44,7 +44,7 @@
         while (1) {
                 speak();
                 direction = AngleGet();
-                xbee.printf("direction=%f\n\rdirection start", direction);
+                xbee.printf("\n\rdirection=%f\n\rdirection start", direction);
                 int df=1;
                 //角度調節
                 while(1) {
@@ -86,13 +86,14 @@
                         as[1]=0.5;
                         }
                 Move('2', as[1]);
-                xbee.printf("mortor mode:2 speed:%f",as[1]);
+                xbee.printf("mortor mode:2 speed:%f\n\r",as[1]);
                 catchGPS();
-                xbee.printf("GPS_x=xbee input");
+                xbee.printf("GPS_x=");
                 xbee.scanf("%lf",&GPS_x);
-                xbee.printf("GPS_y=xbee input");
+                xbee.printf("\n\rGPS_y=");
                 xbee.scanf("%lf",&GPS_y);
-                xbee.printf("now point(lati, long)=%lf , %lf\r\n", gps.latitude, gps.longitude);
+                //xbee.printf("now point(lati, long)=%lf , %lf\r\n", gps.latitude, gps.longitude);
+                xbee.printf("\n\rX=%d\n\rY=%d\n\r",GPS_x,GPS_y);
                 
                 double lati = 111132.8715;    //1度あたりの緯度の距離(m)
                 double longi = 91535.79099;    //1度あたりの経度の距離(m)
@@ -106,7 +107,7 @@
             }//while(1){}
         }//for(){}
     // 行動フロー終了
-    xbee.printf("End\r\n");
+    xbee.printf("\n\rEnd\r\n");
     Move('1', 0);      //停止
     xbee.printf("mortor mode:1 speed:0");
     return 0;