Skip to content

Commit ec4713f

Browse files
committed
temporarily comment out mag field in data provider
1 parent 1f83e4c commit ec4713f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/tf4micro-motion-kit/data_provider.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ limitations under the License.
1818
* @author Rikard Lindstrom <rlindsrom@google.com>
1919
*/
2020
#include "data_provider.h"
21-
#include <Arduino_LSM9DS1.h> // change to Arduino_LSM6DS3.h for Nano 33 IoT or Uno WiFi Rev 2
21+
//#include <Arduino_LSM9DS1.h> // change to Arduino_LSM6DS3.h for Nano 33 IoT or Uno WiFi Rev 2
22+
//#include <Arduino_LSM6DS3.h>
23+
24+
#include <Arduino_LSM6DSOX.h>
2225

2326
namespace data_provider
2427
{
@@ -71,9 +74,10 @@ namespace data_provider
7174
Serial.println(IMU.accelerationSampleRate());
7275
Serial.print("Gyroscope sample rate = ");
7376
Serial.println(IMU.gyroscopeSampleRate());
77+
#if 0
7478
Serial.print("Magnetometer sample rate = ");
7579
Serial.println(IMU.magneticFieldSampleRate());
76-
80+
#endif
7781
return true;
7882
}
7983

@@ -101,6 +105,7 @@ namespace data_provider
101105
buffer[4] = gy / 2000.0;
102106
buffer[5] = gz / 2000.0;
103107

108+
#if 0
104109
if (useMagnetometer || calibrating)
105110
{
106111
float mx, my, mz;
@@ -156,5 +161,6 @@ namespace data_provider
156161
buffer[7] = my / 50.0;
157162
buffer[8] = mz / 50.0;
158163
}
164+
#endif
159165
}
160166
}

0 commit comments

Comments
 (0)