91 Commits

Author SHA1 Message Date
Jason Wen
807fc0dd9a Merge branch 'upstream/opendbc/master' into sync-20260201
# Conflicts:
#	.github/workflows/tests.yml
#	opendbc/car/honda/interface.py
2026-02-02 22:21:37 -05:00
Nikita Pylypyuk
d56dd7f6a7 Chrysler: correct radar lateral position sign (#3043)
align radar yRel with left-positive convention

Co-authored-by: Daniel Koepping <elkoled@gmail.com>
2026-01-22 11:27:08 -05: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
4aa7ca9722 Add CarInterface.DRIVABLE_GEARS attribute (#2978)
* Add CarInterface.DRIVABLE_GEARS gears attribute

* lil less
2025-12-20 15:18:07 -08:00
Jason Wen
c7780b18e8 Merge branch 'upstream/opendbc/master' into sync-20251114
# Conflicts:
#	SConstruct
#	opendbc/car/tests/routes.py
#	opendbc/car/toyota/carcontroller.py
#	opendbc/car/toyota/carstate.py
#	opendbc/safety/lateral.h
#	opendbc/safety/modes/subaru.h
#	opendbc/safety/modes/subaru_preglobal.h
#	opendbc/safety/modes/toyota.h
#	opendbc/safety/tests/common.py
#	opendbc/safety/tests/libsafety/safety_helpers.h
#	opendbc/safety/tests/libsafety/safety_helpers.py
#	opendbc/safety/tests/misra/main.c
#	opendbc/safety/tests/test_chrysler.py
#	opendbc/safety/tests/test_honda.py
#	opendbc/safety/tests/test_hyundai.py
#	opendbc/safety/tests/test_hyundai_canfd.py
#	opendbc/safety/tests/test_toyota.py
2025-11-14 02:05:19 -05:00
roenthomas
aa4d9d964d Chrysler: values → values_ext for port extension consistency (#360)
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-11-02 18:18:14 -05:00
dparring
acfcff86a3 FCA: update tire stiffness values for RAM_HD (#247)
* docs: Scheduled auto-update CARS.md

* Decouple and rebase tireStiffnessFactor usage in the learner to 1.0.  Necessary for fixing 25389 in OP and eventual dashcam flag removal for Ram HD trucks

* changing pr to set front and rear individually

* ram HD tune

* removing dashcam only flag for Ram HD

* fixing ref

* reverting tirestiffness in carspecs and moving HD values into SP methods

* reverting to stock settings

* refactor the HD steering angle fix into SP ext framework

* duplicate

* Apply suggestion from @sunnyhaibin

* Apply suggestion from @sunnyhaibin

---------

Co-authored-by: dparring <dparring@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-11-01 23:57:46 -04:00
Jason Wen
952a061397 interface: add is_release_sp flag to get_params_sp (#349)
* interface: add `is_release` flag to `get_params_sp`

* split and rename
2025-10-24 15:12:49 -04:00
Jason Wen
0a2315efd1 FCA: update minEnableSpeed and LKAS control logic (#333)
* Partial Revert "FCA: Ram 1500 improvements (#797)"

* Revert "Partial Revert "FCA: Ram 1500 improvements (#797)""

This reverts commit d7add4ebdcb8795c3722edbacd659e1676f5dffb.

* FCA: update minEnableSpeed and LKAS control logic
2025-10-21 14:15:07 -04:00
Jason Young
49676d0f5c Chrysler: Add FW for 2019 Jeep Grand Cherokee (#2837) 2025-10-11 05:37:16 -04:00
Jason Wen
6999183714 FCA: Intelligent Cruise Button Management support (#302)
* init safety

* implement

* not used

* type hints

* fix

* parse buttons

* one more try?

* expose in carstate

* just buttons

* FCA: Parse cruise control buttons

* eh

* Revert "just buttons"

This reverts commit cfb83fa351c570a4d762b46f43361d9118d5e07e.

* one last try

* max of 5 hz

* another fix

* consolidate

* make them all the same

* Revert "make them all the same"

This reverts commit 4f933cb61df28468126f91fe0b7bd2b81e9acf14.

* try something new

* ok too fast

* Revert "ok too fast"

This reverts commit 3d2a5a41a8986cf620f4331891830b3274f300ff.

* Revert "try something new"

This reverts commit 0e16426c4349e8a8df54ada8ad6050a75d203aef.

* new one again

* no longer used
2025-10-05 21:10:45 -04:00
Jason Wen
ca346bd133 FCA: Parse cruise control buttons (#309)
* init safety

* implement

* not used

* type hints

* fix

* parse buttons

* one more try?

* expose in carstate

* just buttons

* FCA: Parse cruise control buttons

* eh
2025-10-04 22:03:35 -04:00
Jason Wen
bf0aba991a Car: consolidate fingerprint helpers extensions (#263)
* Car: Fingerprinting v1 extensions

* move to a single helper
2025-10-02 14:35:44 -04:00
Shane Smiskol
c70bd060c6 Revert "Capnp memoryview (#2793)"
This reverts commit 0c8676f74c.
2025-09-19 17:17:52 -07:00
Shane Smiskol
0c8676f74c Capnp memoryview (#2793)
* rm power

* do this

* start

* unpin

* convert to bytes
2025-09-19 16:43:08 -07:00
Jason Wen
e08f0064d3 FCA: Steer to Zero module support (#200)
* FCA: Steer to Zero module support

* where did this come from lol

* just send it
2025-08-13 11:48:26 -04: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
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
Adeeb Shihadeh
a2067d048f Deprecate carState.gas (#2558)
* Deprecate carState.gas

* lil more
2025-07-25 12:15:49 -07:00
Adeeb Shihadeh
dc99b8e175 revert gas/brake deprecation, need to remove car_specific.py in openpilot first
This reverts commit d0e1a299ef.
2025-07-24 17:51:11 -07:00
Adeeb Shihadeh
d0e1a299ef Revert "Revert "Slimming carState, part 1 (#2504)" (#2513)" (#2551)
* Revert "Revert "Slimming `carState`, part 1 (#2504)" (#2513)"

This reverts commit b1856fd89c.

* lil more
2025-07-24 13:49:24 -07:00
Adeeb Shihadeh
723b8e432a revert RIs for now 2025-07-23 23:19:06 -07:00
Adeeb Shihadeh
848c679a50 Use dynamic CANParser for all brands (#2546)
* first pass

* blinky

* fix hkg

* lil more

* radar interfaces

* add that back
2025-07-23 21:34:49 -07:00
Adeeb Shihadeh
c966a2be7f Move checksum functions to car modules (#2541)
* Move checksum helpers into can modules

* cleanup

* one more
2025-07-23 17:05:09 -07:00
Adeeb Shihadeh
68b76701e9 update_strings -> update 2025-07-23 16:54:27 -07:00
Adeeb Shihadeh
f8d6e46f93 opendbc/can/ little cleanups (#2535)
* it's all opendbc.can

* common is a stupid name

* pedal -> body

* more body

* car specific
2025-07-23 10:13:12 -07:00
karimhadjsalem
fb13ce6c20 Chrysler: Add FW for 2025 Chrysler Pacifica Hybrid (#2515)
* add Chrysler Pacifica Hybrid 2025 entries

curb weight was different so added a new entry;
only had one set of FW versions for each of the respective ECUs

* add 2025 Chrysler Pacifica Hybrid to lateralTurning specs and to limited higher min steering speed lists

* change 2025 Chrysler Pacifica Hybrid to just be additional ECU mappings under 2019 platform

* fixup sorting

---------

Co-authored-by: Jason Young <jyoung8607@gmail.com>
2025-07-22 16:50:23 -07:00
Adeeb Shihadeh
5191332e08 Reapply "Slimming carState, part 6" (#2516) (#2526)
* Reapply "Slimming `carState`, part 6" (#2516)

This reverts commit e1409d5953.

* fix gm

* fix hkg

* fix nissan
2025-07-22 11:10:20 -07:00
Shane Smiskol
e1409d5953 Revert "Slimming carState, part 6" (#2516)
Revert "Slimming `carState`, part 6 (#2514)"

This reverts commit de7d108f44.
2025-07-21 18:39:48 -07:00
Adeeb Shihadeh
de7d108f44 Slimming carState, part 6 (#2514)
* rm wheel speeds

* this is still such a mess...

* ugh need for the body
2025-07-21 16:40:58 -07:00
Shane Smiskol
b1856fd89c Revert "Slimming carState, part 1 (#2504)" (#2513)
This reverts commit cdf3e4a199.
2025-07-21 16:04:42 -07:00
Adeeb Shihadeh
cdf3e4a199 Slimming carState, part 1 (#2504)
* start with gas and brake

* cleanup

* lil more

* lil more

* last one?
2025-07-21 13:38:56 -07:00
Jason Wen
09c746019e Merge branch 'upstream/opendbc/master' into sync-20250710 2025-07-19 00:21:59 -04:00
Harald Schäfer
3d341d0b7f Chrysler: even crappy steering angle sensors are better (#2446)
* even crappy steering angle sensors are better

* need to set something
2025-07-08 13:29:44 -07:00
Shane Smiskol
725fe0e87f [bot] Fingerprints: add missing FW versions from new users (#2424)
Export fingerprints
2025-06-30 15:55:48 -07:00
Shane Smiskol
334d06f45b fingerprints: add auto-formatted note (#2416)
* add note

* run

* run

* hack
2025-06-27 14:45:40 -07:00
DevTekVE
4a8840ddaa Merge remote-tracking branch 'comma/master' into sync-20250627
# Conflicts:
#	opendbc/safety/tests/libsafety/SConscript
2025-06-27 17:15:09 +02:00
Shane Smiskol
d8abecb8b2 [bot] Fingerprints: add missing FW versions from new users (#2390)
Export fingerprints
2025-06-12 00:42:56 -07:00
Jason Wen
a82c8d83cd Car: CarStateSP (#178)
* Car: `CarStateSP`

* just skeleton for now
2025-06-01 21:49:35 -04:00
Jason Wen
631b053fdf Merge branch 'upstream/opendbc/master' into sync-20250529-new
# Conflicts:
#	.github/workflows/tests.yml
#	opendbc/car/car_helpers.py
#	opendbc/car/docs.py
#	opendbc/car/tests/test_car_interfaces.py
#	opendbc/safety/modes/chrysler.h
#	opendbc/safety/modes/ford.h
#	opendbc/safety/modes/hyundai.h
#	opendbc/safety/modes/nissan.h
#	opendbc/safety/modes/subaru.h
#	opendbc/safety/modes/tesla.h
#	opendbc/safety/modes/toyota.h
2025-05-31 14:06:44 -04:00
Shane Smiskol
d33a033a7f car interfaces: pass in if release build (#2318)
* dashcam for release

* fixes

* get car

* fixes
2025-05-28 17:38:19 -07:00
DevTekVE
5026fda39e Merge branch commaai/opendbc:master into branch sunnypilot/opendbc:master-new
# Conflicts:
#	.github/workflows/tests.yml
#	.pre-commit-config.yaml
#	opendbc/car/hyundai/carstate.py
#	opendbc/car/tesla/carcontroller.py
#	opendbc/car/tesla/teslacan.py
#	opendbc/safety/modes/hyundai_common.h
#	opendbc/safety/safety.h
2025-05-27 14:20:27 -04:00
dparring
8c09cb6aac FCA: Remove Ram HD from dashcamOnly (#158)
* take HDs out of dashcam only mode

* Update car_list.json with Ram HD

* fixing spacing?

* fixing spacing?

* moving dashcam code to SP abstraction (#5)
2025-05-22 13:20:48 -04:00
Adeeb Shihadeh
760874ae0c video_link -> video 2025-05-14 10:28:08 -07:00
dparring
ac089b6314 FCA: Ram 1500 improvements (#115)
* FCA: ram 1500 improvements

* carcontroller in its own module

* split fw versions into its own module

* into its own at interface

* fixes

* integrating PR feedback

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-05-01 23:44:44 -04:00
Jason Wen
d265070bd5 Merge branch 'upstream/opendbc/master' into sync-20250422
# Conflicts:
#	opendbc/car/car_helpers.py
#	opendbc/car/tests/test_car_interfaces.py
#	opendbc/safety/safety.h
#	opendbc/safety/safety/safety_chrysler.h
#	opendbc/safety/safety/safety_toyota.h
#	opendbc/safety/tests/test_chrysler.py
2025-04-22 14:36:48 -04:00
Shane Smiskol
3b33a71a2b Revert "Revert "Rename experimental long"" (#2128)
Revert "Revert "Rename experimental long" (#2125)"

This reverts commit d65fa99e2a.
2025-04-14 16:54:39 -07:00
Shane Smiskol
d65fa99e2a Revert "Rename experimental long" (#2125)
Revert "Rename experimental long (#2114)"

This reverts commit 6b9106b122.
2025-04-14 10:55:29 -07:00