mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
fix auto resume logic (#1657)
old-commit-hash: c8377131dc155d1c1330762fbe79a47205204604
This commit is contained in:
@@ -89,7 +89,7 @@ class CarController():
|
||||
# interval after 6 msgs
|
||||
if self.resume_cnt > 5:
|
||||
self.last_resume_frame = frame
|
||||
self.clu11_cnt = 0
|
||||
self.resume_cnt = 0
|
||||
# reset lead distnce after the car starts moving
|
||||
elif self.last_lead_distance != 0:
|
||||
self.last_lead_distance = 0
|
||||
|
||||
Reference in New Issue
Block a user