fix(dataset): fix record bug
This commit is contained in:
parent
e203c57ff8
commit
13833ce2b0
|
@ -95,7 +95,6 @@ void Dataset::SaveMotionData(const device::MotionData &data) {
|
|||
auto &&writer = GetMotionWriter();
|
||||
// auto seq = data.imu->serial_number;
|
||||
auto seq = motion_count_;
|
||||
if (data.imu->flag == 1 || data.imu->flag == 2) {
|
||||
writer->ofs << seq << ", " << static_cast<int>(data.imu->flag) << ", "
|
||||
<< data.imu->timestamp << ", " << data.imu->accel[0] << ", "
|
||||
<< data.imu->accel[1] << ", " << data.imu->accel[2] << ", "
|
||||
|
@ -103,7 +102,6 @@ void Dataset::SaveMotionData(const device::MotionData &data) {
|
|||
<< data.imu->gyro[2] << ", " << data.imu->temperature
|
||||
<< std::endl;
|
||||
++motion_count_;
|
||||
}
|
||||
/*
|
||||
if(motion_count_ != seq) {
|
||||
LOG(INFO) << "motion_count_ != seq !" << " motion_count_: " << motion_count_
|
||||
|
|
Loading…
Reference in New Issue
Block a user