Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Oct 1, 2024
1 parent 08c95bf commit b4ee17e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/safety/test_honda.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,17 @@ def setUp(self):
self.safety.set_safety_hooks(Panda.SAFETY_HONDA_BOSCH, 0)
self.safety.init_tests()

def _bosh_supplemental_cmd_msg(self):
values = {"SET_ME_X04": 0x04, "SET_ME_X80": 0x80, "SET_ME_X10": 0x10}
return self.packer.make_can_msg_panda("BOSCH_SUPPLEMENTAL_1", 0, values)

def test_supplemental_control_check(self):
msg = self._bosh_supplemental_cmd_msg()
self.assertTrue(self._tx(msg))

msg[0].data[0] = 42;
self.assertFalse(self._tx(msg))


class TestHondaBoschAltBrakeSafety(HondaPcmEnableBase, TestHondaBoschAltBrakeSafetyBase):
"""
Expand Down

0 comments on commit b4ee17e

Please sign in to comment.