File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/tf4micro-motion-kit Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ limitations under the License.
18
18
* @author Rikard Lindstrom <rlindsrom@google.com>
19
19
*/
20
20
#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>
22
25
23
26
namespace data_provider
24
27
{
@@ -71,9 +74,10 @@ namespace data_provider
71
74
Serial.println (IMU.accelerationSampleRate ());
72
75
Serial.print (" Gyroscope sample rate = " );
73
76
Serial.println (IMU.gyroscopeSampleRate ());
77
+ #if 0
74
78
Serial.print("Magnetometer sample rate = ");
75
79
Serial.println(IMU.magneticFieldSampleRate());
76
-
80
+ # endif
77
81
return true ;
78
82
}
79
83
@@ -101,6 +105,7 @@ namespace data_provider
101
105
buffer[4 ] = gy / 2000.0 ;
102
106
buffer[5 ] = gz / 2000.0 ;
103
107
108
+ #if 0
104
109
if (useMagnetometer || calibrating)
105
110
{
106
111
float mx, my, mz;
@@ -156,5 +161,6 @@ namespace data_provider
156
161
buffer[7] = my / 50.0;
157
162
buffer[8] = mz / 50.0;
158
163
}
164
+ #endif
159
165
}
160
166
}
You can’t perform that action at this time.
0 commit comments