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 MPU6050_2 HMC5883L_2 SDFileSystem3
Diff: main.cpp
- Revision:
- 8:d11a59d2a2f1
- Parent:
- 7:8989a4b84695
- Child:
- 9:21cd5d18ad9e
diff -r 8989a4b84695 -r d11a59d2a2f1 main.cpp
--- a/main.cpp	Sat Feb 09 06:23:48 2019 +0000
+++ b/main.cpp	Sat Feb 09 06:34:54 2019 +0000
@@ -102,9 +102,15 @@
     while(1) {
         if(jevoisFlag==true) NVIC_DisableIRQ(USART1_IRQn);
         else NVIC_DisableIRQ(USART2_IRQn);
+        
         if(g_landingcommand!='N') MatchPosition();
+        
+        if(jevoisFlag==true) NVIC_DisableIRQ(USART1_IRQn);
+        else NVIC_DisableIRQ(USART2_IRQn);
+        
         MoveCansat(g_landingcommand); 
         wait_ms(23);
+        
         if(jevoisFlag==true) NVIC_EnableIRQ(USART1_IRQn);
         else NVIC_EnableIRQ(USART2_IRQn);
         }