![](/media/cache/profiles/2e74f94b232c5a0cc3e75b4eaaf64c90.jpg.50x50_q85.jpg)
simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 19:7eb79d010c3c
- Parent:
- 17:2b3b88724c68
diff -r dd478110a4c8 -r 7eb79d010c3c main.cpp --- 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') {