-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Hi Paul,
Maybe this is a very basic question about IMUs... What would be the expected yaw values when using Example6_DMP_Quat9_Orientation each time that SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) is connected to the computer?
I have marked a region on the floor to place SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) at the same orientation. On the same day, each time that I connect the sensor to the computer I obtain different values (for example, 24.5º, 57.6º, 40º...). I wait around 30 seconds to get the yaw value since during these first 30 seconds the data is not stable (I do not move the sensor during and after these 30 seconds).
My settings are:
- SparkFun_ICM-20948_ArduinoLibrary, version 1.2.9.
- SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) connected to Teensy LC using DMP and SPI (therefore I uncomment line 29 of ICM_20948_C.h and line 31 of Example6_DMP_Quat9_Orientation.ino, respectively).
- I read the quaternion data via the serial port and convert the quaternion to angles using Python.
- Sensor placed at the same position (thus same orientation) each time, connect the sensor to the computer, not moving the sensor during the experiment and waiting around 30 seconds to obtain the yaw angle.
I assume that in Example6_DMP_Quat9_Orientation.ino, the Digital Motion Processor (DMP) uses the data of the gyroscopes, accelerometers, and magnetometers to obtain the quaternion. If I use Example7_DMP_Quat6_EulerAngles.ino (I assume the DMP uses the data of the gyroscopes and accelerometers to obtain the angles) and wait around 30 seconds, each time that I connect the sensor to the computer yaw is around 1º.
Should I do anything with the sensor each time that I connect it to the computer during the first 30 seconds? Should I do a calibration (if so, how?)? Or maybe just to wait these seconds with the sensor fixed, get the yaw value ("initial" value) and then for the next measurements to obtain the relative orientation to that "initial" yaw value?
Thanks!
Veronica