skipper_raspi_uart_test
Dependencies: mbed MPU6050_2 HMC5883L_4 SDFileSystem3
Diff: main.cpp
- Revision:
- 28:887df143fa9c
- Parent:
- 27:f67efcee6509
- Child:
- 29:5d239812ace6
--- a/main.cpp Tue Feb 19 11:21:00 2019 +0000 +++ b/main.cpp Wed Feb 20 03:24:30 2019 +0000 @@ -333,11 +333,14 @@ case 'P': //jevoisからraspberry piへの切り替え jevoisFlag = false; + servoTurnTable.pulsewidth_us(Turntable_NEUTRAL + Turntable_speed); + wait_ms((float)Time360/(float)2); + servoTurnTable.pulsewidth_us(Turntable_NEUTRAL); NVIC_EnableIRQ(USART1_IRQn); NVIC_EnableIRQ(USART2_IRQn); break; - case 'S': + case 'B': /*RasPiからの超音波判定(プログラムスタート部)*/ NVIC_EnableIRQ(USART1_IRQn); NVIC_EnableIRQ(USART2_IRQn);