GPSモジュールの動作確認プログラム

Dependencies:   getGPS mbed

Fork of GPS_test by CanSat C

Files at this revision

API Documentation at this revision

Comitter:
Imashioyayoshiyuki
Date:
Mon Jul 09 07:14:39 2018 +0000
Parent:
1:9d198383f15c
Commit message:
??????GPS??????GYSFDMAXB??????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jul 07 11:24:03 2018 +0000
+++ b/main.cpp	Mon Jul 09 07:14:39 2018 +0000
@@ -11,10 +11,10 @@
     /* 1秒ごとに現在地を取得してターミナル出力 */
     while(1) {
         if(gps.getgps()) //現在地取得
-            pc.printf("(%lf, %lf)\r\n", gps.latitude, gps.longitude);
+            pc.printf("(%lf, %lf)\r\n", gps.latitude, gps.longitude);//緯度と経度を出力
         
         else
-            pc.printf("No data\r\n");
+            pc.printf("No data\r\n");//データ取得に失敗した場合
         
         wait(1);
     }