From aaa34957e5132b885efeeb24c4c76e5df97bdc2e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 27 Dec 2024 06:28:25 +0000 Subject: [PATCH] ci(pre-commit): autofix --- .../decoders/hesai_decoder.hpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp index 5296ddc1..deadc3ef 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp @@ -18,13 +18,16 @@ #include "nebula_decoders/nebula_decoders_hesai/decoders/angle_corrector.hpp" #include "nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp" #include "nebula_decoders/nebula_decoders_hesai/decoders/hesai_scan_decoder.hpp" + #include #include #include #include #include #include + #include + #include #include #include @@ -100,24 +103,20 @@ struct HesaiDecodeFilteredInfo fov_j, timestamp_j, }); - + return j; } void get_minmax_info(const NebulaPoint & point) { - cloud_azimuth_min_rad = - std::min(cloud_azimuth_min_rad, point.azimuth); - cloud_azimuth_max_rad = - std::max(cloud_azimuth_max_rad, point.azimuth); + cloud_azimuth_min_rad = std::min(cloud_azimuth_min_rad, point.azimuth); + cloud_azimuth_max_rad = std::max(cloud_azimuth_max_rad, point.azimuth); packet_timestamp_min_ns = std::min(packet_timestamp_min_ns, static_cast(point.time_stamp)); packet_timestamp_max_ns = std::max(packet_timestamp_max_ns, static_cast(point.time_stamp)); - cloud_distance_min_m = - std::min(cloud_distance_min_m, point.distance); - cloud_distance_max_m = - std::max(cloud_distance_max_m, point.distance); + cloud_distance_min_m = std::min(cloud_distance_min_m, point.distance); + cloud_distance_max_m = std::max(cloud_distance_max_m, point.distance); } };