Commit Graph

216 Commits

Author SHA1 Message Date
Shane Smiskol 38cea1c0f1 Ram 1500: fix temp steering fault from incorrect steer speed (#30280)
starts with 68
old-commit-hash: 3707bbadef13997a15500f8c77fad9e625fd3e6f
2023-10-18 04:47:21 -07:00
Justin Newberry 58936aa0cb Use StrEnum for car classes (#30114)
* str enum

* import sort

* fix car helpers

* fix that

* fix static analysis
old-commit-hash: 6ae465e4af76e21c6a31c541f37555f6bd0727fc
2023-09-30 17:15:34 -07:00
Jason Wen f837b5b40f Carcontroller: consolidate can sends method imports (#29695)
* Carcontroller: consolidate can sends method imports

* fix

* ruff
old-commit-hash: 7fbb7254fa13e0f219a1d8cd2d32c71388e93eb0
2023-08-29 10:51:50 -07:00
Adeeb Shihadeh 16ec56398c 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
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Shane Smiskol 1a2818d775 Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)" (#29474)
* Revert "static analysis fixes"

This reverts commit 2271d0adf9a02aee1359717c47cb6280893a6b9b.

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

This reverts commit 6757e90415766e84ad1b6c921a2edb29ceb3bbbe.

* update refs
old-commit-hash: 1a08c2986e5600dd4e84bfeaed26c74e679085de
2023-08-18 22:56:43 -07:00
Jason Young ac83f87b36 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>
old-commit-hash: f76ffbdbbcef50ba201edc0349f777e4e372b515
2023-08-17 21:06:07 -07:00
Kacper Rączy 4017b1707c 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
old-commit-hash: 460f5c8e0b2fd2c420e211b09b70d1d79834a929
2023-08-11 18:07:06 -07:00
Justin Newberry f33b4de80b Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f1830618f5f61978491930cb0b8d36ab26
2023-08-11 16:13:51 -07:00
Shane Smiskol 151b707901 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>
old-commit-hash: cbfcc405715ae4fa45b3beea03dd82ba925495c4
2023-08-10 20:30:35 -07:00
Justin Newberry 3ee0786de3 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
old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
2023-08-09 13:26:54 -07:00
Justin Newberry 7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168614f851087adab2d7f766425922f64
2023-08-08 17:13:35 -07:00
Kacper Rączy c92e7265a6 Revert "radard: tie radard frequency to modelV2 (#29063)" (#29243)
This reverts commit 4b221cb4fd271664ab7d39c5cfefb4225ca07c2a.
old-commit-hash: 1774b4fc61c8f92fae16545a68854238660737e6
2023-08-04 20:25:40 -07:00
Shane Smiskol 8b08ba1166 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
old-commit-hash: fffc4ae446a8e4a9cbbeb04c1eea0b4a39f72183
2023-08-04 14:29:00 -07:00
Kacper Rączy 79fa322d4a radard: tie radard frequency to modelV2 (#29063)
old-commit-hash: 255f5c13f2d8c6796fd960b248856f11a3c1b05a
2023-08-03 22:10:21 -07:00
Vincent Wright f5ae680a5b Added new 2023 Ram 1500 FW (#28758)
* Added new 2023 Ram 1500

dongle id: 960a6270ac410199

* duplicate

---------

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

* copy
old-commit-hash: e85acfa365dea5fc4b004664ef2df120d05d0022
2023-06-27 16:48:43 -07:00
Shane Smiskol 703550e855 Chrysler FPv2: rename Ecu.hcp to Ecu.hybrid (#28629)
rename hcp to hybrid
old-commit-hash: d42231b51ab80143289241729b1ae03c046075a9
2023-06-22 01:27:15 -07:00
Erich Moraga ace8d7433b Add several missing RAM_1500 firmwares (#28515)
`ProjectZ3d#8762` 2023 RAM 1500  DongleID|route 4e0a5220533d9a86|2023-06-11--19-45-36
old-commit-hash: 9444df4c80f553c5eeac1ceb8154cfb42dcaf2b8
2023-06-12 15:18:35 -07:00
Vincent Wright a197a2ab7f Added additional Firmware for Ram 1500 (#28392)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 0d51a64bf2c7a97e91a8d33fe05d13bd48c99a37
2023-06-06 15:58:46 -07:00
Vincent Wright 51cdaa6cc3 More missing FW for the Ram 1500s (#28397)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: ffa10d784adf91d21bacdb5d3b51a523ceeb1c8f
2023-06-06 15:57:41 -07:00
Vincent Wright a169d514ef Ram 3500 Firmware (#28411)
* Ram 3500 Firmware

Dongle ID: d9855ccd97606ca8

* fix sorting

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: e8ccbd22dd3ae1b7ee53ebe0ca766eb639a15576
2023-06-05 14:04:30 -07:00
Cameron Clough 02e296f8c4 Chrysler: fix FW sorting
old-commit-hash: a6a9b65121ca7a08c3e05e3cdb542d895b0e5764
2023-06-05 13:45:03 -07:00
Shane Smiskol 31c1e66a01 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>
old-commit-hash: 024abe6455d44c7616ca7c694643c5324d0d371c
2023-05-31 21:30:50 -07:00
Maxime Desroches 734b6481b7 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>
old-commit-hash: 9f5f8b603cf69b06c4804632268491cf38cfac7e
2023-05-22 10:17:33 -07:00
Maxime Desroches 4626add29c 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>
old-commit-hash: 70677fe5fc044bff0ea99eab6bba5a6d02d5a85f
2023-05-15 15:33:54 -07:00
alkuwari007 86892b83b7 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>
old-commit-hash: b28221d3461b094418288eefd11f9a9530a174c8
2023-05-15 14:11:07 -07:00
Aaron Fields 59a4c6bf17 Chrysler: Pacifica Hybrid 2023 support (#28098)
* Adding 2023 Chrysler Pacifica Hybrid fingerprint.

* Update docs.
old-commit-hash: fd54a1e351077cbd8a99740265440d6972d70cfb
2023-05-04 14:42:46 -07:00
Shane Smiskol d916e0ed2d Car docs: pass docs flag to car interfaces (#27311)
* docs

* docs

* docs

* docs

* use docs in gm
old-commit-hash: 5aebdb0ad0e7e527f5deb553ffd193abea02a357
2023-04-18 12:22:22 -07:00
Shane Smiskol bffa466e63 Chrysler: add FW versions for 2019 Jeep Grand Cherokee (#27649)
add FW versions for Jeep 2019
old-commit-hash: 660b9e9718129d80afc0cb3d235fcefb22ba0fc6
2023-03-21 19:16:05 -07:00
realfast 9d281db35e 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>
old-commit-hash: aa4286153a2fb2a003307a15fbcb91ffd05d6ec2
2023-03-20 22:54:55 -07:00
Shane Smiskol 6155af477f Chrysler: add FW for 2019 Ram 3500 (#27636)
* Add 2019 Ram 3500

* wrong ones

* missing EPS
old-commit-hash: 4a844078cd675ca2c75d822f5d776ca8b0b71dbf
2023-03-20 21:39:06 -07:00
Shane Smiskol 8e9185cf01 Chrysler: add FW for 2023 Ram 1500 (#27634)
add FW for 2023 Ram 1500
old-commit-hash: aa0421ffd7dd73976b45635cb62182d66c4f1613
2023-03-20 21:20:35 -07:00
Shane Smiskol cce129691e Chrysler Pacifica 2018: add missing CAN fp (#27576)
new pacifica FPs
old-commit-hash: 4692cf7d1ccc9d76f9c0189ca86c84d784ea85de
2023-03-13 17:07:42 -07:00
Miniz199922 58b501a2eb 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
old-commit-hash: 437ca99fcd5bddfd2f73701d48919ef4afea3ca3
2023-03-01 16:56:01 -08:00
Shane Smiskol 4cf0ce33d5 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
old-commit-hash: 581fd62d2642629b23ac111112245a963202143f
2023-02-26 17:32:52 -08:00
Shane Smiskol cd6c546791 Chrysler Pacifica Hybrid 2017: add missing CAN FP (#27408)
add missing 840: 8
old-commit-hash: 3c66106539e5aad272c967009e23e4ff8508157c
2023-02-20 18:02:52 -08:00
Adeeb Shihadeh 4a1afb6de0 chyrsler: add comment about radar parsing
old-commit-hash: dad948983a7ff26ffc073c536bd1e99b5d826cec
2023-02-17 15:04:21 -08:00
Adeeb Shihadeh caaa104d64 Chrysler: revert torque tuning (#27327)
* Chrysler: revert torque tuning

* update refs

* update refs + route
old-commit-hash: e3de6b88342f050edc0eb89d65b55de0fe2f1a8c
2023-02-13 16:15:59 -08:00
Miniz199922 76f71a5790 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>
old-commit-hash: e219da29b28807a324af1e9c54a3791d8e295230
2023-02-12 18:55:31 -08:00
Adeeb Shihadeh a2e9043170 Chrysler: setup panda safety flag for old tuning's steer limits
old-commit-hash: b1f84f94001e6c8de8bcedb72652831de01dcee4
2023-02-10 22:39:52 -08:00
Shane Smiskol 814ffe19f6 Chrysler: log temporary LKAS faults (#27303)
* Log temp lkas faults for non-ram

* bump to master

* add to signals

* whoops

* ... come onnnnn
old-commit-hash: c05aa0e87159e07e66dba946db08735ae83bc442
2023-02-10 16:32:21 -08:00
Shane Smiskol acc8e38111 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
old-commit-hash: 8f5057ff2dbea4ebc85bc8f55bc7a37e4d5969b6
2023-02-09 15:37:39 -08:00
Shane Smiskol 418c1318bb Chrysler: remove Pacifica 2018 ICE from tuning blacklist (#27272)
remove Pacifica 2018 ICE from blacklist
old-commit-hash: b2d9a24d99407b3eb3a63b68404f60496c007c02
2023-02-09 11:43:34 -08:00
Vivek Aithal 72f3223951 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>
old-commit-hash: d74470252dc9c30dee3fc001d8d6ab4871cb8780
2023-02-08 19:18:36 -08:00
Adeeb Shihadeh d1ccbe815b Chrysler: disable radar parsing (#27190)
* Chrysler: disable radar parsing

* update refs
old-commit-hash: 444df54a70c8d0fb31c1a2474053c862e4efb61b
2023-02-02 13:46:44 -08:00
Adeeb Shihadeh 20fbb0a8fd rename carState.radarOffCan to radarUnavailable (#27187)
* rename carState.radarOffCan to radarUnavailable

* bump cereal
old-commit-hash: 6fa9b555a435cc9639193cca516b78a22189356c
2023-02-02 11:38:09 -08:00
Shane Smiskol fbf2e53198 Ram 1500: more generic EPS steer to zero check (#27086)
more generic check
old-commit-hash: 4d231a9d96a54ba0ed163e4aa487876f811a97cb
2023-01-26 00:48:59 -08:00
Shane Smiskol e66e4d8af2 Lateral jerk unit test (#25759)
* stash

* more test

* less test

* clean test

* no angle

* add tolerance

* fix gm

fix gm

* test both

* lower some rates on hkg

* stash

* simpler

* bump panda

* Revert "bump panda"

This reverts commit f2137c221145cca723fe6ee3378ba947b7061965.

* only torque

* make kona pass

* duplicate __init__

* move

* half clean up

* half clean up

* more clean up

* more clean up

* fix static analysis

* calculate over 0.5 seconds

* limit to max steer

* type annotation

* calc once
old-commit-hash: aab33b1c5f56eb7ef66f1128c98d45d5340ebc60
2022-12-15 21:52:07 -08:00
Shane Smiskol ec9060c7ba CarController: log steer sent to the car (#26743)
* log value sent to the car

* rename

* bump

* Update ref_commit
old-commit-hash: f36a3664b056a3500b68f4b5d7955b13bc8d0e4c
2022-12-10 02:03:40 -08:00
Shane Smiskol 890d63840d Chrysler: fix LKAS fault for 2017 Pacifica (#26711)
* gate on FW

* fix

* reverse docs

* fix

* Revert "fix"

This reverts commit a0f2558fba0adc59c70eb92ffb8bd815bf033979.

Revert "reverse docs"

This reverts commit 9a46c517dfa7182f2f30501de801e35f7e1004c4.

Revert "fix"

This reverts commit 7b4d4bd3d2c2216890ea1877d52fdfbd9cec3ed7.

Revert "gate on FW"

This reverts commit 296826e71323e63f8e57b8988e573cef33149022.

* use a flag

* fix

* draft

* clean up

* clean up

* more clear

* comment

* remove
old-commit-hash: a7fb5da6e592cbc8750ae93b733da7d8b0f096aa
2022-12-07 12:04:33 -08:00