flagを1つにした。frontgetを割り込みにした
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: main.cpp
- Revision:
- 1:6d1adfccd142
- Parent:
- 0:18be66de24f7
- Child:
- 2:5a54fa1f8e25
--- a/main.cpp Fri Dec 17 08:02:43 2021 +0000 +++ b/main.cpp Fri Dec 17 08:09:51 2021 +0000 @@ -65,7 +65,6 @@ front_get.attach(&avoid, 10.0);//10秒ごとにavoid割り込み while (1) { - speak(); //方向測定 direction = AngleGet(); xbee.printf("direction=%f\n\rrotation_start", direction); @@ -84,7 +83,7 @@ direction = AngleGet(); } } - + speak(); catchGPS(); xbee.printf("now point(lati, long)=%lf , %lf\r\n", gps.latitude, gps.longitude);