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
Diff: main.cpp
- Revision:
- 25:3a9580e58a5e
- Parent:
- 24:d974a3d160f8
- Child:
- 26:05d9d3df4eba
--- a/main.cpp Sat Dec 14 22:42:49 2019 +0000
+++ b/main.cpp Sun Dec 15 03:12:13 2019 +0000
@@ -17,6 +17,7 @@
GPS gps (p28,p27); //GPS
Timer time_gps;
+Timer fettime;
DigitalOut FET(p21); //FET
DigitalOut myled(LED1);
@@ -46,7 +47,12 @@
xbee.printf("you worry about me don't you?\r\n");
//FET
+ fettime.start();
while(1){
+ if(fettime.read()>120){
+ xbee.printf("timeout\n");
+ break;
+ }
if(flight==1) {
myled=1;
wait(10);