Skip to content

Commit

Permalink
test_spam_can_buses was missing from Nissan
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Mar 11, 2020
1 parent 0f21b19 commit 99050f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/safety/test_nissan.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
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
Expand Down Expand Up @@ -86,6 +88,9 @@ def _acc_button_cmd(self, buttons):

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
Expand Down

0 comments on commit 99050f4

Please sign in to comment.