Hepta UplinkData

Dependencies:   mbed PowerControl SDFileSystem

Fork of Hepta_UplinkData by 智也 大野

Files at this revision

API Documentation at this revision

Comitter:
MEXT1
Date:
Fri Dec 23 04:44:57 2016 +0000
Parent:
3:d9783e219d90
Commit message:
UplinkData

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Dec 23 03:20:53 2016 +0000
+++ b/main.cpp	Fri Dec 23 04:44:57 2016 +0000
@@ -20,17 +20,17 @@
         pc.printf("rcmd=%d,cmdflag=%d\r\n",rcmd,cmdflag);
         if(cmdflag==1){
             if(rcmd=='a'){
-               xbee.printf("Command Get\r\n");
+               pc.printf("Command Get\r\n");
+               xbee.printf("HEPTA Uplink OK\r\n");
                for(int j=1;j<10;j++){
                   accel.sensing_u16(acx,acy,acz);
                   battery.vol_u16(bat);
                   xbee.xbee_s_transmit(acx,acy,acz,bat);
                   wait(1.0);
-               }
-              xbee.printf("HEPTA Uplink OK\r\n"); 
+               }       
             }    
         xbee.initialize();
         }
-    wait (1.0);
+     wait (1.0);
      }
 }
\ No newline at end of file