temporarily comment out mag field in data provider
This commit is contained in:
1 parent
1f83e4c623
commit
ec4713fd95
1 file changed
+8
-2
@@ -18,7 +18,10 @@ limitations under the License.
|
||||
* @author Rikard Lindstrom <rlindsrom@google.com>
|
||||
*/
|
||||
#include "data_provider.h"
|
||||
#include <Arduino_LSM9DS1.h> // change to Arduino_LSM6DS3.h for Nano 33 IoT or Uno WiFi Rev 2
|
||||
//#include <Arduino_LSM9DS1.h> // change to Arduino_LSM6DS3.h for Nano 33 IoT or Uno WiFi Rev 2
|
||||
//#include <Arduino_LSM6DS3.h>
|
||||
|
||||
#include <Arduino_LSM6DSOX.h>
|
||||
|
||||
namespace data_provider
|
||||
{
|
||||
@@ -71,9 +74,10 @@ namespace data_provider
|
||||
Serial.println(IMU.accelerationSampleRate());
|
||||
Serial.print("Gyroscope sample rate = ");
|
||||
Serial.println(IMU.gyroscopeSampleRate());
|
||||
#if 0
|
||||
Serial.print("Magnetometer sample rate = ");
|
||||
Serial.println(IMU.magneticFieldSampleRate());
|
||||
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -101,6 +105,7 @@ namespace data_provider
|
||||
buffer[4] = gy / 2000.0;
|
||||
buffer[5] = gz / 2000.0;
|
||||
|
||||
#if 0
|
||||
if (useMagnetometer || calibrating)
|
||||
{
|
||||
float mx, my, mz;
|
||||
@@ -156,5 +161,6 @@ namespace data_provider
|
||||
buffer[7] = my / 50.0;
|
||||
buffer[8] = mz / 50.0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user