IZU2020 / Mbed 2 deprecated IZU2020_AVIONICS

Dependencies:   PQMPU9250 PQINA226 mbed PQAEGPS PQEEPROM PQADXL375 SDFileSystem PQLPS22HB PQES920LR

Revision:
4:5bc218b2a974
Parent:
3:84d2520b9079
Child:
5:22adf1eae5e4
--- a/main.cpp	Thu Feb 20 10:26:08 2020 +0000
+++ b/main.cpp	Wed Feb 26 07:03:52 2020 +0000
@@ -60,8 +60,8 @@
 Ticker log_ticker;
 Ticker downlink_ticker;
 
-DigitalIn liftoff_pin(p18);
-DigitalIn ems_pin(p19);
+DigitalIn liftoff_pin(p21);
+DigitalIn ems_pin(p24);
 DigitalIn flight_pin(p26);
 
 DigitalOut sep(p25);
@@ -154,6 +154,7 @@
     while(1) {
         read();
         led = phase;
+        if(ems_pin) phase = EMERGENCY;
         switch(phase) {
             case SAFETY:
                 break;