![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forward
Dependencies: ADXL345 AigamozuControlPackets_for_auto HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed
Fork of Aigamozu_Robot_ver4_for_log by
Diff: main.cpp
- Revision:
- 27:2861016eaac6
- Parent:
- 26:835042870f81
- Child:
- 28:4ccd7cfc6b1b
diff -r 835042870f81 -r 2861016eaac6 main.cpp --- 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