for log
Dependencies: ADXL345 AigamozuControlPackets HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed
Fork of Aigamozu_Robot_ver4_for_log by
Revision 37:19a9a37a5658, committed 2015-10-29
- Comitter:
- s1200058
- Date:
- Thu Oct 29 07:52:14 2015 +0000
- Parent:
- 36:f2013fc33b28
- Commit message:
- ????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f2013fc33b28 -r 19a9a37a5658 main.cpp --- a/main.cpp Mon May 25 11:46:28 2015 +0000 +++ b/main.cpp Thu Oct 29 07:52:14 2015 +0000 @@ -59,7 +59,7 @@ //Base ID: 'a' ~ 'a' //manager ID: '0'(数字のゼロ) // -const char MyID = 'E'; +const char MyID = 'D'; //************ID Number***************** ///////////////////////////////////////// @@ -107,9 +107,11 @@ void Kalman(double Latitude,double Longitude); int change = 0; +/* LocalFileSystem local("local"); // マウントポイントを定義(ディレクトリパスになる) FILE *fp; char filename[16] = "/local/out0.txt"; +*/ ///////////////////////////////////////// // //Plus Speed @@ -183,7 +185,7 @@ void Get_GPS(Adafruit_GPS *myGPS){ static int flag = 0; - static int save_counter = 0; +// static int save_counter = 0; if (myGPS->fix) { @@ -206,7 +208,7 @@ else{ change = 0; } - if(save_counter < 10){ +/* if(save_counter < 10){ fp = fopen(filename, "a"); fprintf(fp, "%d %.14lf %.14lf %.14lf %.14lf %.14le %.14le \n", change, agz.get_agzPoint_lati(),agz.get_agzPoint_longi(), @@ -219,6 +221,7 @@ save_counter++; } } +*/ } printf("%.14lf %.14lf %.14lf %.14lf %.14le %.14le \n",