IQ.Pilot Release Commit @ f82ff4d
This commit is contained in:
@@ -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
2
panda/Jenkinsfile
vendored
@@ -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"
|
||||
|
||||
@@ -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"],
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
#define PANDA_CAN_CNT 3U
|
||||
|
||||
#include "opendbc/safety/can.h"
|
||||
#include "iqdbc/safety/can.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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__":
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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__":
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import time
|
||||
|
||||
from opendbc.car.structs import CarParams
|
||||
from iqdbc.car.structs import CarParams
|
||||
|
||||
|
||||
def test_safety_nooutput(p):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import os
|
||||
import time
|
||||
|
||||
from opendbc.car.structs import CarParams
|
||||
from iqdbc.car.structs import CarParams
|
||||
from panda import Panda
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user