Tool/software: Code Composer Studio
Hey,
So quick question in regards to the compdcm_mpu9150 example found in TivaWare_C_Series-2.1.4.178 Sensor Examples. In the initialization there is a line that is
// // Initialize the DCM system. 50 hz sample rate. // accel weight = .2, gyro weight = .8, mag weight = .2 // CompDCMInit(&g_sCompDCMInst, 1.0f/50.0f, 0.2f, 0.8f, 0.2f);
Which indicates in the data sheet for the MPU-9150 it shows that the sample rate could be increased to 1kHz and still capture both accelerometer and gyroscope data.
I've tried to change the sample rate with the second called value but when I scope PB2, the interrupt pin on the TM4C123G, I still can only seem to get 50 Hz and I can't find information on this function. What I've tried is:
CompDCMInit(&g_sCompDCMInst, 1.0f/900.0f, 0.2f, 0.8f, 0.2f); CompDCMInit(&g_sCompDCMInst, 900.0f, 0.2f, 0.8f, 0.2f); CompDCMInit(&g_sCompDCMInst, 1.0f, 0.2f, 0.8f, 0.2f); etc.
Has anyone played around with this example or could give a hint in regards to what I'm doing wrong? Or where I can read more about it.
Thank you in advance for any help,
Kala