Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Max Schmeller <[email protected]>
  • Loading branch information
xmfcx and mojomex authored Dec 1, 2023
1 parent 1a24da7 commit 7aee61e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void HesaiHwInterface::ReceiveCloudPacketCallback(const std::vector<uint8_t> & b
auto now_nanosecs =
std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch()).count();
pandar_packet.stamp.sec = static_cast<int>(now_secs);
pandar_packet.stamp.nanosec = static_cast<std::uint32_t>(now_nanosecs % 1000000000);
pandar_packet.stamp.nanosec = static_cast<std::uint32_t>(now_nanosecs % 1'000'000'000);
scan_cloud_ptr_->packets.emplace_back(pandar_packet);

int current_phase = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void VelodyneHwInterface::ReceiveCloudPacketCallback(const std::vector<uint8_t>
std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch()).count();
velodyne_packet.data = packet_data;
velodyne_packet.stamp.sec = static_cast<int>(now_secs);
velodyne_packet.stamp.nanosec = static_cast<std::uint32_t>(now_nanosecs % 1000000000);
velodyne_packet.stamp.nanosec = static_cast<std::uint32_t>(now_nanosecs % 1'000'000'000);
scan_cloud_ptr_->packets.emplace_back(velodyne_packet);
processed_packets_++;

Expand Down

0 comments on commit 7aee61e

Please sign in to comment.