fix(imu params default): value default fix. 2

This commit is contained in:
TinyO 2019-05-21 18:09:37 +08:00
parent 7e07b7772e
commit e32a323e57

View File

@ -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;