David k
/
MPU9255AHRS-KOMPAS
Kalibrasi AVRG
Diff: main.cpp
- Revision:
- 7:d4fd89e4f19d
- Parent:
- 6:b970c0e20295
diff -r b970c0e20295 -r d4fd89e4f19d main.cpp --- 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);