Replies: 4 comments
-
your not, This is all available from the https://invensense.tdk.com/ website This funciton is found in
eMPL_out.quat = the quaternion values and the supporting math function:
and
if you come up with a simple way to do this Please share. Z |
Beta Was this translation helpful? Give feedback.
-
I was hoping for something handled inside the dmp so that the quaternion output from the dmp fusion was from the swapped axes. I wanted this so that my chip was effectively tilted +10 degrees off an axis instead of -80. I was hoping the smaller angle would help the fusion inside the dmp stabilize faster than the 7 seconds I'm experiencing. Any processing I do outside the dmp is not going to help the fusion stabilization speed. So my question is still whether there is a way to put a matrix in the dmp to have it start from swapped axes before it does the fusion. |
Beta Was this translation helpful? Give feedback.
-
The Gyro auto stabilizes on V6.12 Embedded DMP. Note that my Calibration routine uses a PID routine to find the exact offsets. The gyro calibration only requires the MPU to be still. the accelerometer requires the MPU to be vertical Z pointing UP. Unfortunately, this requires gravity to be below the Z-axis to negate that error. You could modify the calibration routine to accept gravity on other planes. Z |
Beta Was this translation helpful? Give feedback.
-
I just saw this in the discussion on how DMP works (#648). You may have answered this question in that reply to the other discussion. :-)
This must be the matrix I asked about in this discussion's original post. I'll see if I can find out how to set it. |
Beta Was this translation helpful? Give feedback.
-
I may be crazy but I remember seeing code that encodes a 3x3 matrix into a single word and then stores it in the dmp. This matrix was used to swap axes. I remember being dissapointed that the matrix values could only be -1, 0, or +1. The unit matrix of +1's on the diagonal was the default. Does anyone know about this? I have been googling for an hour to find it again with no luck. There is no function in the motionApps files like this.
Beta Was this translation helpful? Give feedback.
All reactions