2016_05_19 Auto mode: 10sec forward, 2sec stop, 2sec turn right Please change test Auto pwm
Dependencies: ADXL345 AigamozuControlPackets_2016 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST_2016 mbed
Fork of Aigamozu_Robot_ver4 by
Diff: main.cpp
- Revision:
- 37:19a9a37a5658
- Parent:
- 36:f2013fc33b28
- Child:
- 38:e2aa1165d28d
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",