mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
Update starpilot_planner.py
This commit is contained in:
@@ -131,7 +131,7 @@ class StarPilotPlanner:
|
||||
|
||||
def update_lead_status(self, stop_distance=STOP_DISTANCE):
|
||||
following_lead = self.lead_one.status
|
||||
following_lead &= self.lead_one.dRel < self.model_length + max(float(stop_distance), 4.0)
|
||||
following_lead &= self.lead_one.dRel < self.model_length + float(stop_distance)
|
||||
|
||||
self.tracking_lead_filter.update(following_lead)
|
||||
return self.tracking_lead_filter.x >= THRESHOLD
|
||||
|
||||
Reference in New Issue
Block a user