update safety tests after DBC changes

This commit is contained in:
Adeeb Shihadeh 2020-06-09 16:50:46 -07:00
parent 70e39040b4
commit 9eee6ca556
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ RUN cd /tmp && \
RUN cd /tmp && \
git clone https://github.com/commaai/openpilot.git tmppilot || true && \
cd /tmp/tmppilot && \
git pull && git checkout 44560b5bb74e451767725144c3fa5f1564481a20 && \
git pull && git checkout a777fa851e8a444cadb516fc4e35b641018f0559 && \
git submodule update --init cereal opendbc && \
mkdir /tmp/openpilot && \
cp -pR SConstruct tools/ selfdrive/ common/ cereal/ opendbc/ /tmp/openpilot && \

View File

@ -28,7 +28,7 @@ class TestMazdaSafety(common.PandaSafetyTest):
LKAS_DISABLE_SPEED = 45
def setUp(self):
self.packer = CANPackerPanda("mazda_cx5_gt_2017")
self.packer = CANPackerPanda("mazda_2017")
self.safety = libpandasafety_py.libpandasafety
self.safety.set_safety_hooks(Panda.SAFETY_MAZDA, 0)
self.safety.init_tests()

View File

@ -42,7 +42,7 @@ class TestSubaruSafety(common.PandaSafetyTest):
self.safety.set_rt_torque_last(t)
def _torque_driver_msg(self, torque):
values = {"Steer_Torque_Sensor": torque, "counter": self.cnt_torque_driver % 4}
values = {"Steer_Torque_Sensor": torque, "Counter": self.cnt_torque_driver % 4}
self.__class__.cnt_torque_driver += 1
return self.packer.make_can_msg_panda("Steering_Torque", 0, values)