Commit Graph

190 Commits

Author SHA1 Message Date
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
Shane Smiskol 0f2654177e Car docs: update parts docs for 3X (#30076)
* add panda kit

* better: 3X is default

* how about

* replace more three refs
old-commit-hash: b918e0682256fdc0c202fa55ea6182f58acede5c
2023-09-28 16:20:03 -07:00
Sean Aguinaga 2f0066a458 Ford: add 2023 Maverick Engine FW (#30085)
* Add 2023 Maverick Engine FW

* Pasted wrong line - corrected

* Update selfdrive/car/ford/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: a30d5d2b7a47cdb050b1aa1f4ff19ef2b392bdf7
2023-09-28 13:59:05 -07:00
Justin Newberry 3b91610c0b Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
sgtcurry 8d17df870f 2023 Ford Maverick Ecoboost engine firmware (#29762)
* Update values.py

23 maverick ecoboost engine fw

* Update values.py

* Update values.py

* sorted

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: ed7a0bf0f9cb6f0ea6efcf0ab3cf32a2e3dc9f2d
2023-09-04 12:05:57 -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
Cameron Clough 2b38b62afe add missing openpilot prefix to imports
old-commit-hash: 74b9a6af9e10e97f1686732ab7b6ba0ace597c48
2023-08-24 15:46:56 +01:00
Shane Smiskol 4699eed8f3 FW Query: test noOBD queries on aux panda (#29547)
* huh, this test just works!

* fix

* Update selfdrive/car/tests/test_fw_fingerprint.py
old-commit-hash: 7de9842245dfb506ec340290469d7412989e2233
2023-08-22 23:43:52 -07:00
Cameron Clough a49d2d2619 Ford: test FW query config and versions (#29016)
* Ford: test FW query config and versions

* comments about software p/n

* should keep it in bytes

* don't need car_model

* it prints nicely

* add todo

* Update selfdrive/car/ford/tests/test_ford.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 92a7d702fcc8fd5188918871ed44fa0d4cb7d28f
2023-08-21 23:29:15 -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
Terry Huang 169da0c3e7 Ford: Kuga 2022 fingerprint (#29449)
Ford: Kuga 2022 fingerprint
old-commit-hash: 0c50dd9d0fb1d6cec9c40a552d91c43b406bafd5
2023-08-18 13:11:50 +01: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
Justin Newberry 01beb57506 Ford: Explorer 2020 fingerprint (#29372)
old-commit-hash: 106f49a00fee97f6e5edea8c3c6267e14b1ad4c1
2023-08-13 16:41:35 -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
Cameron Clough 11f0523e8c Ford: update Maverick 2022 docs (#29280)
old-commit-hash: 95289cb180ac53cbe0f522fcbd81a8ad0019a2cc
2023-08-08 11:47:23 +01: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
Kacper Rączy 79fa322d4a radard: tie radard frequency to modelV2 (#29063)
old-commit-hash: 255f5c13f2d8c6796fd960b248856f11a3c1b05a
2023-08-03 22:10:21 -07:00
Cameron Clough 9741ecfe0f Ford: align car groups with convention
no plural

old-commit-hash: e7c858d590f84c4f476ec0a01eae67f49f7a114b
2023-07-18 11:42:15 +01:00
Shane Smiskol 38f28534dc Ford: fix CAN FD fingerprinting (#28995)
* fix CAN FD fingerprinting for now

* comment

* this is the simplest for now

* revert

* cmt

* todo and fixme!
old-commit-hash: 047bb46d3a0e73d1c7160252bcb6f2f7358980ee
2023-07-17 16:56:13 -07:00
Cameron Clough a9d16a7887 Ford: add back FW query ECU whitelists (#28993)
Partial revert of changes in #28974.
old-commit-hash: ed8f17df6559e1b4b0812fa2e6f91eef60e13795
2023-07-17 13:46:47 -07:00
Cameron Clough 381a6a35fd Ford: add F-150 2023 support (dashcam only) (#28974)
old-commit-hash: 17e71cdf4476d0d1b90b6e5e7c5be433e93d50c5
2023-07-17 16:16:28 +01:00
Cameron Clough 645479775d Ford: set CAN FD safety param (#28979)
old-commit-hash: d0e6076059e534874148ad5aecaea683dea35ec6
2023-07-16 13:00:42 -07:00
Cameron Clough 8c7e9b5cea Ford: sort FW versions
old-commit-hash: f30b859eca878d68f0eb94dfab0c1cb18e57f991
2023-07-16 16:09:18 +01:00
Cameron Clough 6ec8c00ffd Ford: add Explorer 2022 FW (#28792)
old-commit-hash: b627ce6901ab50b891323bb066374fa1a155c83e
2023-07-03 15:56:30 +01:00
Cameron Clough e99629ab35 Ford: add Escape 2021 FW (#28744)
old-commit-hash: 949afb603826918a2e122858af8941732bb2357a
2023-06-29 14:55:22 +01:00
Shane Smiskol ac0b7d634e Ford: catch camera ACC faults (#28170)
* catch camera acc faults

* Update selfdrive/car/ford/carstate.py

* cmt

* needs to be CP
old-commit-hash: d19d83ebf689a77ef66a0a04cddc33e5a7208732
2023-06-29 02:29:58 -07:00
Cameron Clough c40c24e18d Ford: show FCW alert on IPC (#27924)
* Ford: show FCW alert on IPC

* forward fcw from ipma

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 47f948c5c6a81d229d9ab74183f4bfe9fe8dc9fb
2023-06-28 16:22:53 -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 ab520fd2e5 Ford: add missing 2020 Escape FW (#28712)
Update values.py
old-commit-hash: abf72fd50f5e526801518b2516b2d7c0b2373f67
2023-06-27 13:37:11 -07:00
Cameron Clough 9cc4291d77 Ford: add some missing types
old-commit-hash: a485e474c83d8af808e2be15513a719c241bef7d
2023-06-22 12:14:26 +01:00
Cameron Clough c451cd3017 docs: fix footnote typo
old-commit-hash: b2295c979e0423c1ea0e97ca27c21a153cb648a5
2023-06-17 12:24:20 -07:00
Cameron Clough 7e9f1e1b79 Ford: remove Focus Mk4 from dashcam only (#28551)
old-commit-hash: 78bb6379937aae489dff501ec10694ff3aac17df
2023-06-17 15:16:59 +01:00
Shane Smiskol 8e94cb76e6 Ford: add new engine FW for Bronco Sport (#28586)
add new FW

d5f0cbd9ceba7d0c|2023-06-16--17-14-20
old-commit-hash: 6459d460865b981acd6efdca90991e7d826371dc
2023-06-16 22:45:13 -07:00
Cameron Clough 24c600b9ce Ford Escape 2020 FW (#28545)
old-commit-hash: 7a5b0b97e1d030dc896a559c292f86965bb51193
2023-06-14 15:53:58 +01:00
Cameron Clough a2bb797670 add Lincoln Aviator 2020 FW (#28494)
0b91b433b9332780|2023-06-11--13-43-59

VIN: 5LM5J7XC9LGL15606
old-commit-hash: a5a0d734ba4f504d997cb19fe4ca21291ea7334f
2023-06-11 12:57:22 -07:00
Cameron Clough c167ae232f Ford: shiftByWire ECU not used for fingerprinting (#28493)
old-commit-hash: 96420555e5766f835ec9b7d8f6207d87d9493571
2023-06-11 00:09:57 -07:00
Cameron Clough 1befc68287 Ford: detect auxiliary panda (#28491)
old-commit-hash: 30c12e45575d94563ae85a79e19823e9120ef76b
2023-06-10 23:22:12 -07:00
Shane Smiskol 30f43f5f82 FPv2: assert non-empty FW lists (#28441)
* test empty fw lists

* fix

* generic test name

* can rmeove this check now

* and here!

* can remove that

* add to print
old-commit-hash: f976fce7d0142088244ae4af8a1116691b621843
2023-06-07 00:05:41 -07:00
Cameron Clough 33f7de0bfd Ford: fix minor typos
old-commit-hash: 9f616982ed8bd3b493b791dd42b19415f4c6b7a9
2023-06-01 19:42:46 -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
Cameron Clough 8ddf02e69b Ford: fix counter in LateralMotionControl2 message (#28328)
old-commit-hash: de5e0d0c714ce8820c5bbd9dc7e981cc8f58bb03
2023-05-27 21:54:37 -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
Cameron Clough f5563f9049 Ford: longitudinal behind alpha toggle (#28196)
* bump panda

* set safety config/configure experimental longitudinal

* send inactive signals

* bump

* just calculate in function

* already in the variable

* clean that up

* add comment, on ford stock long, prchg seems to be set from the possible future accel

* comment

* this signal didn't have an impact on engaging

* add comment and fix

* worst case while AEB

* and kill ACCDATAs

* this could be dangerous

* need to test this too

* Revert "need to test this too"

This reverts commit 09bba75950fa55d90a82f0109e3138ffe5a1d08c.

* Revert "this could be dangerous"

This reverts commit 323143e84727f1a780bbb600be5f7ceb763516b1.

* Revert "and kill ACCDATAs"

This reverts commit 15f6804bf64d01145daf57a592c2f3fd44ceba27.

* Revert "worst case while AEB"

This reverts commit 85e1aaa8e1af90373c688d1973dbfbb07b1fb8b2.

* bump panda

* Update selfdrive/car/ford/fordcan.py

* move around

* was already here

* rm

* use variable

* update docs

* Update ref_commit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d4dec3ba5e7c68c57c137e15c0a51c903737b8b7
2023-05-18 15:25:24 -07:00
Shane Smiskol 18cabb533a Ford: longitudinal clean up (#28231)
clean ups
old-commit-hash: c7d3b28b93faa6c955fb24bc64031512ee985ee9
2023-05-18 14:30:07 -07:00
Shane Smiskol 9e7191323e Ford: log stock AEB (#28228)
log AEB
old-commit-hash: 902cc891a88eb5b4474e29ab2f174f602c1223ed
2023-05-18 03:56:35 -07:00
Cameron Clough dabef64152 Ford: add Explorer 2020 ST FW (#28205)
4458bd61cf193dab|2023-05-17--01-45-39

VIN: 1FM5K8GC7LGA15147
old-commit-hash: 66abfb933d39513cc9a52c86c88523aa31f00973
2023-05-16 20:11:05 -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