mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
Go to dashcam mode if locked out, fixes #1109
old-commit-hash: d08b56317fe31eadc1cffca8f1076acdd2144943
This commit is contained in:
@@ -443,6 +443,10 @@ def controlsd_thread(sm=None, pm=None, can_sock=None):
|
||||
|
||||
passive = passive or not openpilot_enabled_toggle
|
||||
|
||||
# Passive if internet needed
|
||||
internet_needed = params.get("Offroad_ConnectivityNeeded", encoding='utf8') is not None
|
||||
passive = passive or internet_needed
|
||||
|
||||
# Pub/Sub Sockets
|
||||
if pm is None:
|
||||
pm = messaging.PubMaster(['sendcan', 'controlsState', 'carState', 'carControl', 'carEvents', 'carParams'])
|
||||
@@ -517,7 +521,6 @@ def controlsd_thread(sm=None, pm=None, can_sock=None):
|
||||
# controlsd is driven by can recv, expected at 100Hz
|
||||
rk = Ratekeeper(100, print_delay_threshold=None)
|
||||
|
||||
internet_needed = params.get("Offroad_ConnectivityNeeded", encoding='utf8') is not None
|
||||
|
||||
prof = Profiler(False) # off by default
|
||||
|
||||
|
||||
Reference in New Issue
Block a user