cansat_B 2019 / Mbed 2 deprecated GPSCompleted

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
saeichi
Date:
Sun Nov 10 10:41:19 2019 +0000
Parent:
3:3cd62c194bd0
Commit message:
GPSXBee

Changed in this revision

gps.cpp Show annotated file Show diff for this revision Revisions of this file
sendGPS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/gps.cpp	Wed Oct 30 05:37:08 2019 +0000
+++ b/gps.cpp	Sun Nov 10 10:41:19 2019 +0000
@@ -4,6 +4,7 @@
 
 Serial pc(USBTX,USBRX);
 GPS gps (p28,p27);
+Serial xbee(p13,p14);
 
 
 int main() {
@@ -55,11 +56,13 @@
          if (distance<5){
              }else{
              pc.printf("5m clear!");
+             xbee.printf("5m clear!");
              break;
               }
           
           }else{
-           pc.printf("NO DATA\r\n");//データ取得失敗
+           xbee.printf("NO DATA\r\n");//データ取得失 
+           pc.printf("NO DATA\r\n");  
            wait(1);
            }
         }