Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy in data.Quat9.Data.Accuracy always 0 #112

Open
tomwcourtney opened this issue Apr 3, 2023 · 0 comments
Open

Accuracy in data.Quat9.Data.Accuracy always 0 #112

tomwcourtney opened this issue Apr 3, 2023 · 0 comments

Comments

@tomwcourtney
Copy link

tomwcourtney commented Apr 3, 2023

I've ported the ICM to work with an STM32 however I have obviously made a mistake as the accuracy of the 9DoF DMP is always 0 in the Quat9 portion of the icm_20948_DMP_data_t packet whenever I read from 'Example6_DMP_Quat9_Orientation'.

From the example, the critical configurations are:

success &= (myICM.enableDMPSensor(INV_ICM20948_SENSOR_ORIENTATION) == ICM_20948_Stat_Ok);
success &= (myICM.setDMPODRrate(DMP_ODR_Reg_Quat9, 0) == ICM_20948_Stat_Ok); 

And I acquire data from the IMU

icm_20948_DMP_data_t data; 
myICM.readDMPdataFromFIFO(&data);
SERIAL_PORT.println(data.Quat9.Data.Accuracy);

The only time accuracy is non-zero is if the header returned from the IMU does not match the Quat9 bit mask.

if ((data.header & DMP_header_bitmap_Quat9) > 0)

I was hoping someone could give a clue as to where to look in the IMUs setup. The IMU readings are otherwise good it's just that accuracy being 0 that's missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant