Radard: ignore leads without model confirmation wider than 1.0m (#25664)

Dont stop for cars next to you without model confirmation
pull/25673/head
HaraldSchafer 3 years ago committed by GitHub
parent 2eff6d0ebd
commit 4c05c88c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/lib/radar_helpers.py

@ -152,7 +152,7 @@ class Cluster():
def potential_low_speed_lead(self, v_ego):
# stop for stuff in front of you and low speed, even without model confirmation
return abs(self.yRel) < 1.5 and (v_ego < v_ego_stationary) and self.dRel < 25
return abs(self.yRel) < 1.0 and (v_ego < v_ego_stationary) and self.dRel < 25
def is_potential_fcw(self, model_prob):
return model_prob > .9

Loading…
Cancel
Save