Commit Graph

82 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
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
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
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
Terry Huang 169da0c3e7 Ford: Kuga 2022 fingerprint (#29449)
Ford: Kuga 2022 fingerprint
old-commit-hash: 0c50dd9d0fb1d6cec9c40a552d91c43b406bafd5
2023-08-18 13:11:50 +01:00
Justin Newberry 01beb57506 Ford: Explorer 2020 fingerprint (#29372)
old-commit-hash: 106f49a00fee97f6e5edea8c3c6267e14b1ad4c1
2023-08-13 16:41:35 -07:00
Cameron Clough 11f0523e8c Ford: update Maverick 2022 docs (#29280)
old-commit-hash: 95289cb180ac53cbe0f522fcbd81a8ad0019a2cc
2023-08-08 11:47:23 +01: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 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
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 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
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
Shane Smiskol 18cabb533a Ford: longitudinal clean up (#28231)
clean ups
old-commit-hash: c7d3b28b93faa6c955fb24bc64031512ee985ee9
2023-05-18 14:30:07 -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
Shane Smiskol 298e7466f5 Ford: hybrids are unsupported (#28171)
* hybrid fords are dashcammed

* something like this?

* just do an alert

* good comment

* space

* bb

bb

* top

* Update selfdrive/car/ford/interface.py

* add a noEntry

* remove from release notes

* sad :(

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 344064d6bd45b6d0f54e1eedfc73b87a856efe3e
2023-05-11 23:35:07 -07:00
Cameron Clough 4f10559485 Ford: add Explorer Hybrid 2020-22
old-commit-hash: 16f0f1561b716cbb75149185dac31b15386e7984
2023-05-04 23:35:52 -07:00
Cameron Clough f3e53ee29e add more Ford to release notes
old-commit-hash: d8b9317122fc634d3ed811e321e5258fa3a50d35
2023-05-04 18:15:53 -07:00
Cameron Clough d2881d6f48 Ford: add Escape test route and remove dashcam only (#28113)
* Ford: add Escape Mk4 test route

* generate docs

* remove from non_tested

* fix model years

* clearer packages for EU

* docs

* 2020 hybrid

26b2cace68e36212

1FMCU9DZ9LUA82589

* 2021 phev

1FMCU0LZXMUA80767

f8eaaccd2a90aef8

* add this too

* more docs
old-commit-hash: a0d2e4e711b5ca4f8e5267d6bf7c8f2e32765692
2023-05-04 17:21:36 -07:00
Shane Smiskol 13efebaa7e Ford safety: curvature error limit (#27981)
* clip Ford requested curvature to current +- delta

* fix bug, allow for more limit

* bump panda to branch

* bump panda

* rename

* rename function

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

* make two functions consistent

* use apply_dist_to_meas_limits

* only above 12 ms

* simplify, clean up

* this isn't used

* https://github.com/commaai/openpilot/pull/27446

* bump panda

* one m/s fudge

* fix current curvature

* also fix panda

* fix panda blocking msgs

* bump panda to fix more blocked msgs

* clip

* bump panda

* lower to 9 ms

* clean up carcontroller

* bump panda

* bump

* bumppanda

* bumppanda

* bumppanda

* split line
old-commit-hash: 8e3e9141ee74779a0ec49ca24c2ff938d686bb6f
2023-04-27 00:43:14 -07:00
Cameron Clough 6817df8eb1 Ford: update Focus model year
Supported Focus FW is actually (late) 2018 MY. Early production of the
Focus Mk4.

VIN: WF0NXXGCHNJR69712

old-commit-hash: b4d4920fa46e7ff5c06a61c4f1c92849b5be7197
2023-04-26 01:58:12 -07:00
Cameron Clough df939a2aa1 ford: correct messages frequencies (#28027)
* ford: correct messages frequencies

* fix STEER_STEP

* fix comment

* cleanup
old-commit-hash: 42f2e392130e99352f4d0c9ac317e2dae13a9fcf
2023-04-26 00:00:08 -07:00
Shane Smiskol 6d69fc17da Ford: simple rate limits (#27446)
* simple limits

* add script

* useless

* remove script

* cleanup comments

* bump curvature limits

* divide by 20

* add comment

* add panda safety

* add back notebook with multi route support

* remove

* bump up low speed up

* comment
old-commit-hash: 3c55f49dd8ac74db9b64adc4c24536aa46dc8128
2023-04-18 23:27:49 -07:00
Brandon Smyth 6c26bda5c9 Ford: add Escape PHEV 2021 FW (#27902)
Ford Maverick 2021 Titanium PHEV

VIN: 1FMCU0LZXMUA80767

f8eaaccd2a90aef8|2023-04-13--14-14-48
old-commit-hash: 9893733c12cb28cef47cf2a491f58ff9a5915708
2023-04-13 16:55:33 -07:00
Cameron Clough 69c2e0a1f4 Ford: add Maverick 2023 FW (#27781)
Ford Maverick 2023 Lariat Lux (added radar)

VIN: 3FTTW8E31PRA18806

bd37e43731e5964b|2023-04-01--15-13-06--0
old-commit-hash: 64f9b13871f83593e84becd3beeef82945f550c8
2023-04-01 21:20:47 +01:00
Cameron Clough ac44ce707c Ford: add missing Explorer FW (#27502)
`1493c38de09a381a|2023-03-05--21-10-07--0`

VIN: `1FMSK8FH6LGB17698`
old-commit-hash: fd2e03decf0a89e1c04e0a8d6aee0bf033d2ec0b
2023-03-05 18:44:56 -08:00
Shane Smiskol 854314765c Ford: adjust curvature rate limits (#27427)
* fix up

* Update ref_commit
old-commit-hash: b00eb57bb735a8c533a28a22ee3aed534afd4a7c
2023-02-22 15:59:07 -08:00
Shane Smiskol 59ff270456 Ford: adjust curvature rate limits (#27423)
* Update values.py

* Update values.py

* make consistent

* Update ref_commit
old-commit-hash: f2982340f8aed49559713f573b751e6095e51504
2023-02-22 14:09:16 -08:00
Shane Smiskol 3aad76f8fd Ford: filter steering pressed (#27123)
* ford steering pressed filter

* raise to 1.0

* Update ref_commit
old-commit-hash: dff054d4dfb6c08a471315778dadf6c0dc24207d
2023-02-20 16:13:01 -08:00
Cameron Clough 5d594850cf Ford: add CarInfo for Plug-in Hybrids
old-commit-hash: ce9fd785d55f5bee8e49d035b13548709fbe989c
2023-02-17 19:30:06 -08:00
Cameron Clough c6b205c6ea Ford Escape PHEV 2022 Fingerprint (#27382)
* Ford Escape PHEV 2022 Fingerprint

6cffc47c251aa36c|2023-02-17--18-17-14

VIN: 1FMCU0EZ0NUB76728

* include MY2022 in car info

* Update selfdrive/car/ford/values.py

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

---------

Co-authored-by: koffee-bean <srivastavasid91@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7330466dffe4b1142c64d99d328654e7109e8073
2023-02-17 19:12:15 -08:00
Cameron Clough 363f26f80c Ford: add Lincoln Aviator 2021 to Ford Explorer platform (#27095)
* add Lincoln Aviator 2021 to Ford Explorer platform

Based on the Ford Explorer, the Aviator has very similar firmware
versions. Add these to the Explorer platform and create a new CarInfo
for the Aviator.

f0709d2bc6ca451f|2022-12-10--12-36-59--0

VIN: 5LM5J7XC8MGL09541

* Ford: new gear shifter signal to support Aviator

* probably don't need these

* don't need to pass None here, it defaults to None

* will rename in DBC

* bump opendbc

* bump process replay ref
old-commit-hash: b1e744987f88641577139061a6444b6357f5773a
2023-02-02 22:00:49 -08:00
Cameron Clough 2773a89621 Ford: restore radar DBC, check radarUnavailable (#27188)
old-commit-hash: 4fd15096979675379b7f99320bb6fe187f9bcf6b
2023-02-02 12:48:57 -08:00