![](/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
Revision 19:fe8b70bfc20e, committed 2019-08-20
- Comitter:
- HEPTA
- Date:
- Tue Aug 20 10:00:48 2019 +0000
- Parent:
- 18:2fc8032f3ee2
- Commit message:
- revision
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Aug 14 10:32:47 2018 +0000 +++ b/main.cpp Tue Aug 20 10:00:48 2019 +0000 @@ -27,17 +27,19 @@ int main() { pc.baud(9600); + receive(&rcmd,&cmdflag); while(1) { myleds[0] = 1; wait(0.5); myleds[0] = 0; wait(0.5); - receive(&rcmd,&cmdflag); if (cmdflag == 1) { if (rcmd == 'a') { - - - + pc.printf("Command Get = %d\r\n",rcmd); + for(int i = 0;i < 10;i++){ + pc.printf("Count = %d\r\n",i); + wait(1.0); + } } initialize(); }