Commit Graph

69 Commits

Author SHA1 Message Date
Cameron Clough
e7c858d590 Ford: align car groups with convention
no plural
2023-07-18 11:42:15 +01:00
Shane Smiskol
047bb46d3a Ford: fix CAN FD fingerprinting (#28995)
* fix CAN FD fingerprinting for now

* comment

* this is the simplest for now

* revert

* cmt

* todo and fixme!
2023-07-17 16:56:13 -07:00
Cameron Clough
ed8f17df65 Ford: add back FW query ECU whitelists (#28993)
Partial revert of changes in #28974.
2023-07-17 13:46:47 -07:00
Cameron Clough
17e71cdf44 Ford: add F-150 2023 support (dashcam only) (#28974) 2023-07-17 16:16:28 +01:00
Cameron Clough
f30b859eca Ford: sort FW versions 2023-07-16 16:09:18 +01:00
Cameron Clough
b627ce6901 Ford: add Explorer 2022 FW (#28792) 2023-07-03 15:56:30 +01:00
Cameron Clough
949afb6038 Ford: add Escape 2021 FW (#28744) 2023-06-29 14:55:22 +01: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
abf72fd50f Ford: add missing 2020 Escape FW (#28712)
Update values.py
2023-06-27 13:37:11 -07:00
Cameron Clough
b2295c979e docs: fix footnote typo 2023-06-17 12:24:20 -07:00
Cameron Clough
78bb637993 Ford: remove Focus Mk4 from dashcam only (#28551) 2023-06-17 15:16:59 +01:00
Shane Smiskol
6459d46086 Ford: add new engine FW for Bronco Sport (#28586)
add new FW

d5f0cbd9ceba7d0c|2023-06-16--17-14-20
2023-06-16 22:45:13 -07:00
Cameron Clough
7a5b0b97e1 Ford Escape 2020 FW (#28545) 2023-06-14 15:53:58 +01:00
Cameron Clough
a5a0d734ba add Lincoln Aviator 2020 FW (#28494)
0b91b433b9332780|2023-06-11--13-43-59

VIN: 5LM5J7XC9LGL15606
2023-06-11 12:57:22 -07:00
Cameron Clough
96420555e5 Ford: shiftByWire ECU not used for fingerprinting (#28493) 2023-06-11 00:09:57 -07:00
Cameron Clough
30c12e4557 Ford: detect auxiliary panda (#28491) 2023-06-10 23:22:12 -07:00
Shane Smiskol
f976fce7d0 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
2023-06-07 00:05:41 -07:00
Cameron Clough
9f616982ed Ford: fix minor typos 2023-06-01 19:42:46 -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
Shane Smiskol
c7d3b28b93 Ford: longitudinal clean up (#28231)
clean ups
2023-05-18 14:30:07 -07:00
Cameron Clough
66abfb933d Ford: add Explorer 2020 ST FW (#28205)
4458bd61cf193dab|2023-05-17--01-45-39

VIN: 1FM5K8GC7LGA15147
2023-05-16 20:11:05 -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
Shane Smiskol
344064d6bd 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>
2023-05-11 23:35:07 -07:00
Cameron Clough
16f0f1561b Ford: add Explorer Hybrid 2020-22 2023-05-04 23:35:52 -07:00
Cameron Clough
d8b9317122 add more Ford to release notes 2023-05-04 18:15:53 -07:00
Cameron Clough
a0d2e4e711 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
2023-05-04 17:21:36 -07:00
Shane Smiskol
8e3e9141ee 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
2023-04-27 00:43:14 -07:00
Cameron Clough
b4d4920fa4 Ford: update Focus model year
Supported Focus FW is actually (late) 2018 MY. Early production of the
Focus Mk4.

VIN: WF0NXXGCHNJR69712
2023-04-26 01:58:12 -07:00
Cameron Clough
42f2e39213 ford: correct messages frequencies (#28027)
* ford: correct messages frequencies

* fix STEER_STEP

* fix comment

* cleanup
2023-04-26 00:00:08 -07:00
Shane Smiskol
3c55f49dd8 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
2023-04-18 23:27:49 -07:00
Brandon Smyth
9893733c12 Ford: add Escape PHEV 2021 FW (#27902)
Ford Maverick 2021 Titanium PHEV

VIN: 1FMCU0LZXMUA80767

f8eaaccd2a90aef8|2023-04-13--14-14-48
2023-04-13 16:55:33 -07:00
Cameron Clough
64f9b13871 Ford: add Maverick 2023 FW (#27781)
Ford Maverick 2023 Lariat Lux (added radar)

VIN: 3FTTW8E31PRA18806

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

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

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

* Update values.py

* make consistent

* Update ref_commit
2023-02-22 14:09:16 -08:00
Shane Smiskol
dff054d4df Ford: filter steering pressed (#27123)
* ford steering pressed filter

* raise to 1.0

* Update ref_commit
2023-02-20 16:13:01 -08:00
Cameron Clough
ce9fd785d5 Ford: add CarInfo for Plug-in Hybrids 2023-02-17 19:30:06 -08:00
Cameron Clough
7330466dff 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>
2023-02-17 19:12:15 -08:00
Cameron Clough
b1e744987f 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
2023-02-02 22:00:49 -08:00
Cameron Clough
4fd1509697 Ford: restore radar DBC, check radarUnavailable (#27188) 2023-02-02 12:48:57 -08:00
Cameron Clough
df5ccda731 Ford CAN FD (#27166)
* add LateralMotionControl2 message

* send LatCtl2 message on CAN FD cars
2023-01-31 11:06:03 -08:00
Cameron Clough
ef9deeb6eb Ford longitudinal control (#27161)
ford long
2023-01-30 22:37:54 -08:00
Shane Smiskol
ad6ee2669c fix static analysis 2023-01-26 00:47:29 -08:00
Shane Smiskol
c7c0f1e33c Ford: fix curvature rate limits 2023-01-26 00:37:13 -08:00
Cameron Clough
71c21eff72 Ford: add missing Maverick 2022 XLT FW (#27098)
Ford: add Maverick 2022 XLT fw

VIN: `3FTTW8E39NRB00148`

933ad9d04ac82693|2023-01-04--17-31-33--0
2023-01-25 22:03:41 -08:00
Cameron Clough
e90571eea1 Ford: disable radar parser (#27096)
The radar parser caused many false positive FCWs.
2023-01-25 21:42:24 -08:00
Shane Smiskol
2bdce2d92e Ford: use curvature signal for lateral control (#27091)
* do carcontroller

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* values done

* just send latActive in, cleaner

* Update selfdrive/car/ford/values.py

* fix a crash

* adjust ramp as well

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-01-25 21:39:46 -08:00
Cameron Clough
cf69653440 Ford: add Maverick 2022 (#27093)
* Ford: add Maverick 2022

VIN: 3FTTW8E36NRA74219

a6427650bff6b419|2022-09-19--10-51-30

* Ford: add missing Maverick 2022 FW

VIN: 3FTTW8F98NRA75889

c845bd8c366e6f3d|2022-12-03--18-57-00--0

* steer ratio
2023-01-25 21:18:35 -08:00
Cameron Clough
d410206f14 Ford: add Bronco Sport 2021-22 (#27092)
* cleanup

* add Ford Bronco Sport 2021 fw

VIN: 3FMCR9B61MRA17853

62241b0c7fea4589|2022-10-25--13-40-05--0

* add test route

* add Ford Bronco Sport 2022 fw

VIN: 3FMCR9B69NRD15990

54827bf84c38b14f|2023-01-23--14-58-23--0
2023-01-25 20:56:03 -08:00