GPSは500秒過ぎたらスキップされます. xbeeで送信するコメントを増やしました。

Dependencies:   mbed

Revision:
21:548ac557ee95
Parent:
20:a30164d29218
--- a/main.cpp	Sat Dec 14 18:30:26 2019 +0000
+++ b/main.cpp	Sat Dec 14 19:10:57 2019 +0000
@@ -43,7 +43,7 @@
     flight==1;//flight pin ついてる
     FET=0;//FET off  
     myled=1; 
-    printf("you worry about me don't you?\r\n");
+    xbee.printf("you worry about me don't you?\r\n");
 
      //FET
      while(1){
@@ -56,17 +56,17 @@
         if(flight==1) {
             myled=1;
         wait(10);
-        printf("madamada\r\n");
+        xbee.printf("madamada\r\n");
         }
         else{
           myled=0;
-          printf("yattar\r\n");
+          xbee.printf("yattar\r\n");
           wait(20);
           FET=1;
           wait(10);
           FET=0;
           wait(10);
-          printf("FET End!\r\n");
+          xbee.printf("FET End!\r\n");
           SW=0;
         
     break;
@@ -205,7 +205,7 @@
              if(th==1 && !detected) {//焦電反応ありの場合
                i++; 
                detected=true;
-               pc.printf("human\r\n");
+               xbee.printf("human\r\n");
                tm.reset();
                tm.start();
           
@@ -239,7 +239,7 @@
                
        
                
-               xbee.printf("xbee connected!\r\n");
+               xbee.printf("i could take apicture!\r\n");
                bs = new base64();
                bs->Encode("/local/pict000.jpg","/local/data000.txt");