2017.11伊豆大島共同打ち上げ実験のデータ取得&保存&無線送信用プログラム

Dependencies:   BMP180 MPU6050 SDFileSystem mbed

Fork of 2017_11_1768 by kohei oikawa

Files at this revision

API Documentation at this revision

Comitter:
oichan
Date:
Tue Nov 14 03:44:54 2017 +0000
Parent:
8:8b7e9aa3a2fc
Commit message:
flight model

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8b7e9aa3a2fc -r 97fd5ab1f7c3 main.cpp
--- a/main.cpp	Fri Nov 10 13:14:11 2017 +0000
+++ b/main.cpp	Tue Nov 14 03:44:54 2017 +0000
@@ -129,40 +129,31 @@
             timer.reset();
         }
         
-//        twe.printf("phase:%d,max altitude:%f\r\n",Phase,Max_Alt);
 
         /*  GPS取得&送信    */
-//        twe.printf("0");
         gps_data[cnt_gps] = gps.getc();
-//        twe.printf("1");
         if(gps_data[cnt_gps] == '$' || cnt_gps ==256){
-//           twe.printf("2");
             cnt_gps = 0;
             memset(gps_data,'\0',256);
         }else if(gps_data[cnt_gps] == '\r'){
             float world_time, lon_east, lat_north;
             int rlock, sat_num;
             char lat,lon;
-//            twe.printf("3");
             if(sscanf(gps_data,"GPGGA,%f,%f,%c,%f,%c,%d,%d",&world_time,&lat_north,&lat,&lon_east,&lon,&rlock,&sat_num)>=1){
                 if(rlock==1){
-//                    twe.printf("4");
                     lat_north = _DMS2DEG(lat_north);
                     lon_east = _DMS2DEG(lon_east);
                     twe.printf("%s\r\n",gps_data);
                     twe.printf("Lat:%f,Lon:%f\r\ntime:%f,sat_num:%d\r\n",lat_north,lon_east,world_time,sat_num);
                     twe.printf("phase:%d,max altitude:%f\r\n",Phase,Max_Alt);
                 }else{
-//                    twe.printf("5");
                     twe.printf("%s\r\n",gps_data);
                     twe.printf("phase:%d,max altitude:%f\r\n",Phase,Max_Alt);
                 }
             }
         }else{
             cnt_gps++;
-//            twe.printf("6");
         }
-//        twe.printf("Hi!");
     }
 }
 
@@ -237,6 +228,7 @@
     return ans;
 }
 
+
 /*  コマンド判別用関数   */
 int _input(char moji){
     if(moji!='\0'){