統合試験用です。
Dependencies: ATP3012 mbed TB6612FNG HMC US015 getGPS
Diff: Function.h
- Revision:
- 15:4779723a4f75
- Parent:
- 14:1b5be519bd49
- Child:
- 16:b5a60a976bf7
--- a/Function.h Wed Oct 27 08:11:10 2021 +0000 +++ b/Function.h Wed Oct 27 10:17:59 2021 +0000 @@ -128,7 +128,7 @@ pc.printf("%f, %f\r\n", 0, 0); //gps.latitude=0, gps.longitude=0 next_x = 0; next_y = 100; - theta = atan(next_x - 0 / next_y - 0) * 180 / M_PI; + theta = atan2(next_x - 0 , next_y - 0) * 180 / M_PI; printf("theta=%f\r\n", theta); if(theta >= 0) { delta = angle - theta;