mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-28 18:33:45 +08:00
increase timeout for controls init (#21680)
Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 7c3b7b53485069e1402f7351d9f032909c581021
This commit is contained in:
@@ -324,7 +324,7 @@ class Controls:
|
||||
self.sm.update(0)
|
||||
|
||||
all_valid = CS.canValid and self.sm.all_alive_and_valid()
|
||||
if not self.initialized and (all_valid or self.sm.frame * DT_CTRL > 2.0):
|
||||
if not self.initialized and (all_valid or self.sm.frame * DT_CTRL > 3.0):
|
||||
self.CI.init(self.CP, self.can_sock, self.pm.sock['sendcan'])
|
||||
self.initialized = True
|
||||
Params().put_bool("ControlsReady", True)
|
||||
|
||||
Reference in New Issue
Block a user