Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LSM9DS1.cpp
- Revision:
- 2:3695b54eab07
- Parent:
- 0:6661e1395e30
--- a/LSM9DS1.cpp Fri Oct 26 05:56:25 2018 +0000
+++ b/LSM9DS1.cpp Sat Nov 03 22:52:37 2018 +0000
@@ -29,8 +29,10 @@
float magSensitivity[4] = {0.00014, 0.00029, 0.00043, 0.00058};
extern Serial pc;
-int16_t magn_ellipsoid_center[3] = {-425, 655, 204};
-float RM[3][3] = {{0.980752, -0.0124288, 0.00453175}, {-0.0124288, 0.977401, 0.0483545}, {0.00453175, 0.0483545, 0.857327}};
+//int16_t magn_ellipsoid_center[3] = {-425, 655, 204};
+magn_ellipsoid_center[3] = {250 1807 -102};
+//float RM[3][3] = {{0.980752, -0.0124288, 0.00453175}, {-0.0124288, 0.977401, 0.0483545}, {0.00453175, 0.0483545, 0.857327}};
+float RM[3][3] = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};