Skip to content

Commit

Permalink
fix: relative time was in seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
  • Loading branch information
knzo25 committed Jan 5, 2024
1 parent e94e6b9 commit cf0c795
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ void Vls128Decoder::reset_overflow(double time_stamp)

// The overflow points had the stamps from the previous pointcloud. These need to be changed to
// be relative to the overflow's packet timestamp
double new_timestamp =
double new_timestamp_seconds =
scan_timestamp_ + 1e-9 * overflow_point.time_stamp - last_block_timestamp_;
overflow_point.time_stamp = 1e-9 * new_timestamp;
overflow_point.time_stamp = 1e9 * new_timestamp_seconds;

scan_pc_->points.emplace_back(overflow_point);
}
Expand Down

0 comments on commit cf0c795

Please sign in to comment.