2015/06/05

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

Fork of Aigamozu_Robot_ver4_3 by aigamozu

Revision:
27:2861016eaac6
Parent:
26:835042870f81
Child:
28:4ccd7cfc6b1b
--- a/main.cpp	Sun May 17 14:29:44 2015 +0000
+++ b/main.cpp	Mon May 18 02:31:55 2015 +0000
@@ -169,14 +169,14 @@
         agz.nowStatus = GPS_AVAIL;
         
         if(flag){//初期値設定
-            if(myGPS->latitudeH>=36 && myGPS->latitudeH<=38 && myGPS->longitudeH>=138 && myGPS->longitudeH<=141){
+            if(myGPS->latitudeH>=36 && myGPS->latitudeH<=38 && myGPS->longitudeH>=138 && myGPS->longitudeH<=140){
                 flag = false;
                 x[0][0]=(double)myGPS->latitudeL;                        
                 x[0][1]=(double)myGPS->longitudeL;   
             } 
         }
         
-        if(myGPS->longitudeH<138 || myGPS->longitudeH>141 || myGPS->latitudeH<36 || myGPS->latitudeH>38){
+        if(myGPS->longitudeH<138 || myGPS->longitudeH>140 || myGPS->latitudeH<36 || myGPS->latitudeH>38){
             return;
         }
         //Kalman Filter