LORD-MicroStrain / MSCL

MicroStrain Communication Library
https://www.microstrain.com/software/mscl
MIT License
76 stars 57 forks source link

MCSL TIming #393

Open taylorpool opened 2 months ago

taylorpool commented 2 months ago

Hi all,

The situation is the following:

The MSCL API for a MipDataPacket has two member functions:

deviceTimestamp() gives the timestamp associated with the most recent time given by the IMU. On our system, this only reports to the millisecond range. collectedTimestmap() gives the timestamp associated with when the host computer received the message from the IMU (not when the MipPacket was measured). This timestamp reports to the nanosecond range.

We need precise timing beyond the millisecond range for each gyro/acceleration measurement received from the IMU. How can we achieve this? I have attached an image of my terminal output printing each IMU measurement. You can see the collected timestamp, the different between the collected and device timestamps (due to delays in serial communication), and the timestamp associated with device timestamp. All timestamps are in nanoseconds.

Please advise how to proceed.

terminal