
simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Fork of Lab7-01_template by
Revision 24:8bdc026b996f, committed 2019-08-21
- Comitter:
- HEPTA
- Date:
- Wed Aug 21 08:02:34 2019 +0000
- Parent:
- 23:68758ba22c86
- Child:
- 25:b9b1257f6e9a
- 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 07:53:27 2019 +0000 +++ b/main.cpp Wed Aug 21 08:02:34 2019 +0000 @@ -32,11 +32,11 @@ int flag = 0; int rcmd=0,cmdflag=0; while(1) { - xbee.xbee_receive(&rcmd,&cmdflag); 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); + xbee.xbee_receive(&rcmd,&cmdflag); if(flag == 1) { warning = "Low Battery\r\n";