test_spam_can_buses was missing from Nissan

master
Riccardo Biasini 2020-03-10 17:42:07 -07:00
parent 0f21b19bb3
commit 99050f4129
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@ ANGLE_DELTA_BP = [0., 5., 15.]
ANGLE_DELTA_V = [5., .8, .15] # windup limit
ANGLE_DELTA_VU = [5., 3.5, 0.4] # unwind limit
TX_MSGS = [[0x169, 0], [0x20b, 2]]
def twos_comp(val, bits):
if val >= 0:
return val
@ -86,6 +88,9 @@ class TestNissanSafety(unittest.TestCase):
return to_send
def test_spam_can_buses(self):
StdTest.test_spam_can_buses(self, TX_MSGS)
def test_angle_cmd_when_enabled(self):
# when controls are allowed, angle cmd rate limit is enforced