Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 26:05d9d3df4eba, committed 2019-12-15
- Comitter:
- YUPPY
- Date:
- Sun Dec 15 03:27:59 2019 +0000
- Parent:
- 25:3a9580e58a5e
- Commit message:
- fet
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 15 03:12:13 2019 +0000 +++ b/main.cpp Sun Dec 15 03:27:59 2019 +0000 @@ -53,18 +53,12 @@ xbee.printf("timeout\n"); break; } - if(flight==1) { + else if(flight==1) { myled=1; wait(10); printf("mada\r\n"); } - else{ - if(flight==1) { - myled=1; - wait(10); - xbee.printf("madamada\r\n"); - } - else{ + else if(flight==0){ myled=0; xbee.printf("yattar\r\n"); wait(20); @@ -78,7 +72,7 @@ break; } } - } + //以下GPS