Commit Graph

1955 Commits

Author SHA1 Message Date
Jason Wen
2faae4b627 Revert "MADS: Steering Mode on Brake Pedal Press (#92)" (#114)
This reverts commit a26ea1e3ee.
2025-04-04 22:27:54 -04:00
Jason Wen
71d422f8fe Sync: commaai/opendbc:master into sunnypilot/opendbc:master-new 2025-04-03 21:48:24 -04: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
Lukas
2c5600f88f Tesla: fingerprint Tesla Model Y 2024 (HW4) (#2066)
Tesla Model Y 2024 HW 4
2025-03-30 21:40:43 -07:00
DevTekVE
8864b9b200 CI: Set GIT_REF as an environment variable for safety mutation tests (#1956)
* Set GIT_REF as an environment variable for mutation tests

This change moves the GIT_REF definition into the environment section, simplifying its use in the workflow steps. It ensures consistency and clarity by separating variable definition from execution commands.

* Update .github/workflows/tests.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-30 14:51:23 -07:00
Alexandre Nobuharu Sato
c1a9b7489d Toyota: 2023 Toyota Yaris (JDM) (#1668)
* init

* fix

* add test route

* fix E501 Line too long (167 > 160)

* use the new generic SecOC carPlatform

* update test route

* change to torque tune

* test route using torque control

* no break line

* update from a better test 0b54d0594d924cd9/000000aa--889e1e396a

* better

* new tune from 0b54d0594d924cd9/00000007--2b30cce35b

* Update test route

---------

Co-authored-by: Jason Young <jyoung8607@gmail.com>
2025-03-29 13:30:25 -04:00
Maxime Desroches
a60db8a30a use Github Actions macOS runners (#2062)
switch
2025-03-28 21:18:08 -07:00
Shane Smiskol
2ed580d9f5 Tesla: fix convenience blinker (#2057)
fix convenience blinker
2025-03-27 01:35:55 -07:00
Shane Smiskol
b24c7cf237 Tesla: block Autosteer (#2055)
* fix DBC

* check it

* rev
2025-03-27 01:29:32 -07:00
Shane Smiskol
f6431275af Tesla: document scroll wheel signal 2025-03-27 01:26:20 -07:00
Shane Smiskol
161506fc42 Tesla: new Autopilot and other vehicle signals (#2056)
* new reversed signals

* clean up DAS_Settings

* clean up UI_warning

* UI_warning clean up

* same

* more clear
2025-03-27 01:24:56 -07:00
adeebshihadeh
e07aee97a8 docs: Scheduled auto-update CARS.md 2025-03-27 08:07:54 +00:00
Gavin Canon-Phratsachack
45d90439de Nissan: Fix typo in _nissan_common.dbc (#2054)
Fix typo "DISANCE" -> "DISTANCE" in _nissan_common.dbc
2025-03-26 23:27:56 -07:00
vanillagorillaa
a348b6ba76 Honda: update compatibility for Passport (#2051)
bump
2025-03-26 18:17:48 -07: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
adeebshihadeh
aa1d1ecb61 docs: Scheduled auto-update CARS.md 2025-03-26 08:08:08 +00:00
Shane Smiskol
37a1734d14 Rivian safety: check 2nd speed source (#2049)
* add checks to 2nd speed

* check 2nd source

* test 2 speeds

* not sure if raw

* fine
2025-03-25 22:45:49 -07:00
Shane Smiskol
5cdc41ae59 Rivian: add all validity checks for speed message (#2048)
* check everything for speed

* most common

* more scoped name

* rm

* forgot test

* misra
2025-03-25 21:40:18 -07:00
Shane Smiskol
af36d8316e safety: support dynamic max torque from speed (#2047)
* do it

* prepare Rivian since we need coverage

* not yet

* best

* test speed w/ these two

* no todo

* better
2025-03-25 20:34:43 -07:00
Cameron Clough
e26d046edc docs: update comma power to v3 (#2039) 2025-03-26 02:56:07 +00:00
Shane Smiskol
1cc799801f Tesla: steer at standstill (#2046)
tesla can
2025-03-25 19:23:03 -07:00
Shane Smiskol
8e8f366d6c GM: check camera object data for radarUnavailable (#2033)
* gm: check camera object data

* Update opendbc/car/gm/interface.py
2025-03-25 18:48:47 -07:00
royjr
1a40e27cfd HKG: Add FW for 2024 Kia Niro EV (#2018) 2025-03-25 17:07:52 -07:00
Adeeb Shihadeh
1f65eac3f2 Keep steering active at standstill (#2042) 2025-03-25 12:42:39 -07:00
Lukas
b0fe1cbcff Tesla: add Model 3 HW3 fingerprint (#1993)
add HW3 Model 3 fingerprint
2025-03-25 15:37:21 -04:00
Ryan Matthews
d3f3ddff6f Subaru: Add FW for 2022 Subaru Outback Touring XL (#2010)
subaru: FW versions for Subaru Outback 2022 Touring XL
2025-03-25 15:36:18 -04:00
Shadyninja94
ddeb9dabb9 Subaru: Add FW for 2022 Subaru Legacy (#1995)
* Support Subaru Legacy 2022

* remove spurious camera FW entry

this camera returns multiple FW versions, we already have the one
that passes format tests.

---------

Co-authored-by: Jason Young <jyoung8607@gmail.com>
2025-03-25 15:33:34 -04:00
amrmostafa8
7ed678ed34 HKG: Add FW for 2022 Hyundai Tucson (#2028)
Update fingerprints.py
2025-03-25 15:24:44 -04:00
royjr
986b41ff38 HKG: Add FW for 2018 Hyundai Ioniq Hybrid (#2022)
Update fingerprints.py
2025-03-25 15:21:55 -04:00
Jason Young
918b6de719 VW MQB: Rename DBC (#2041) 2025-03-25 15:06:52 -04:00
Elias Kotlyar
9ab966a640 VW PQ: Rename DBC (#2019)
* Corrected DBC name of PQ35 DBC

* Corrected DBC name of PQ35 DBC

* rename to vw_pq

---------

Co-authored-by: Jason Young <jyoung8607@gmail.com>
2025-03-25 14:59:56 -04:00
Cameron Clough
58172c35ff docs: add long OBD-C cable length (#2038) 2025-03-25 14:56:08 +00:00
Cameron Clough
e083f9cd3a docs: add comma power to Rivian and Tesla harness (#2037)
Matches the [website][1]

[1]: https://comma.ai/shop/car-harness
2025-03-25 13:48:16 +00:00
adeebshihadeh
f23270463c docs: Scheduled auto-update CARS.md 2025-03-25 08:07:54 +00:00
Shane Smiskol
8fa7a97cb7 GM: fix ASCMGasRegenCmd scale and units (#951)
* update DBC

* convert

* pretty close!

* safety

* don't lose resolution

* fix

* fast test

* still int

* for now
2025-03-24 20:25:13 -07:00
Shane Smiskol
64a9a23cdf Toyota: bump RAV4 ICE to 2025 (#2036)
Update values.py
2025-03-24 19:05:17 -07:00
Cameron Clough
5e5f1f3951 docs: add comma power for Nissan (#2034)
The [Nissan A][1] and B harnesses do not have 12VIN, only IGN, so
presumably they need a comma power too. It [looks like][2] they are
already shipped with them.

[1] https://github.com/commaai/hardware/blob/master/harness/v3/Nissan_A_Harness.pdf
[2] https://discord.com/channels/469524606043160576/580827831307599872/1265508977626845279
2025-03-25 00:36:51 +00:00
Shane Smiskol
b67460df5e GM: fix some ACC signals (#2035)
* fix some acc signals

* verification

* Revert "verification"

This reverts commit f73e45d894d6b0674d7019abd591ea4bfe5b12e1.
2025-03-24 17:13:14 -07:00
Shane Smiskol
164c835230 Rivian: another EPS FW query (#2032)
one more
2025-03-24 14:49:26 -07:00
Cameron Clough
841fcf91f5 docs: remove comma power from J533 harness (#2030)
The J533 harness has constant power from the gateway.
2025-03-24 14:26:53 -07:00
Shane Smiskol
5a6f6cf77f Rivian: add hardware part number query (#2031)
* add ECU hardware part number

* fix test
2025-03-24 12:03:09 -07:00
Cameron Clough
950d65fc87 docs: add USB-C coupler to OBD-II harness (#2029) 2025-03-24 18:44:53 +00:00
Shane Smiskol
30da907846 safety tests: remove steer bit rt limit param (#2025)
* remove another rt param we can just calculate

* tests

* only tests

* Update opendbc/safety/tests/common.py
2025-03-21 20:16:13 -07:00
Shane Smiskol
676b9c12f7 safety: remove rt interval param (#2024)
* rm

* whops

* back

* misra

* Update opendbc/safety/safety_declarations.h
2025-03-21 19:40:45 -07:00
Shane Smiskol
77c5e598c0 steer -> torque 2025-03-21 19:08:29 -07:00
Shane Smiskol
d1adc800c7 Rivian: clip accel 2025-03-21 17:11:45 -07:00
Shane Smiskol
91fa5ba77a Rivian safety: parse speed (#2023)
* parse speed

* split out vehicle speed test

* order

* lol wrong message name
2025-03-21 17:04:20 -07:00
Jason Wen
c10bc5bd85 Controls: Neural Network Lateral Control (NNLC) (#85)
* in structs

* new structs
2025-03-21 01:23:28 -04:00
Shane Smiskol
0235e0e5d5 Rivian: set long safety flag (#2021)
* Update interface.py

* Update interface.py
2025-03-20 19:21:18 -07:00
Shane Smiskol
5638a35c8b Rivian: adjust lateral actuator delay (#2020)
* if it's linear (which it mostly is), then meas is the same as factor

* found from looking at routes + empirically with lagd

* update with more knowledge

* real

* not now
2025-03-20 17:22:11 -07:00