Skip to content

Commit

Permalink
Remove superfluous target update
Browse files Browse the repository at this point in the history
  • Loading branch information
TillFleisch committed Aug 11, 2024
1 parent 337de47 commit 6a95645
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/LD2450/LD2450.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ namespace esphome::ld2450
// Flip x axis if required
x = x * (flip_x_axis_ ? -1 : 1);

targets_[i]->update_values(x, y, speed, distance_resolution);

// Filter targets further than max detection distance and max angle
float angle = -(atan2(y, x) * (180 / M_PI) - 90);
if ((y <= max_detection_distance_ || (targets_[i]->is_present() && y <= max_detection_distance_ + max_distance_margin_)) &&
Expand Down

0 comments on commit 6a95645

Please sign in to comment.