
simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Fork of Lab7-01_template by
Revision 25:b9b1257f6e9a, committed 2019-08-21
- Comitter:
- HEPTA
- Date:
- Wed Aug 21 09:49:18 2019 +0000
- Parent:
- 24:8bdc026b996f
- Child:
- 26:b246e83efad4
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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(); }