2015/05/14

Dependencies:   ADXL345 AigamozuControlPackets HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed

Fork of Aigamozu_Robot_ver2_1 by aigamozu

Revision:
8:994c73f6fad9
Parent:
7:a9a1acc7673b
Child:
9:07a79851daf4
--- a/main.cpp	Wed May 13 12:59:13 2015 +0000
+++ b/main.cpp	Thu May 14 08:45:51 2015 +0000
@@ -460,9 +460,11 @@
         //check if we recieved a new message from GPS, if so, attempt to parse it,
         if ( myGPS.newNMEAreceived() ) {
             if ( !myGPS.parse(myGPS.lastNMEA()) ) {
+                continue;   
+            } 
+            else{
                 count++;
-                continue;   
-            }       
+            }    
         }
         //一定時間ごとに自分のGPSデータを取得し、AigamozuControlPacketsないのagzPointとagzPointKalmanに格納する
         if (refresh_Timer.read_ms() >= refresh_Time) {