ライブラリを変更

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Fri Feb 15 11:26:30 2019 +0000
Parent:
6:5c0cebb61b0f
Commit message:
a

Changed in this revision

HMC5883L.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HMC5883L.cpp	Thu Feb 07 06:13:40 2019 +0000
+++ b/HMC5883L.cpp	Fri Feb 15 11:26:30 2019 +0000
@@ -133,7 +133,7 @@
 {
     int16_t raw_data[3];
     getXYZ(raw_data);
-    double heading = atan2(static_cast<double>(raw_data[2]+Calib_x), static_cast<double>(raw_data[0])+Calib_y); // heading = arctan(Y/X)
+    double heading = atan2(static_cast<double>(raw_data[0]+Calib_x), static_cast<double>(raw_data[2])+Calib_y); // heading = arctan(Y/X)
     
     // TODO: declenation angle compensation