![](/media/cache/profiles/2e74f94b232c5a0cc3e75b4eaaf64c90.jpg.50x50_q85.jpg)
simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 25:b9b1257f6e9a
- Parent:
- 24:8bdc026b996f
- Child:
- 26:b246e83efad4
diff -r 8bdc026b996f -r b9b1257f6e9a main.cpp --- a/main.cpp Wed Aug 21 08:02:34 2019 +0000 +++ b/main.cpp Wed Aug 21 09:49:18 2019 +0000 @@ -31,8 +31,10 @@ int flag = 0; int rcmd=0,cmdflag=0; + FILE *dummy = fopen("/sd/MissionData/dum.txt","w"); + fclose(dummy); while(1) { - battery.power_saving_mode(&flag,&bt); + //battery.power_saving_mode(&flag,&bt); temp.temp_sense(&temper); wait(0.5); xbee.printf("flag = %d, bt = %.2f [V], temp = %.1f [C]\r\n",flag,bt,temper); @@ -111,6 +113,7 @@ cam_gps.Sync(); cam_gps.initialize(HeptaCamera_GPS::Baud115200, HeptaCamera_GPS::JpegResolution320x240); cam_gps.test_jpeg_snapshot_picture("/sd/MissionData/picture.jpg"); + }//c xbee.initialize(); }