simulate satellite program structure
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 19:fe8b70bfc20e
- Parent:
- 17:ccae1368497e
--- 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(); }