cansat_B 2019 / Mbed 2 deprecated GPS2

Dependencies:   mbed

Revision:
1:c142b1682312
Parent:
0:04793043db60
--- a/main.cpp	Fri Oct 25 11:39:17 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-#include "mbed.h"
-#include "getGPS.h"
-Serial pc(USBTX,USBRX);
-GPS gps (p27,p28);
-
-
-int main() {
-    double a;
-    double b;
-    double c;
-    double d;
-    double distance;
-    
-    pc.printf("\r\n\GPS Start\r\n");
-    
-     while(2){
-         if(gps.getgps()){
-           a = gps.latitude;
-           b = gps.longitude;
-           
-          pc.printf("(%lf,%lf)\n\r",gps.latitude,gps.longitude);//緯度と経度を表示   
-           break;
-         }else{
-        pc.printf("NO DATA\r\n");//データ取得失敗
-        wait(1);
-        }
-      while(2){
-         if(gps.getgps(){
-           c = gps.latitude;
-           d = gps.longitude;
-           pc.printf("(%lf,%lf)\n\r",gps.latitude,gps.longitude);//緯度と経度を表示   
-           distance = (a-c)*(a-c)+(b-d)*(b-d);
-           
-            if (distance<25){
-           }else{
-             pc.printf("5m動いたミニマムサクセスクリア");
-             break;
-          
-          }else{
-           pc.printf("NO DATA\r\n");//データ取得失敗
-           wait(1);
-           }
-        return 0;
-}
\ No newline at end of file