機体の回転部分を修正

Dependencies:   mbed MPU6050_2 HMC5883L_2

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Sun Feb 10 06:15:21 2019 +0000
Parent:
8:d11a59d2a2f1
Commit message:
a

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Feb 09 06:34:54 2019 +0000
+++ b/main.cpp	Sun Feb 10 06:15:21 2019 +0000
@@ -220,8 +220,9 @@
     SensingHMC();
     DebugPrint();
     
-    while(nowAngle_HMC <= nowAngle[YAW]+5 && nowAngle_HMC >= nowAngle[YAW]-5){
+    while(nowAngle[YAW] <= nowAngle_HMC+5 && nowAngle[YAW] >= nowAngle_HMC-5){
         MoveCansat('M');
+        SensingMPU();
     }
     return;
 }