kk

Dependencies:   SDFileSystem mbed

Fork of cansat_kk by monoCanSat

Files at this revision

API Documentation at this revision

Comitter:
Nike3221
Date:
Tue May 31 13:11:38 2016 +0000
Parent:
4:cfaf33b2c97a
Commit message:
kk

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Mar 04 03:26:39 2016 +0000
+++ b/main.cpp	Tue May 31 13:11:38 2016 +0000
@@ -32,7 +32,7 @@
 
 void gps_rx()//GPSデータ受信割り込み
 {
-    //pc.printf("gps_rx");
+    pc.printf("gps_rx");
     gps_data[i] = gps.getc();
     //gps_data[i] = pc.getc();
     if( gps_data[i] == '$' )
@@ -43,7 +43,7 @@
     }
     else if( gps_data[i-1] == '\r' && gps_data[i] == '\n' )
     {
-        // 改行コードまでのデータを解析する
+        //改行コードまでのデータを解析する
         gps_data[i+1] = '\0';
         if(memcmp(gps_data, "$GPRMC",6) == 0)
         {
@@ -189,11 +189,11 @@
     moterr.period(0.02); 
     while(1)
     {
-        //pc.putc(gps.getc());
-        //pc.printf(",");
-        //moterl.pulsewidth(0.0020);  //パルス幅
-        //moterr.pulsewidth(0.0020);
-        move();
+        pc.putc(gps.getc());
+        pc.printf(",");
+        moterl.pulsewidth(0.0020);  //パルス幅
+        moterr.pulsewidth(0.0020);
+        //move();
     }
 
 }