
Home → Forum Home → Software → Development → Thread
There are multiple IMU samples in each frame data, but there is only one time_stamp. Can I get accurate time_stamp for each IMU sample?
Thanks,
For example, In the following example, there are 3/4 IMU samples in each frame data:
———————————————————————————
DUO Frame Timestamp: 18203.1 ms
Sample #1
Accelerometer: [ 0.03320, -0.06665, -0.54492]
Gyro: [ 0.48065, 1.05286, 0.26703]
Temperature: 31.026472 C
Sample #2
Accelerometer: [ 0.03564, -0.07397, -0.55005]
Gyro: [-0.03052, 1.02234, 0.44250]
Temperature: 31.120588 C
Sample #3
Accelerometer: [ 0.04443, -0.06958, -0.54248]
Gyro: [ 0.07629, 1.12915, 0.32043]
Temperature: 31.214706 C
Sample #4
Accelerometer: [ 0.03833, -0.07227, -0.54810]
Gyro: [ 0.36621, 1.15204, 0.48065]
Temperature: 31.214706 C
———————————————————————————
DUO Frame Timestamp: 18235.8 ms
Sample #1
Accelerometer: [ 0.03345, -0.07324, -0.54199]
Gyro: [ 0.41199, 1.35803, 0.29755]
Temperature: 30.979412 C
Sample #2
Accelerometer: [ 0.03882, -0.07129, -0.53784]
Gyro: [ 0.25177, 1.25885, 0.37384]
Temperature: 31.167648 C
Sample #3
Accelerometer: [ 0.04102, -0.06934, -0.54785]
Gyro: [ 0.22888, 1.32751, 0.50354]
Temperature: 31.167648 C
———————————————————————————
Hello,
You are probably not using the latest software release.
In v1.0.80.20 of DUO SDK, each IMU sample is individually time-stamped:
// DUO IMU data sample
typedef struct
{
uint32_t timeStamp; // DUO IMU time stamp in 100us increments
float tempData; // DUO temperature data in degrees Centigrade
float accelData[3]; // DUO accelerometer data (x,y,z) in g units
float gyroData[3]; // DUO gyroscope data (x,y,z) id degrees/s
}DUOIMUSample;
Thanks. Problem solved