Skip to content

Commit

Permalink
Dockerfile: opendbc: small fixes and use the latest ref (#2124)
Browse files Browse the repository at this point in the history
* Dockerfile: opendbc: use the latest ref

* use new generated dbc

* fix mypy
  • Loading branch information
sunnyhaibin authored Jan 20, 2025
1 parent 045fc44 commit 9066088
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN pip3 install --break-system-packages --no-cache-dir $PYTHONPATH/panda/[dev]

# TODO: this should be a "pip install" or not even in this repo at all
RUN git config --global --add safe.directory $PYTHONPATH/panda
ENV OPENDBC_REF="b89fe79950121ca93d8a1f0d3fd17df31703be2a"
ENV OPENDBC_REF="7af6f3885dc43be8ecf331df1f0914cf3338de50"
RUN cd /tmp/ && \
git clone --depth 1 https://github.com/commaai/opendbc opendbc_repo && \
cd opendbc_repo && git fetch origin $OPENDBC_REF && git checkout FETCH_HEAD && rm -rf .git/ && \
Expand Down
2 changes: 1 addition & 1 deletion examples/query_fw_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
resp = {}
for uds_data_id in sorted(uds_data_ids):
try:
data = uds_client.read_data_by_identifier(uds_data_id)
data = uds_client.read_data_by_identifier(DATA_IDENTIFIER_TYPE(uds_data_id))
if data:
resp[uds_data_id] = data
except (NegativeResponseError, MessageTimeoutError, InvalidSubAddressError):
Expand Down
2 changes: 1 addition & 1 deletion tests/safety/test_toyota.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class TestToyotaSecOcSafety(TestToyotaStockLongitudinalBase):
FWD_BLACKLISTED_ADDRS = {2: [0x2E4, 0x412, 0x191, 0x131]}

def setUp(self):
self.packer = CANPackerPanda("toyota_rav4_prime_generated")
self.packer = CANPackerPanda("toyota_secoc_pt_generated")
self.safety = libpanda_py.libpanda
self.safety.set_safety_hooks(Panda.SAFETY_TOYOTA, self.EPS_SCALE | Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL | Panda.FLAG_TOYOTA_SECOC)
self.safety.init_tests()
Expand Down

0 comments on commit 9066088

Please sign in to comment.