08-12-2021 10:22 PM - edited 08-12-2021 11:19 PM
Hi,
for the IoT Innovation Challenge we are using the Nicla Sense ME's integrated IMU to determine the acceleration in reference to a global basis.
For this we tried to use the SENSOR_ID_RV rotation Quaternion. However, using he quaternion data to rotate the acceleration vector (q*p*(q conj)) does not result in an accordingly rotated vector.
How can we use the rotation vector to rotate the data to the earth frame of reference?
Solved! Go to Solution.
08-13-2021 03:33 AM
Hello maxlo,
Could we know some of your project information?
08-13-2021 12:37 PM - edited 08-13-2021 12:38 PM
Hi,
we're working on an exercise velocity tracking application. In order to precisely determine when an exercise has started and stopped (so we can minimize the integration drift of the accelerometer when calculating the velocity) we want to determine the direction that the acceleration is going towards, relative to a fixed coordinate system (for example NED).
For this we tried the approach of using the rotation vector quaternion as outlined above, however we are unable to get a valid rotated acceleration vector out of the calculation.
08-18-2021 05:24 PM
Update - we figured it out, the mistake was caused by not scaling the orientation quaternion data by 2^-14. Now it works like a charm!