Move safety constants to opendbc (#2145)

* move to opendbc

* all passing

* do the rest

* fix

* and another

* order

* and update ref to master
This commit is contained in:
Shane Smiskol
2025-02-11 22:14:44 -06:00
committed by GitHub
parent 72a99e9e9d
commit d3508ff042
48 changed files with 182 additions and 189 deletions

View File

@@ -2,7 +2,8 @@
import random
import unittest
from panda import Panda, DLC_TO_LEN, USBPACKET_MAX_SIZE, pack_can_buffer, unpack_can_buffer
from opendbc.safety import Safety
from panda import DLC_TO_LEN, USBPACKET_MAX_SIZE, pack_can_buffer, unpack_can_buffer
from panda.tests.libpanda import libpanda_py
lpp = libpanda_py.libpanda
@@ -101,7 +102,7 @@ class TestPandaComms(unittest.TestCase):
def test_can_send_usb(self):
lpp.set_safety_hooks(Panda.SAFETY_ALLOUTPUT, 0)
lpp.set_safety_hooks(Safety.SAFETY_ALLOUTPUT, 0)
for bus in range(3):
with self.subTest(bus=bus):