miss serial_number in ImuData
This commit is contained in:
parent
614227a85c
commit
b139fd21c3
|
@ -441,9 +441,11 @@ struct MYNTEYE_API ImgData {
|
|||
* IMU data.
|
||||
*/
|
||||
struct MYNTEYE_API ImuData {
|
||||
/** Imu serial number */
|
||||
std::uint32_t serial_number;
|
||||
/** accel or gyro flag:1 for accel,2 for gyro,3 for both */
|
||||
std::uint8_t flag;
|
||||
/** IMU timestamp in 0.01ms */
|
||||
/** IMU timestamp in 1us */
|
||||
std::uint64_t timestamp;
|
||||
/** IMU accelerometer data for 3-axis: X, Y, Z. */
|
||||
double accel[3];
|
||||
|
|
|
@ -47,6 +47,7 @@ void Motions::SetMotionCallback(motion_callback_t callback) {
|
|||
// static_cast<uint32_t>(-seg.offset) > packet.timestamp) {
|
||||
// LOG(WARNING) << "Imu timestamp offset is incorrect";
|
||||
// }
|
||||
imu->serial_number = seg.serial_number;
|
||||
imu->timestamp = seg.timestamp;
|
||||
imu->flag = seg.flag;
|
||||
imu->temperature = seg.temperature / 326.8f + 25;
|
||||
|
|
Loading…
Reference in New Issue
Block a user