Skip to content

Commit

Permalink
run tests with new DBC and new gas/brake messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Oct 1, 2024
1 parent bee8371 commit c9bce9a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/safety/test_toyota.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,25 @@ def test_lta_steer_cmd(self):
pass


class TestToyotaSecOcSafety(TestToyotaSafetyTorque):

def setUp(self):
self.packer = CANPackerPanda("toyota_rav4_prime_generated")
self.safety = libpanda_py.libpanda
self.safety.set_safety_hooks(Panda.SAFETY_TOYOTA, self.EPS_SCALE | Panda.FLAG_TOYOTA_SECOC_CAR)
self.safety.init_tests()

# This platform also has an alternate brake message, but same naming in the DBC, so same packer works

def _user_gas_msg(self, gas):
values = {"GAS_PEDAL_USER": gas}
return self.packer.make_can_msg_panda("GAS_PEDAL", 0, values)

# No LTA message in the DBC
def test_lta_steer_cmd(self):
pass


class TestToyotaStockLongitudinalBase(TestToyotaSafetyBase):

TX_MSGS = TOYOTA_COMMON_TX_MSGS
Expand Down

0 comments on commit c9bce9a

Please sign in to comment.