45 Commits

Author SHA1 Message Date
infiniteCable2
2c672df49a Merge branch 'master' of https://github.com/sunnypilot/opendbc into sync 2026-02-04 19:22:19 +01:00
Jason Wen
3e8f303b6a Merge branch 'upstream/opendbc/master' into sync-20260203 2026-02-03 23:29:42 -05:00
Shane Smiskol
b5a90e97d0 Fix Subaru steering angle rate (#3095)
what is going on
2026-01-30 20:44:03 -08:00
infiniteCable2
b8c700137a Merge branch 'master' of https://github.com/sunnypilot/opendbc into sync 2026-01-25 11:48:11 +01:00
Jason Wen
0035b6752e Merge branch 'upstream/opendbc/master' into sync-20260111
# Conflicts:
#	.github/workflows/tests.yml
#	SConstruct
#	opendbc/car/docs.py
#	opendbc/car/gm/interface.py
#	opendbc/car/interfaces.py
#	opendbc/car/tesla/teslacan.py
#	opendbc/safety/modes/chrysler.h
#	opendbc/safety/modes/tesla.h
#	opendbc/safety/tests/test.sh
#	opendbc/safety/tests/test_tesla.py
2026-01-19 21:42:56 -05:00
Adeeb Shihadeh
edf19be8ef ty: less ignores (#2994)
* less ignore

* one more

* one more

* lil more
2025-12-28 00:44:48 -08:00
infiniteCable2
01026ab3fa Update __init__.py 2025-11-16 13:55:24 +01:00
infiniteCable2
c836ae08ef Merge branch 'master' of https://github.com/sunnypilot/opendbc 2025-08-15 18:09:07 +02:00
Jason Wen
ca2f3ff68d car: port extension prerequisites (#226) 2025-08-13 21:04:02 -04:00
infiniteCable2
383a8de7d5 fix 2025-08-11 17:09:38 +02:00
infiniteCable2
b2dfbefdee fix 2025-08-11 17:05:54 +02:00
infiniteCable2
42ab8b14e4 adapt to upstream 2025-08-11 16:24:01 +02:00
infiniteCable2
af18e76252 Merge branch 'master' of https://github.com/sunnypilot/opendbc 2025-08-11 16:16:34 +02:00
Jason Wen
1e143668d6 Merge branch 'upstream/opendbc/master' into sync-20250809
# Conflicts:
#	opendbc/car/chrysler/chryslercan.py
#	opendbc/car/hyundai/hyundaican.py
#	opendbc/car/hyundai/hyundaicanfd.py
#	opendbc/safety/tests/libsafety/safety_helpers.py
#	opendbc/safety/tests/safety_replay/replay_drive.py
#	opendbc/safety/tests/test_chrysler.py
#	opendbc/safety/tests/test_hyundai.py
2025-08-10 01:45:49 -04:00
Shane Smiskol
1302e1bb25 ruff: enable preview rules (#2621)
* preview

* fmt

* fix formatting!

* Revert "fix formatting!"

This reverts commit 559d291cfa27c3500e5fa3105ffdea809bdd1b27.

* some of these are good, but can enable in steps

* and

* ruff check --fix

* preview

* format
2025-08-04 15:38:04 -07:00
infiniteCable2
607cca16e9 Merge branch 'master' of https://github.com/sunnypilot/opendbc into master-new 2025-08-03 18:30:40 +02:00
Jason Wen
577e864a10 Merge branch 'upstream/opendbc/master' into sync-20250731
# Conflicts:
#	opendbc/car/body/carstate.py
#	opendbc/car/chrysler/carstate.py
#	opendbc/car/ford/carstate.py
#	opendbc/car/gm/carstate.py
#	opendbc/car/honda/carstate.py
#	opendbc/car/honda/interface.py
#	opendbc/car/hyundai/carstate.py
#	opendbc/car/hyundai/interface.py
#	opendbc/car/interfaces.py
#	opendbc/car/mazda/carstate.py
#	opendbc/car/nissan/carstate.py
#	opendbc/car/rivian/carstate.py
#	opendbc/car/subaru/carstate.py
#	opendbc/car/subaru/interface.py
#	opendbc/car/tesla/carstate.py
#	opendbc/car/toyota/interface.py
#	opendbc/car/volkswagen/carstate.py
#	opendbc/safety/modes/chrysler.h
#	opendbc/safety/modes/ford.h
#	opendbc/safety/modes/honda.h
#	opendbc/safety/modes/hyundai.h
#	opendbc/safety/modes/hyundai_canfd.h
#	opendbc/safety/modes/nissan.h
#	opendbc/safety/modes/subaru.h
#	opendbc/safety/modes/tesla.h
#	opendbc/safety/modes/toyota.h
#	opendbc/safety/tests/mutation.sh
#	opendbc/safety/tests/safety_replay/replay_drive.py
2025-08-01 23:57:03 -04:00
DevTekVE
a517b9973a refactor: move lateral methods from init to lateral.py (#2594)
* Extracting lateral methods to lateral.py

* cleaning

* more cleaning

* more cleaning

* Making sure it remains where it should

* Leave rate_limit where it belongs

* Moving things to `car/controls/`

* Moving rate limit to get a taste of the changes

* clean

* copy verbatim

* clean up

* more

* now we can format

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-07-31 20:49:19 -07:00
Shane Smiskol
d70e2029ac car interfaces: clean up friction (#2512)
* conditional friction inside here is confusing

* do it here
2025-07-21 20:25:05 -07:00
infiniteCable2
fdc0c63317 Update __init__.py 2025-05-19 15:39:40 +02:00
infiniteCable2
5e0c38c4c3 Update __init__.py 2025-05-19 15:39:19 +02:00
infiniteCable2
565aae6fd5 Update __init__.py 2025-05-18 12:41:40 +02:00
infiniteCable2
721fb81ba8 Update __init__.py fix iso limitting 2025-05-13 14:30:30 +02:00
infiniteCable2
9ee1b7c30e Update __init__.py 2025-05-12 19:39:43 +02:00
infiniteCable2
d683b2f16e Update __init__.py 2025-05-12 16:03:12 +02:00
infiniteCable2
eddb82b13c Update __init__.py 2025-05-05 20:28:50 +02:00
infiniteCable2
eac076c338 Update __init__.py 2025-05-05 16:57:24 +02:00
infiniteCable
2a6c1f0a7a Update __init__.py 2025-04-17 18:21:29 +02:00
Jason Wen
605b2bdaea Merge branch 'upstream/opendbc/master' into sync-20250331
# Conflicts:
#	.github/workflows/tests.yml
#	opendbc/safety/safety.h
2025-03-31 21:42:43 -04:00
Shane Smiskol
9c59c5ac4e Rivian: increase low speed torque (#2016)
* seems to be linear under 1 m/s^2 lateral accel and the same across all speeds?

* complex

* or simple

fix

* 450 is way too much, back to OG value

* more fix

* need this for logging

* it mostly starts reducing around 17 m/s, 20 m/s is too much

* adjust

* start safety

* debug

* rev

* move to safety torque limits

* comments

* Update opendbc/safety/safety.h

* clean up

* type

* comment

* explicit flag is better!

* better

* stash some stuff

* update MAX_TORQUE format

* test_steer_safety_check passes (but is slow)

* only test multiple speeds for these cars, all passing

* clean up

* more

* clean up

* these should be speed tested!

* revert that

* revert more

* and more!

* check speed counter

* checksum and qf for speed msg!

* sometimes it is actually 0

* clean up
2025-03-26 15:42:52 -07:00
DevTekVE
e37120452d Merge branch 'master-0efdb71b8f2440ee51a806d057f20a553b849a3a' into master-new
# Conflicts:
#	opendbc/car/hyundai/hyundaicanfd.py
#	opendbc/car/rivian/carcontroller.py
#	opendbc/safety/tests/common.py
#	opendbc/safety/tests/test_chrysler.py
#	opendbc/safety/tests/test_hyundai_canfd.py
2025-03-09 08:41:32 +01:00
Shane Smiskol
e3d641fc7f angle limits: use a struct (#1885)
* struct to prevent forgetting something and make more organized

* use it

* move all over

* clean up

* rm
2025-02-28 21:05:02 -08:00
DevTekVE
67683321a3 Merge branch 'master-ref-20250228' into sync-20250228-2
# Conflicts:
#	opendbc/car/chrysler/carcontroller.py
#	opendbc/car/ford/carstate.py
#	opendbc/car/hyundai/carcontroller.py
#	opendbc/car/hyundai/carstate.py
#	opendbc/car/hyundai/hyundaicanfd.py
#	opendbc/car/hyundai/interface.py
#	opendbc/car/hyundai/values.py
#	opendbc/car/mazda/carcontroller.py
#	opendbc/car/nissan/values.py
#	opendbc/car/subaru/carcontroller.py
2025-02-28 17:40:05 +01:00
Shane Smiskol
fbe0041b6d angle limits: enforce a max angle and inactive angle (#1870)
* do inactive and max angle in function

* do the rest

* formatting

* rm

* wtf
2025-02-27 18:04:23 -08:00
Jason Wen
3cb4711fe0 Merge branch 'upstream/opendbc/master' into sync-20250215
# Conflicts:
#	opendbc/car/car_helpers.py
#	pyproject.toml
2025-02-15 21:20:29 -05:00
Shane Smiskol
4d8cbc5933 ISO-TP: set up logging (#1691)
* move logger

* round 1 removing self.debug

* environ

* the rest

* better to properly import

* Update opendbc/car/carlog.py
2025-02-03 20:53:59 -08:00
Jason Wen
cd086f3e5e Car: Vehicle Selector (#61)
* add json

* empty to test

* add generator

* generated

* add print

* more abstract

* rename

* generated

* add test to ensure list always syncs with the docs

* attempt to fail the test

* fix path

* correct path

* fail test intentionally

* Revert "fail test intentionally"

This reverts commit bf456ba9afc61b2fa2e1a3bda77911c06af66cbe.

* start clean

* dump back

* update name

* new list

* generate extra list

* single list is fine

* more precision search

* set while initializing

* tldr

* generate `car.CarParams.brand` in json

* unused

* generate no car docs platforms

* include all dashcamOnly platforms

* do not include dashcamOnly yet
2025-01-31 23:40:00 -05:00
Sammohana
78b33e877a Got rid of openpilot.common.numpy_fast as per https://github.com/commaai/openpilot/issues/34331 (#1626)
* removed openpilot.common.numpy_fast

* used numpy in place of openpilot.common.numpy_fast

* fixed numpy data type error

* Update opendbc/car/__init__.py

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-01-14 14:55:43 -08:00
Eric Brown
2ecc45c4ed cp panda/python/uds.py opendbc/car/uds.py (#1598)
* `cp panda/python/uds.py opendbc/can/uds.py`

* move to car

* no panda uds import

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-01-13 00:31:11 -08:00
Robbe Derks
38c867912a CAN parser dict (#1470)
* refactor in base classes

* refactor body + chrysler

* refactor the rest

* tiny cleanup

* Bus enum

* lowercase buses

* small cleanups

* no str allowed

* no None allowed

* type hint

* name cleanup

* rm empty line

* never None

* never Str

* this isn't valid

* fix

* = > |=
2024-11-15 22:50:21 +01:00
Shane Smiskol
af19a14bed Ford: compensate pitch for brake actuation bit (#1418)
* compensate for pitch

* one variable
2024-10-24 17:27:36 -07:00
Jason Young
9bf735bb99 docs: CARS.md 2.1 (#1338)
* there is no spoon

* he's starting to believe

* i know crappy derivative kung-fu

* fix broken links

* regen CARS.md with fixed links

* handle dashcam cars

* fix dashcam inline links

* support under-review, move relevant Fords

* garbage collect completed TODO

* collect docs support stuff in docs.py

* whitespace diff reduction

* cleanup CarParams fetching

* tight tight tight

* garbage collect another completed TODO

* propitiate type checker

* template wordsmithing

* regen CARS.md

* prep for custom install state

* cleanup

* cleanup

* whitespace diff reduction

* template wordsmithing

* regen CARS.md

* LOL how did I miss model-years

* more template wordsmithing

* propitiate type checker
2024-10-04 02:06:42 -04:00
Adeeb Shihadeh
8934d44de8 Revert "Car Interfaces: Refactor button state tracking with ButtonTracker (#1278)"
This reverts commit d2448a3d4a.
2024-10-01 16:06:04 -07:00
Jason Wen
d2448a3d4a Car Interfaces: Refactor button state tracking with ButtonTracker (#1278)
* Car Interfaces: Refactor button state tracking with `ButtonTracker`

* type hint

* track multiple buttons
2024-10-01 15:05:27 -07:00
Shane Smiskol
9a53f08080 move selfdrive/car to opendbc (#1049)
* move most of /car

* rename selfdrive.car imports to opendbc.car

* move some car tests

move some car tests

* fix car tests

* fix actions?

* add panda ignore to pytest

* need these ignores from openpilot

* fix tests for outside pip install (openpilot/local)

forgot
2024-08-17 00:38:33 -07:00