We know that IMU sampling rate is much higher than image taken from the sensor (FPS), so can I get images at 60FPS and IMU data at 500hz at the same time?
Is there an easy way? Or maybe I need to use two threads to achieve my goal ?
We know that IMU sampling rate is much higher than image taken from the sensor (FPS), so can I get images at 60FPS and IMU data at 500hz at the same time?
Is there an easy way? Or maybe I need to use two threads to achieve my goal ?
Copyright © 2021 Jogjafile Inc.
Actually, you have two options.
1. Bound readout from the sensor to an IMU module
Sounds unrealistic, but some advanced
IMUs, such as (no advertisements here)InvenSenseallows to bind readings from theIMUto a sensor event (readout). To get familiar with the concept, please take a closer look atFSYNCregister. You can refer to the most advanced chip:MPU9250.Quote from the invensense.com:
2. Store the last read data value
The one you mentioned. Have a separate producer thread which reads the data from the
IMUwith required speed and puts it into the storage; and another one (consumer) which reads the data from the local storage.