
skipper_raspi_uart_test
Dependencies: mbed MPU6050_2 HMC5883L_4 SDFileSystem3
Diff: main.cpp
- Revision:
- 8:d11a59d2a2f1
- Parent:
- 7:8989a4b84695
- Child:
- 9:21cd5d18ad9e
--- 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); }