![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
GPS精度実験
Dependencies: ADXL345 AigamozuControlPackets_2016 HMC5843 ITG3200 MBed_Adafruit-GPS-Library2 XBee2 agzIDLIST_2016 mbed
Diff: main.cpp
- Revision:
- 2:575479bf1302
- Parent:
- 0:040cedcc50c2
- Child:
- 3:693ea9476763
--- a/main.cpp Tue Aug 09 13:07:59 2016 +0000 +++ b/main.cpp Wed Sep 14 11:03:42 2016 +0000 @@ -431,16 +431,30 @@ }else{ } + if(strstr(myGPS.lastNMEA(), "$GPGSA")){ + //myGPS.GPGSAdata=myGPS.lastNMEA(); + //printf("%s",myGPS.GPGSAdata); + } + if(strstr(myGPS.lastNMEA(), "$GPGGA")){ + //myGPS.GPGGAdata=myGPS.lastNMEA(); + //printf("%s",myGPS.GPGGAdata); + } + if(strstr(myGPS.lastNMEA(), "$GPRMC")){ + //myGPS.GPRMCdata=myGPS.lastNMEA(); + //printf("%s",myGPS.GPRMCdata); + } + + //printf("%s",myGPS.GPGGAdata); + //printf("%s",myGPS.GPRMCdata); + //printf("%s",myGPS.GPGSAdata); } + //一定時間ごとに自分のGPSデータを取得し、AigamozuControlPacketsないのagzPointとagzPointKalmanに格納する if (refresh_Timer.read_ms() >= 1000){ refresh_Timer.reset(); //print_gps(count); - - printf("%s",myGPS.GPGGAdata); - printf("%s",myGPS.GPRMCdata); - printf("C%s",myGPS.GPGSAdata); + }