fix(*): imu decode bug

This commit is contained in:
TinyO 2019-08-08 13:15:32 +08:00
parent 37b98e0d33
commit af72213f50

View File

@ -73,7 +73,7 @@ void unpack_imu_packet(const std::uint8_t *data, ImuPacket *pkg) {
unpack_imu_segment(ImuData(data + data_n * i), &seg);
pkg->segments.push_back(seg);
}
pkg->serial_number = pkg->segments.back().frame_id;
if (pkg->count) pkg->serial_number = pkg->segments.back().frame_id;
}
void unpack_imu_res_packet(const std::uint8_t *data, ImuResPacket *res) {