simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 23:68758ba22c86
- Parent:
- 21:8df80d4e6003
- Child:
- 24:8bdc026b996f
--- a/main.cpp Wed Aug 21 07:03:33 2019 +0000 +++ b/main.cpp Wed Aug 21 07:53:27 2019 +0000 @@ -31,8 +31,8 @@ int flag = 0; int rcmd=0,cmdflag=0; - xbee.xbee_receive(&rcmd,&cmdflag); while(1) { + xbee.xbee_receive(&rcmd,&cmdflag); battery.power_saving_mode(&flag,&bt); temp.temp_sense(&temper); wait(0.5); @@ -110,7 +110,7 @@ if (rcmd == 'c') { cam_gps.Sync(); cam_gps.initialize(HeptaCamera_GPS::Baud115200, HeptaCamera_GPS::JpegResolution320x240); - cam_gps.test_jpeg_snapshot_data("/sd/MissionData/picture.jpg"); + cam_gps.test_jpeg_snapshot_picture("/sd/MissionData/picture.jpg"); }//c xbee.initialize(); }