Initializing ACCEL and GYRO for DMP

By chiu1152 , 9 September 2013

Hi, to try to ensure I understand this process well enough to use it for our hardware needs, I am porting the 6 axis motion tracker DMP to python (from the 5.1 SDK). It all works great, except for two things. When I try to initialize the GYRO for the DMP (DMP memory 976 plus 12 bytes in the motion tracker DMP), the scaling of the bias is off. That I can fix. And write to DMP memory. So we have the 3 axis QUAT working great. But...

When I do the same with the ACCEL, I note that the ACCEL readings taken from the subroutine get_st_biases are DIFFERENT from those placed in the FIFO while the DMP is running (the chip is physically immobilized). They are not just different in scale - but there are offsets, and this of course impacts function.

I came across the use of the 0x03-0x05 and 0x06-0x0b registers for acceleration bias in the inv_gyro.c code that is not used in the motion tracker library. I was wondering if these biases are used to compute the ACCEL in get_st_biases but not by the DMP (or vice versa)?

More simply, why are the ACCEL readings taken from the FIFO in get_st_biases not scaled-identical to the readings taken while the DMP is running?

guy_mcilroy

12 years 6 months ago

Please check the MotionDriver code example. dmp_read_fifo the accel and gyro are in chip coordinates. get_st_biases() will return in q16 format with sensitivity adjusted. This bias is scaled, sensitivity is again multiplied and rotated to comply with DMP fusion. The code in the motion driver shows the scaling and rotation aspect of the same. There is a DMP memory where these values are stored rather than the register mentioned. More insight on the working of the dmp driver we have can be found in the MotionDriver code.

phpbb Post ID
23892

dfolz

12 years 6 months ago

how to put the accel and gyro bias into the DMP and how to read the calibration values back out of the DMP after the calibration completes.
am using concerto F28m35h52c1...i dont have any idea about DMP please help me... :( :( :(

phpbb Post ID
23901

stone

12 years 6 months ago

Someone answered your question on the other thread. Why don't you follow the reply & do some homework on that instead of posting the same comments repeatedly?

phpbb Post ID
23904
phpbb Topic ID
15582