m5stack / M5Unified

Unified library for M5Stack series
MIT License
328 stars 58 forks source link

How to set MPU6886 Acceleromer/Gyro range and FIFO sample frequency? #123

Open mgrouch opened 3 months ago

mgrouch commented 3 months ago

How can I read built-in mpu6886 FIFO on atomS3? M5Unified library doesn't have an example and looking at the code many methods for FIFO are commented out and made non-public.

Can someone provide an example? I need higher sample rate and synchronized gyro and accelerometer samples. The FIFO register supports burst reads of synchronized data for the specified data rate. The interrupt function is used to determine when new data is available.

Looks like using FIFO is only correct way to get accurate data.

Thanks

lovyan03 commented 4 days ago

Hello, @mgrouch

Sorry for the late response. We are planning to add a FIFO-related function, but we have not been able to find the time to work on it, so it has not been implemented yet.