Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
ike-kazu committed Dec 20, 2024
1 parent 1e366d6 commit c20d6bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct HesaiDecodeFilteredInfo
uint16_t fov_counter = 0;
uint16_t timestamp_counter = 0;
float distance_start = 0;
float disntance_end = 0;
float distance_end = 0;
float raw_azimuth_start = 0;
float raw_azimuth_end = 0;
std::uint32_t packet_timestamp_start = 0;
Expand Down Expand Up @@ -74,7 +74,7 @@ struct HesaiDecodeFilteredInfo
j["fov_counter"] = fov_counter;
j["timestamp_counter"] = timestamp_counter;
j["distance_start"] = distance_start;
j["disntance_end"] = disntance_end;
j["distance_end"] = distance_end;
j["raw_azimuth_start"] = raw_azimuth_start;
j["raw_azimuth_end"] = raw_azimuth_end;
j["packet_timestamp_start"] = packet_timestamp_start;
Expand Down Expand Up @@ -145,8 +145,8 @@ class HesaiDecoder : public HesaiScanDecoder
std::max(decode_filtered_info_.packet_timestamp_end, point.time_stamp);
decode_filtered_info_.distance_start =
std::min(decode_filtered_info_.distance_start, point.distance);
decode_filtered_info_.disntance_end =
std::max(decode_filtered_info_.disntance_end, point.distance);
decode_filtered_info_.distance_end =
std::max(decode_filtered_info_.distance_end, point.distance);
}

/// @brief Validates and parse PandarPacket. Currently only checks size, not checksums etc.
Expand Down

0 comments on commit c20d6bf

Please sign in to comment.