usb実装中

Dependencies:   mbed MPU6050_2 HMC5883L_2 SDFileSystem3

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Sat Feb 09 06:34:54 2019 +0000
Parent:
7:8989a4b84695
Child:
9:21cd5d18ad9e
Commit message:
a

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
         }