![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Hepta_template_program
Dependencies: mbed PowerControl SDFileSystem
Fork of Hepta_UplinkData by
Diff: main.cpp
- Revision:
- 4:4f34143d3f6e
- Parent:
- 3:d9783e219d90
- Child:
- 5:862413879d84
diff -r d9783e219d90 -r 4f34143d3f6e main.cpp --- 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