Skip to content

Commit

Permalink
refactor(robosense_packet.hpp): throw unknown resolution error
Browse files Browse the repository at this point in the history
  • Loading branch information
mebasoglu committed Nov 28, 2023
1 parent 4264de2 commit dbf6ecf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ double get_dis_unit(const PacketT & packet)
} else if (range_resolution == 1) {
return 0.0025;
}
// Should throw an error here?
// throw std::runtime_error("Unknown range resolution");
throw std::runtime_error("Unknown range resolution");
}

/// @brief Convert raw angle value from packet to std::string
Expand Down

0 comments on commit dbf6ecf

Please sign in to comment.