Kalibrasi AVRG

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
adavidkhowantolim
Date:
Mon Oct 29 11:11:23 2018 +0000
Parent:
6:b970c0e20295
Commit message:
Fix. Deklinasi 0derajat;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Oct 29 10:56:02 2018 +0000
+++ b/main.cpp	Mon Oct 29 11:11:23 2018 +0000
@@ -203,7 +203,7 @@
             roll  = atan2(2.0f * (q[0] * q[1] + q[2] * q[3]), q[0] * q[0] - q[1] * q[1] - q[2] * q[2] + q[3] * q[3]);
             pitch *= 180.0f / PI;
             yaw   *= 180.0f / PI;
-            yaw   -= 13.8f; // Declination at Danville, California is 13 degrees 48 minutes and 47 seconds on 2014-04-04
+//            yaw   -= 13.8f; // Declination at Danville, California is 13 degrees 48 minutes and 47 seconds on 2014-04-04
             roll  *= 180.0f / PI;
 
  pc.printf("Yaw, Pitch, Roll: %f %f %f\n\r", yaw, pitch, roll);