
12/16用テスト
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: Function.h
- Revision:
- 12:740d999b1fea
- Parent:
- 11:d00bfdcb7481
- Child:
- 14:3e7d563538e5
- Child:
- 16:7ff8e5bbae88
--- a/Function.h Thu Dec 09 11:00:59 2021 +0000 +++ b/Function.h Thu Dec 09 11:18:58 2021 +0000 @@ -115,7 +115,10 @@ else { theta = theta + 360; delta = angle - theta; - } + } + if(delta<0){ + delta+=360; + } printf("%f-%f=%f\r\n", angle, theta, delta); wait(2); return delta;