Check average frequency in SubMaster (#20558)

albatross
Willem Melching 2021-04-06 10:09:47 +02:00 committed by GitHub
parent 780654cb3b
commit 79b5bee9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
cereal

@ -1 +1 @@
Subproject commit e1741865f8117f27206b0225b4c48fa7432b830f
Subproject commit 56c7050fadb95611ce7889c9d58b331c17cb7c0e

View File

@ -188,7 +188,7 @@ def radard_thread(sm=None, pm=None, can_sock=None):
if can_sock is None:
can_sock = messaging.sub_sock('can')
if sm is None:
sm = messaging.SubMaster(['modelV2', 'carState'])
sm = messaging.SubMaster(['modelV2', 'carState'], check_average_freq=False) # Can't check average frequency, since radar is slower than carState
if pm is None:
pm = messaging.PubMaster(['radarState', 'liveTracks'])