IQ.Pilot Release Commit @ f82ff4d

This commit is contained in:
IQ.Lvbs CI [bot]
2026-07-21 13:43:46 -05:00
parent 7b20edda67
commit b712a31728
717 changed files with 4347 additions and 3060 deletions

View File

@@ -11,7 +11,7 @@ COPY pyproject.toml __init__.py setup.sh $WORKDIR
RUN mkdir -p $WORKDIR/python/ && touch $WORKDIR/__init__.py
RUN apt-get update && apt-get install -y --no-install-recommends sudo && DEBIAN_FRONTEND=noninteractive $WORKDIR/setup.sh
# second pass for the opendbc moving tag
# second pass for the iqdbc moving tag
ARG CACHEBUST=1
RUN DEBIAN_FRONTEND=noninteractive $WORKDIR/setup.sh

2
panda/Jenkinsfile vendored
View File

@@ -33,7 +33,7 @@ export GIT_COMMIT=${env.GIT_COMMIT}
export PYTHONPATH=${env.TEST_DIR}/../
export PYTHONWARNINGS=error
export LOGLEVEL=debug
ln -sf /data/openpilot/opendbc_repo/opendbc /data/opendbc
ln -sf /data/openpilot/iqdbc_repo/iqdbc /data/iqdbc
# TODO: this is an agnos issue
export PYTEST_ADDOPTS="-p no:asyncio"

View File

@@ -1,5 +1,5 @@
import os
import opendbc
import iqdbc
import subprocess
PREFIX = "arm-none-eabi-"
@@ -87,7 +87,7 @@ def build_project(project_name, project, main, extra_flags):
CFLAGS=flags,
ASFLAGS=flags,
LINKFLAGS=flags,
CPPPATH=[Dir("./"), "./board/stm32f4/inc", "./board/stm32h7/inc", opendbc.INCLUDE_PATH],
CPPPATH=[Dir("./"), "./board/stm32f4/inc", "./board/stm32h7/inc", iqdbc.INCLUDE_PATH],
ASCOM="$AS $ASFLAGS -o $TARGET -c $SOURCES",
tools=["default", "compilation_db"],
)

View File

@@ -7,7 +7,7 @@
#include "board/health.h"
#include "board/body/motor_control.h"
#include "board/drivers/can_common_declarations.h"
#include "opendbc/safety/declarations.h"
#include "iqdbc/safety/declarations.h"
#define BODY_CAN_ADDR_MOTOR_SPEED 0x201U
#define BODY_CAN_MOTOR_SPEED_PERIOD_US 10000U

View File

@@ -9,7 +9,7 @@
#include "board/obj/gitversion.h"
#include "board/body/motor_control.h"
#include "board/body/can.h"
#include "opendbc/safety/safety.h"
#include "iqdbc/safety/safety.h"
#include "board/drivers/can_common.h"
#include "board/drivers/fdcan.h"
#include "board/can_comms.h"

View File

@@ -2,4 +2,4 @@
#define PANDA_CAN_CNT 3U
#include "opendbc/safety/can.h"
#include "iqdbc/safety/can.h"

View File

@@ -1,7 +1,7 @@
// ********************* Includes *********************
#include "board/config.h"
#include "opendbc/safety/safety.h"
#include "iqdbc/safety/safety.h"
#include "board/drivers/led.h"
#include "board/drivers/pwm.h"

View File

@@ -5,7 +5,7 @@ import contextlib
import random
from termcolor import cprint
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda, PandaJungle
NUM_PANDAS_PER_TEST = 1

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import random
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import PandaJungle
def get_test_string():

View File

@@ -10,7 +10,7 @@
#include "board/early_init.h"
#include "board/provision.h"
#include "opendbc/safety/safety.h"
#include "iqdbc/safety/safety.h"
#include "board/health.h"

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env python3
import argparse
from tqdm import tqdm
from opendbc.car.carlog import carlog
from opendbc.car.uds import UdsClient, MessageTimeoutError, NegativeResponseError, InvalidSubAddressError, \
from iqdbc.car.carlog import carlog
from iqdbc.car.uds import UdsClient, MessageTimeoutError, NegativeResponseError, InvalidSubAddressError, \
SESSION_TYPE, DATA_IDENTIFIER_TYPE
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
if __name__ == "__main__":

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env python3
import time
import struct
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
from hexdump import hexdump
from opendbc.car.isotp import isotp_send, isotp_recv
from iqdbc.car.isotp import isotp_send, isotp_recv
# 0x7e0 = Toyota
# 0x18DB33F1 for Honda?

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import binascii
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
def tesla_tester():

View File

@@ -3,7 +3,7 @@ name = "pandacan"
version = "0.0.10"
description = "Code powering the comma.ai panda"
readme = "README.md"
requires-python = ">=3.11,<3.13" # macOS doesn't work with 3.13 due to pycapnp from opendbc
requires-python = ">=3.11,<3.13" # macOS doesn't work with 3.13 due to pycapnp from iqdbc
license = {text = "MIT"}
authors = [{name = "comma.ai"}]
classifiers = [
@@ -13,7 +13,7 @@ classifiers = [
]
dependencies = [
"libusb1",
"opendbc @ git+https://git.konn3kt.com/teal/opendbc.git@master#egg=opendbc",
"iqdbc @ git+https://git.konn3kt.com/teal/iqdbc.git@master#egg=iqdbc",
]
[project.optional-dependencies]

View File

@@ -9,7 +9,7 @@ import binascii
from functools import wraps, partial
from itertools import accumulate
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from .base import BaseHandle
from .constants import FW_PATH, McuType

View File

@@ -4,7 +4,7 @@ import time
import threading
from typing import Any
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
JUNGLE = "JUNGLE" in os.environ

View File

@@ -4,7 +4,7 @@ import time
from collections import defaultdict
import binascii
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
# fake

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python3
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
# This script is intended to be used in conjunction with the echo_loopback_test.py test script from panda jungle.

View File

@@ -6,7 +6,7 @@ import random
import argparse
from itertools import permutations
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
def get_test_string():

View File

@@ -7,7 +7,7 @@ import itertools
import threading
from typing import Any
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
JUNGLE = "JUNGLE" in os.environ

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
import time
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
p = Panda()

View File

@@ -2,7 +2,7 @@
import os
import random
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
def get_test_string():

View File

@@ -2,7 +2,7 @@
import struct
import time
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
if __name__ == "__main__":

View File

@@ -3,7 +3,7 @@ import os
import time
import random
from collections import defaultdict
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda, calculate_checksum, DLC_TO_LEN
from panda import PandaJungle
from panda.tests.hitl.helpers import time_many_sends

View File

@@ -1,7 +1,7 @@
import time
from opendbc.car.hyundai.values import HyundaiSafetyFlags
from opendbc.car.structs import CarParams
from iqdbc.car.hyundai.values import HyundaiSafetyFlags
from iqdbc.car.structs import CarParams
from panda import Panda

View File

@@ -2,7 +2,7 @@ import time
import pytest
from flaky import flaky
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
from panda.tests.hitl.helpers import time_many_sends

View File

@@ -6,7 +6,7 @@ import threading
from flaky import flaky
from collections import defaultdict
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda.tests.hitl.helpers import time_many_sends, get_random_can_messages, clear_can_buffers
@flaky(max_runs=3, min_passes=1)

View File

@@ -1,6 +1,6 @@
import time
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
def test_safety_nooutput(p):

View File

@@ -2,7 +2,7 @@ import time
import pytest
import itertools
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda
# TODO: test relay

View File

@@ -1,4 +1,4 @@
import opendbc
import iqdbc
import platform
CC = 'gcc'
@@ -21,7 +21,7 @@ env = Environment(
'-Wfatal-errors',
'-Wno-pointer-to-int-cast',
],
CPPPATH=[".", "../../", "../../board/", opendbc.INCLUDE_PATH],
CPPPATH=[".", "../../", "../../board/", iqdbc.INCLUDE_PATH],
)
if system == "Darwin":
env.PrependENVPath('PATH', '/opt/homebrew/bin')

View File

@@ -15,7 +15,7 @@ void can_tx_comms_resume_spi(void) { };
#include "faults.h"
#include "libc.h"
#include "boards/board_declarations.h"
#include "opendbc/safety/safety.h"
#include "iqdbc/safety/safety.h"
#include "main_definitions.h"
#include "drivers/can_common.h"

View File

@@ -3,7 +3,7 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PANDA_DIR=$(realpath $DIR/../../)
OPENDBC_ROOT=$(python3 -c "import opendbc; print(opendbc.INCLUDE_PATH)")
OPENDBC_ROOT=$(python3 -c "import iqdbc; print(iqdbc.INCLUDE_PATH)")
GREEN="\e[1;32m"
YELLOW="\e[1;33m"

View File

@@ -2,7 +2,7 @@
import os
import time
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda

View File

@@ -1,7 +1,7 @@
import time
import pytest
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import Panda, PandaJungle
PANDA_SERIAL = "300008001851333037333932"

View File

@@ -2,7 +2,7 @@
import random
import unittest
from opendbc.car.structs import CarParams
from iqdbc.car.structs import CarParams
from panda import DLC_TO_LEN, USBPACKET_MAX_SIZE, pack_can_buffer, unpack_can_buffer
from panda.tests.libpanda import libpanda_py