Skip to content

Commit

Permalink
Update nebula_decoders/src/nebula_decoders_velodyne/decoders/vls128_d…
Browse files Browse the repository at this point in the history
…ecoder.cpp

Co-authored-by: Benjamin Gilby <[email protected]>
  • Loading branch information
knzo25 and bgilby59 authored Jan 9, 2024
1 parent 9091b2f commit 5d4bad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void Vls128Decoder::reset_overflow(double time_stamp)
// be relative to the overflow's packet timestamp
double new_timestamp_seconds =
scan_timestamp_ + 1e-9 * overflow_point.time_stamp - last_block_timestamp_;
overflow_point.time_stamp = new_timestamp_seconds < 0.0 ? 0.0 : 1e9 * new_timestamp_seconds;
overflow_point.time_stamp = static_cast<uint32_t>(new_timestamp_seconds < 0.0 ? 0.0 : 1e9 * new_timestamp_seconds);

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

0 comments on commit 5d4bad7

Please sign in to comment.