Update starpilot_planner.py

This commit is contained in:
firestar5683
2026-04-01 10:08:48 -05:00
parent 105e879ae3
commit f6377538e9
+1 -1
View File
@@ -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