sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import time
|
||||
|
||||
from opendbc.car.structs import CarParams
|
||||
|
||||
|
||||
def test_safety_nooutput(p):
|
||||
p.set_safety_mode(CarParams.SafetyModel.silent)
|
||||
p.set_can_loopback(True)
|
||||
|
||||
# send a message on bus 0
|
||||
p.can_send(0x1aa, b"message", 0)
|
||||
|
||||
# confirm receive nothing
|
||||
time.sleep(0.05)
|
||||
r = p.can_recv()
|
||||
# bus 192 is messages blocked by TX safety hook on bus 0
|
||||
assert len([x for x in r if x[2] != 192]) == 0
|
||||
assert len([x for x in r if x[2] == 192]) == 1
|
||||
Reference in new issue
Block a user