Skip to content

Commit

Permalink
chore(velodyne_scan_decoder.hpp): explicitly initialize some fields f…
Browse files Browse the repository at this point in the history
…or clarity
  • Loading branch information
mojomex committed May 20, 2024
1 parent 290f5d1 commit cf68687
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ enum RETURN_TYPE {
class VelodyneScanDecoder
{
private:
size_t processed_packets_;
uint32_t prev_packet_first_azm_phased_;
bool has_scanned_;
size_t processed_packets_{0};
uint32_t prev_packet_first_azm_phased_{0};
bool has_scanned_{false};

protected:
/// @brief Checks if the current packet completes the ongoing scan.
Expand Down Expand Up @@ -204,7 +204,7 @@ class VelodyneScanDecoder

/// @brief Virtual function for getting the flag indicating whether one cycle is ready
/// @return Readied
virtual bool hasScanned() {
bool hasScanned() {
return has_scanned_;
}

Expand Down

0 comments on commit cf68687

Please sign in to comment.