LED入れ替え
Dependencies: HCSR04_2 MPU6050_2 mbed SDFileSystem3
Fork of Autoflight2018_55 by
Diff: main.cpp
- Revision:
- 32:48d5d3f77c41
- Parent:
- 31:dba3216c2755
- Child:
- 33:0f7a35d55316
--- a/main.cpp Sat Sep 22 09:46:42 2018 +0000 +++ b/main.cpp Sat Sep 22 10:41:41 2018 +0000 @@ -562,6 +562,7 @@ if(count_op > changeModeCount){ operation_mode = BombwithPC; pc.printf("Goto Bombing mode\r\n"); + pc.attach(getSF_Serial, Serial::RxIrq); count_op = 0; } }else count_op = 0; @@ -574,6 +575,7 @@ if(count_op > changeModeCount){ operation_mode = RightLoop; pc.printf("Goto RightLoop mode\r\n"); + pc.attach(NULL, Serial::RxIrq); count_op = 0; } }else count_op = 0;