展示会用に簡単にしています

Dependencies:   ADXL345 AigamozuControlPackets_展示会 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed

Fork of Aigamozu_Robot_March by Mami Yokokawa

Revision:
37:19a9a37a5658
Parent:
36:f2013fc33b28
Child:
38:5cd6d4964f65
--- 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",