simulate satellite program structure

Dependencies:   mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp

Fork of Lab7-01_template by HEPTA-Sat Training 2017~2018

Revision:
19:7eb79d010c3c
Parent:
17:2b3b88724c68
--- a/main.cpp	Tue Aug 14 10:46:55 2018 +0000
+++ b/main.cpp	Tue Aug 20 10:07:46 2019 +0000
@@ -47,6 +47,7 @@
     char ns='A',ew='B',aunit='m';
     float time=0.0,latitude=0.0,longitude=0.0,hacu=0.0,altitude=0.0;
     int flag = 0;
+    receive(&rcmd,&cmdflag);
     while(1) {
         battery.power_saving_mode(&flag,&bt);
         temp.temp_sense(&temper);
@@ -59,7 +60,6 @@
         } else if((flag == 1) & (temper > 35.0)) {
             pc.printf("Low Battery and High Temperaturer\n");
         }
-        receive(&rcmd,&cmdflag);
         if (cmdflag == 1) {
             pc.printf("Command Get = %d\r\n",rcmd);
             if (rcmd == 'a') {