Commit Graph

197 Commits

Author SHA1 Message Date
Justin Newberry 3d8c78d6b3 format_fingerprints: automatically sort fw fingerprints (#30819)
* Auto sort fingerprints

* add comment
2023-12-20 11:54:31 -08:00
Justin Newberry 3713e4d5ea add script to automatically format fingerprints file (#30792)
* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-20 11:18:29 -08:00
Shane Smiskol adb04b5dc5 fingerprints: fix formatting (#30814)
formatting
2023-12-19 23:47:34 -08:00
Justin Newberry 28eed156e0 Move all fingerprints to fingerprints.py (#30790)
* move fingerpints

* fix circular imports

* fix circular imports

* fix auto fingerprint

* fix those tests

* and controlsd

* add labeler rule

* no defaultdict
2023-12-18 14:04:27 -08:00
Vincent Wright 0b41d1c6e8 Chrysler: add Ram HD 2500 2024 FW versions (#30505)
* New Ram HD firmwares. Dongle ID is 0f88f104416b674a.

* docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-28 14:17:20 -08:00
Jason Young 2f5c0bd016 JEEP_CHEROKEE -> JEEP_GRAND_CHEROKEE (#30539) 2023-11-27 18:19:03 -08:00
Shane Smiskol 3707bbadef Ram 1500: fix temp steering fault from incorrect steer speed (#30280)
starts with 68
2023-10-18 04:47:21 -07:00
Justin Newberry 6ae465e4af Use StrEnum for car classes (#30114)
* str enum

* import sort

* fix car helpers

* fix that

* fix static analysis
2023-09-30 17:15:34 -07:00
Jason Wen 7fbb7254fa Carcontroller: consolidate can sends method imports (#29695)
* Carcontroller: consolidate can sends method imports

* fix

* ruff
2023-08-29 10:51:50 -07:00
Adeeb Shihadeh a9626f95b6 add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Shane Smiskol 1a08c2986e Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)" (#29474)
* Revert "static analysis fixes"

This reverts commit a1e85f3661.

* Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)"

This reverts commit 460f5c8e0b.

* update refs
2023-08-18 22:56:43 -07:00
Jason Young f76ffbdbbc interfaces: add common STD_CARGO_KG to mass (#29416)
* cleanup std_cargo_kg

* fix Sonata mass

* remove snowflake construct

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 21:06:07 -07:00
Kacper Rączy 460f5c8e0b radard: tie radard frequency to modelV2 vol. 2 (#29240)
* radard: tie radard frequency to modelV2

Accumulate parsed messages until state is updated (toyota)

Same for honda

Rename rr to something more descriptive

* Change _update method name, since signature has changed

* Update ref commit

* Some renames

* Check for number of cans
2023-08-11 18:07:06 -07:00
Justin Newberry e4ead4f183 Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
2023-08-11 16:13:51 -07:00
Shane Smiskol cbfcc40571 Car interfaces: remove hard-coded signal definitions (#27773)
* What if: no signals! 🙅🤌🎆

* do hyundai

* honda!

* do gm

* and vw! (sorry comments)

* do those

* -500

* little more

* fix subie

* change back

* bumpopendbc

* oof lol

* messages

* some clean up

* here too

* clean up honda radar_interface.py

fix

rm

* bump opendbc to master

* add todo

* rename checks in tesla/radar_interface

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-10 20:30:35 -07:00
Justin Newberry 7fdd9fc37c CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
2023-08-09 13:26:54 -07:00
Justin Newberry cf64b27168 Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
2023-08-08 17:13:35 -07:00
Kacper Rączy 1774b4fc61 Revert "radard: tie radard frequency to modelV2 (#29063)" (#29243)
This reverts commit 255f5c13f2.
2023-08-04 20:25:40 -07:00
Shane Smiskol fffc4ae446 Chrysler: add new diagnostic address for Jeep Grand Cherokee 2016-18 (#29235)
not a standard diag address, or anything we query. only 2 messages

900dfa83b4addfe6|2023-07-31--08-33-51
2023-08-04 14:29:00 -07:00
Kacper Rączy 255f5c13f2 radard: tie radard frequency to modelV2 (#29063) 2023-08-03 22:10:21 -07:00
Vincent Wright f0b65d3e92 Added new 2023 Ram 1500 FW (#28758)
* Added new 2023 Ram 1500

dongle id: 960a6270ac410199

* duplicate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-30 12:57:12 -07:00
Maxime Desroches e85acfa365 car: use default_factory for mutable fields in dataclasses (#28669)
* call me

* copy
2023-06-27 16:48:43 -07:00
Shane Smiskol d42231b51a Chrysler FPv2: rename Ecu.hcp to Ecu.hybrid (#28629)
rename hcp to hybrid
2023-06-22 01:27:15 -07:00
Erich Moraga 9444df4c80 Add several missing RAM_1500 firmwares (#28515)
`ProjectZ3d#8762` 2023 RAM 1500  DongleID|route 4e0a5220533d9a86|2023-06-11--19-45-36
2023-06-12 15:18:35 -07:00
Vincent Wright 0d51a64bf2 Added additional Firmware for Ram 1500 (#28392)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 15:58:46 -07:00
Vincent Wright ffa10d784a More missing FW for the Ram 1500s (#28397)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 15:57:41 -07:00
Vincent Wright e8ccbd22dd Ram 3500 Firmware (#28411)
* Ram 3500 Firmware

Dongle ID: d9855ccd97606ca8

* fix sorting

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-05 14:04:30 -07:00
Cameron Clough a6a9b65121 Chrysler: fix FW sorting 2023-06-05 13:45:03 -07:00
Shane Smiskol 024abe6455 car docs: document parts of parts (#28292)
* more stuff

* even more

* all parts func

* start to use it

* include self in parts

* use car_parts_new

* not used

* more usages

* remove get_parts

* remove more commented stuff

* remove iter

* clean up some more stuff

* more

more

* ford

* optional

optional

* nissan

* use new classes

* fix tests

* fix

* order

* no more required

* connector

* CARS.md

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-05-31 21:30:50 -07:00
Maxime Desroches 9f5f8b603c car docs: list all needed hardware (#28212)
* generic car parts

* better carparts

* add part type

* more tests

* multiple enums

* unit tests

* just check isinstance

* better name

* remove _connector suffix

* remove those hyundai lines

* remove default arg

* Revert "remove default arg"

This reverts commit 139650a3b6b94358c3b9b12bb5fbe0a326d7abad.

* cleaner code structure

* use fingerprint

* review

* abstrac data class + common

* no more dataclass

* conflict

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-22 10:17:33 -07:00
Maxime Desroches 70677fe5fc add harness kit content to the doc (#28139)
* add harness kit content to the doc

* parts as enum

* nissan

* merge column

* rename column

* scaling

* scaling again

* 500px

* align text

* more px

* add style

* more width

* more

* more

* smaller text

* make all text smaller

* prev width

* default list

* remove hidden a ref

* try to remove again

* revert

* replace harness with harness_kit

* try fix

* cleaner

* center everything

* make pylint happy

* allow more than 1 of each parts

* use copy module

* review

* testing spacing

* revert

* bigger text

* formating

* split harness col lines

* remove print

* resolve

* rename to view

* keep formating in template

* simplify

* add unit test

* more generic way

* better

* harness connector only

* comment

* review

* put back harness parts

* missing dash

* too much space

* don't reload when clicking

* shorter comment

* only last line

* generate

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-15 15:33:54 -07:00
alkuwari007 b28221d346 FCA: Ram 1500 Rebel 2022 FW versions (#28155)
* Ram 1500 rebel 2022 ECU version update

* rm line

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-15 14:11:07 -07:00
Aaron Fields fd54a1e351 Chrysler: Pacifica Hybrid 2023 support (#28098)
* Adding 2023 Chrysler Pacifica Hybrid fingerprint.

* Update docs.
2023-05-04 14:42:46 -07:00
Shane Smiskol 5aebdb0ad0 Car docs: pass docs flag to car interfaces (#27311)
* docs

* docs

* docs

* docs

* use docs in gm
2023-04-18 12:22:22 -07:00
Shane Smiskol 660b9e9718 Chrysler: add FW versions for 2019 Jeep Grand Cherokee (#27649)
add FW versions for Jeep 2019
2023-03-21 19:16:05 -07:00
realfast aa4286153a Ram: FW version dump (#27083)
* Add extra firmwares and sort for rams

* Added another ECU

* Update selfdrive/car/chrysler/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Apply suggestions from code review

* sort

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 22:54:55 -07:00
Shane Smiskol 4a844078cd Chrysler: add FW for 2019 Ram 3500 (#27636)
* Add 2019 Ram 3500

* wrong ones

* missing EPS
2023-03-20 21:39:06 -07:00
Shane Smiskol aa0421ffd7 Chrysler: add FW for 2023 Ram 1500 (#27634)
add FW for 2023 Ram 1500
2023-03-20 21:20:35 -07:00
Shane Smiskol 4692cf7d1c Chrysler Pacifica 2018: add missing CAN fp (#27576)
new pacifica FPs
2023-03-13 17:07:42 -07:00
Miniz199922 437ca99fcd Chrysler: Add missing FP for 2020 Jeep Grand Cherokee (#27464)
Need to add fingerprint 1538: 8 for my 2020 jeep grand cherokee. Tested and working
2023-03-01 16:56:01 -08:00
Shane Smiskol 581fd62d26 steer limits: rename common dist to meas function (#27453)
* rename function

* make a wrapper function (ford uses dynamic up/down limits

* make two functions consistent

* make torque function convert to int
2023-02-26 17:32:52 -08:00
Shane Smiskol 3c66106539 Chrysler Pacifica Hybrid 2017: add missing CAN FP (#27408)
add missing 840: 8
2023-02-20 18:02:52 -08:00
Adeeb Shihadeh dad948983a chyrsler: add comment about radar parsing 2023-02-17 15:04:21 -08:00
Adeeb Shihadeh e3de6b8834 Chrysler: revert torque tuning (#27327)
* Chrysler: revert torque tuning

* update refs

* update refs + route
2023-02-13 16:15:59 -08:00
Miniz199922 e219da29b2 Chrysler: add missing 2020 Jeep SRT address (#27312)
* 2020 Jeep srt fingerprint

Please update to include my 2020 Jeep srt

* Update selfdrive/car/chrysler/values.py

* Revert "Update selfdrive/car/chrysler/values.py"

This reverts commit 83fc38acbf7e7b257713a0a85096d7d34a6e0c90.

* Update selfdrive/car/chrysler/values.py

* rm new fp

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-12 18:55:31 -08:00
Adeeb Shihadeh b1f84f9400 Chrysler: setup panda safety flag for old tuning's steer limits 2023-02-10 22:39:52 -08:00
Shane Smiskol c05aa0e871 Chrysler: log temporary LKAS faults (#27303)
* Log temp lkas faults for non-ram

* bump to master

* add to signals

* whoops

* ... come onnnnn
2023-02-10 16:32:21 -08:00
Shane Smiskol 8f5057ff2d GM: enforce steering command message timing (#27250)
* draft

* bump opendbc

* still draft

* that's not right

* superset of the changes, 33hz

* cleanup

* this should work

* remove line

* pass it in again

* actually no need to check updated now

* now_nanos

* consistent name

* fix replay

* one line isn't that bad

switch

switch

* fix CarController tests

* Update ref_commit
2023-02-09 15:37:39 -08:00
Shane Smiskol b2d9a24d99 Chrysler: remove Pacifica 2018 ICE from tuning blacklist (#27272)
remove Pacifica 2018 ICE from blacklist
2023-02-09 11:43:34 -08:00
Vivek Aithal d74470252d Chrysler: torque tuning + increased steer rate (#26934)
* increase chrysler steer rate

* use torque control

* update offline values for chrysler, jeep

* bump panda

* add blacklist

* add lag buffer to the torque vals

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-08 19:18:36 -08:00