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: ADXL345 BME280 HMC5883L ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST cansat mbed
Fork of Cansat_program3 by
Diff: main.cpp
- Revision:
- 16:a3a0e5654835
- Parent:
- 15:dd7c2ab65a09
diff -r dd7c2ab65a09 -r a3a0e5654835 main.cpp
--- a/main.cpp Wed Aug 12 12:11:25 2015 +0000
+++ b/main.cpp Wed Aug 12 12:14:30 2015 +0000
@@ -350,7 +350,7 @@
fall_flag = 1;
sep_Timer.reset();
}
- if(sep_Timer.read_ms() >= sep_Time){
+ if(fall_flag == 1 && sep_Timer.read_ms() >= sep_Time){
mode = 2;
nic = 0;
xbee.printf("change mode: running\n");
