12/16用テスト

Dependencies:   ATP3012 mbed a HMC US015_2 getGPS

Revision:
14:3e7d563538e5
Parent:
12:740d999b1fea
Child:
18:bd0b2394fa48
--- a/Function.h	Sat Dec 11 01:13:30 2021 +0000
+++ b/Function.h	Mon Dec 13 10:07:34 2021 +0000
@@ -23,13 +23,13 @@
 
 int FrontGet() 
 {
-        Ultra = 1;  //超音波on
-        hs.TrigerOut();
-        wait(1);
-        int distance;
-        distance = hs.GetDistance(); 
-        xbee.printf("distance=%d\r\n", distance);  //距離出力
-        Ultra=0;//超音波off
+    Ultra = 1;  //超音波on
+    hs.TrigerOut();
+    wait(1);
+    int distance;
+    distance = hs.GetDistance(); 
+    xbee.printf("distance=%d\r\n", distance);  //距離出力
+    Ultra=0;//超音波off
         
         if(distance < 1500) {
             return 1;