Skip to content

Commit

Permalink
Change CM_TO_DISTANCE
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Apr 16, 2024
1 parent 7ce2772 commit d835648
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace behaviour_tree::node::custom::condition
{
constexpr double CM_TO_DISTANCE = 6.666666666666666666666666666666666666666666666;
constexpr double CM_TO_DISTANCE = 15.151515151515151515151515151515151515151515151515151515;
class SuccessOnAverageNearbyScan final : public CustomNode
{
public:
Expand All @@ -35,6 +35,7 @@ namespace behaviour_tree::node::custom::condition
int angles_between_count = 0;
for (auto &measure : car_system->getDeviceManager()->getLidarDevice()->getScanData())
{
spdlog::info("{} : {}", measure.angle, measure.distance);
if (measure.angle > this->getMinAngle() && measure.angle < this->getMaxAngle())
{
total_distance += measure.distance;
Expand Down

0 comments on commit d835648

Please sign in to comment.