SSSUP
/
sample_GPS_GYSFDMAXB
GPSモジュールの動作確認プログラム
Fork of GPS_test by
Diff: main.cpp
- Revision:
- 0:cc8b4152b0cf
- Child:
- 1:9d198383f15c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jul 07 08:11:29 2018 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "getGPS.h" + +Serial pc(USBTX, USBRX); +GPS gps(p28, p27); + +int main() +{ + pc.printf("\r\n\nMission Start\r\n"); + + while(1) { + if(gps.getgps()) + pc.printf("(%lf, %lf)\r\n", gps.latitude, gps.longitude); + + else + pc.printf("No data\r\n"); + } + + return 0; +}