fix(imu params default): value default fix. 2
This commit is contained in:
parent
7e07b7772e
commit
e32a323e57
|
@ -162,6 +162,22 @@ std::size_t from_data(ImuIntrinsics *in, const std::uint8_t *data,
|
||||||
in->z[j] = _from_data<double>(data + i + j * 8);
|
in->z[j] = _from_data<double>(data + i + j * 8);
|
||||||
}
|
}
|
||||||
i += 16;
|
i += 16;
|
||||||
|
} else {
|
||||||
|
// temperature drift
|
||||||
|
// x
|
||||||
|
for (std::size_t j = 0; j < 2; j++) {
|
||||||
|
in->x[j] = 0.0;
|
||||||
|
}
|
||||||
|
i += 16;
|
||||||
|
// y
|
||||||
|
for (std::size_t j = 0; j < 2; j++) {
|
||||||
|
in->y[j] = 0.0;
|
||||||
|
}
|
||||||
|
i += 16;
|
||||||
|
// z
|
||||||
|
for (std::size_t j = 0; j < 2; j++) {
|
||||||
|
in->z[j] = 0.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user