copterust/mpu9250

How to read measurements triggered by interrupt pin?

pftbest opened this issue · 2 comments

Hello,

Is there any example how to set up interrupt pin for a certain frequency (for example 250 Hz) and then read the imu values each time when irq pin goes low?

I think it is important to read accelerometer and gyroscope values at a steady rate so later they can be integrated.

Hello @pftbest!

You can use RTIC (formerly RTFM) to setup interrupt handler like this.

Refer to mpu configuration for frequency configuration.

Thank you, this is exactly what I needed.