Commit Graph

99 Commits

Author SHA1 Message Date
Nickolas Komarnitsky 55b1515b75 Subaru: Add FW for 2022 Legacy (#30434)
Update values.py
old-commit-hash: cf2d4fd7ea85034983bb7ce0d3f56e3d79a8949a
2023-11-09 17:42:36 -08:00
Justin Newberry 83038edcbf Subaru: initial eyesight disable support (#30373)
* initial eyesight disable

* disable_eyesight

* comment
old-commit-hash: 60b21b55d28473046825346845b609a5324d945c
2023-11-06 22:13:39 -08:00
Justin Newberry 605b5e264e Subaru: 2019-2020 forester is also rate limited (#30391)
* forester rate limited

* better comment

* better comment
old-commit-hash: ace14698c42e8a1da084a3f2debce043b569a76b
2023-11-06 13:22:58 -08:00
Justin Newberry 7587e8a44f Subaru: improve longitudinal tuning (#30389)
subaru long tuning
old-commit-hash: df79ec531497cec5c8fd7063790787f3ebd2e3f4
2023-11-05 17:53:42 -08:00
Justin Newberry 61b9a58c0e Subaru: forester 2017 fingerprint (#30388)
forester fw
old-commit-hash: 0fbc36bce19a7fb7a57484488bed16f07a51c888
2023-11-05 01:21:46 -07:00
Justin Newberry 05e1de5c76 Subaru: 2015 outback fingerprint (#30387)
subaru outback fw
old-commit-hash: 1463fd3917a9aa3ba556e82e411935eecb959ab6
2023-11-04 22:31:09 -07:00
Justin Newberry 6a472937da Subaru: 2016 legacy fingerprint (#30386)
legacy fw
old-commit-hash: b791c0296b5a57ab031cbae924446ec732eecb9f
2023-11-04 22:09:43 -07:00
Stephen Marin 9b83190ffb Subaru: Fingerprint for 2021 Outback XT (#30380)
* Fingerprint for 2021 Outback XT

* that one already exists

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 240f43b42166effa179494b5502ca7f5a18981a2
2023-11-04 22:04:54 -07:00
Justin Newberry c8ebd08c62 Subaru: 2021 impreza fingerprint (#30249)
old-commit-hash: 998763b4bced0ef787aac3be9c46307bd287ddbc
2023-10-15 17:15:41 -04:00
Justin Newberry 4d732ad439 Subaru: Outback 2023 fingerprint (#30190)
fingerprint
old-commit-hash: 7f945f10c65b445f630b970ddf4b245d917d5448
2023-10-05 17:15:26 -07:00
Justin Newberry 5eabb35a53 Subaru: crosstrek hybrid is a B harness (#30150)
its a b harness
old-commit-hash: 8cc8952d819740436ef9a53d618437c420819d5b
2023-10-03 13:29:07 -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
Justin Newberry 1b35278d95 Subaru: remove 2020+ temporary steering faults (#29116)
* subaru steer faults

* it takes a bool now

* Update selfdrive/car/subaru/carcontroller.py

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

* that was removed

* should be abs

* bump panda

* bump panda

* subaru faults

* add fixme

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

* review suggestions

* still want zero steer when lat not active

* bump submodules

* move it under the non-preglobal section

* better comment for steer limited

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fb06b98667483bbf9d62b16d7f5aa5e50721f597
2023-09-07 15:28:46 -07:00
Justin Newberry 8b7c706ff3 Subaru: impreza 22 fingerprint (#29765)
add fingerprint
old-commit-hash: f4f92f1a2fba9358f7a529b9f5c28d90c9691d08
2023-09-03 13:12:31 -07:00
martinl 5f1528708e Subaru: Ascent 2023 dashcam mode (#27583)
* Subaru: Add support for 2023 Ascent

* Update supported cars list

* Remove tester present from fw query

* merge master

* fix merge issues

* minimize diff

* add comment about 23 ascent

* add comment

* correct spot

* fix name

* nocap

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: a1bf66a0d26574eabf322ce139142a6db92c9098
2023-08-25 20:55:21 -07:00
Shane Smiskol acec4fc22f Subaru: Forester Hybrid 2020 dashcam (#24770)
* Add support for Forester Hybrid 2020

Co-authored-by: martinl <martin@mlp.ee>

* it's a param now

* make it work

* fix

* merge and cleanup

* remove duplicate

* should be forester

* bump submodules

* should be abs

* add missing params

* still need a test route

* still need a test route

* consitent

* here too

* todo

* more

* Update selfdrive/car/tests/routes.py

* clean up

---------

Co-authored-by: martinl <martin@mlp.ee>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 3719be8b76f81068da3aadd5bd0f76e8a4d00396
2023-08-23 21:30:12 -07:00
Adeeb Shihadeh 56facfcc5a Subaru: Crosstrek Hybrid dashcam mode (#25378)
* Subaru: Crosstrek Hybrid support

* hybrid cars in dashcam only

* revert that

* just dashcam

* tah should be abs

* remove unused import

* use the old dbc for now

* hybrid car exceptions in carstate

* need dashstatus until we get a proper cruiseactivated bit

* missing CP

* merge conflicts

* lets be consistent about extend

* cleanup

* fix and comments

* preglobal fix

* and the rest

* and this

* added hybrid to release

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 973d90be779efc0e4a83eeab213c0cc9b4d711ce
2023-08-23 18:50:55 -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
Justin Newberry 7faefd677b Subaru: Global gen1 experimental longitudinal (#28872)
* Add longitudinal support for Subaru Crosstrek and Impreza

* Update experimentalLongitudinalAvailable check

* Update supported cars list

* bump panda

* Remove/rename es_lkas_msg to es_lkas_state_msg

* Use stockAeb for AEB passthrough

* bump panda

* bump panda

* remove stockFcw from stockAeb

* Subaru: Add FCW_Cont_Beep to stockFcw signals

* bump panda

* bump panda

* update poetry deps: shellingham

* bump panda

* bump panda

* Revert "update poetry deps: shellingham"

This reverts commit 6e9b20964890c8a5c416a17b8aaad4cc16fddcfc.

* Merge fixes

* bump panda

* bump panda

* update supported cars list

* dont use counters for long control

* fix unittests

* submodules update

* only soft disable in long control

* use common functions and cleanup

* apply hystersis correctly

* move to comma repo

* use CanBus

* cleanup

* explicit copy

* behind a flag

* remove unrequired rpm checks

* add comment

* fix flag issue

* we still need to check rpm

* update docs

* enable long for a test route

* unit tests

* inactive throttle fix

* Update subarucan.py

* Update carcontroller.py

* Update carcontroller.py

* inactive throttle fix

* Delete settings

* fix rate limit

* bump submodules

* bump panda

* bump panda

* bump panda

* bump panda

* simplify initial implementation, remove AEB

* reduce initial complexity by not intercepting cruisecontrol or brake_status

* fix fwd hook test

* show pcb off warning

* cleanup and setup for tuning

* fix sumobuldes

* revert unrelated changes

* only whats required

* only whats required

* clean that up

* better comments

* behind the flag for now

* comments and minimize diff

* align stuff

* cleanup for PR

* apply review suggestions

---------

Co-authored-by: Martin Lillepuu <martin@mlp.ee>
old-commit-hash: d6c682b40168241e481aa2904198ac29c8d1a73e
2023-08-16 12:58:09 -07:00
Marcus Millspaugh 9b98b3d6ea additional Subaru fwVersion (#29365)
* Update Car/Subaru values.py to support 2022 Crosstrek

Tested via SP, just want support via stock OP

* remove duplicates

* started adding support for toyota bZ4X

* Add files via upload

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* remove duplicates and mistakes

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 2c13dea1c822ce8be02be530604d0d984277ad13
2023-08-12 22:05:33 -07:00
Justin Newberry 7648f35b1c Car Docs: (optionally) Display a list of tools (#28782)
* display tools

* 5/16 also works

* cleanup

* static fix

* fix static analysis

* merge

* just use basepart

* use filter
old-commit-hash: 1e1cc638d8e9fa408a02a57d689c13c2219d823d
2023-08-01 00:06:21 -07:00
Justin Newberry cb45be4b6f Subaru: New LKAS Angle based cars in dashcam only (#29190)
* dashcam mode only

* fix name

* added those cars in dashcam mode only
old-commit-hash: 38954418f097f5267505df67ff275f7830191022
2023-07-31 13:58:33 -07:00
Marcus Millspaugh a185de7fdc Update Car/Subaru values.py to support 2022 Crosstrek (#29177)
* Update Car/Subaru values.py to support 2022 Crosstrek

Tested via SP, just want support via stock OP

* remove duplicates

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: d7e857730121c7c6426ebd7310c1db1e534c692c
2023-07-30 10:05:21 -07:00
JeanPierre Rousseau ca10c50d37 Subaru: add footnote to docs for international models (#26381)
* Update Cars.md

Updated Subaru required specs

* Update values.py

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b349a8c940cc77188e6c144bc3f8c40b5a3cd3c7
2023-07-08 05:17:10 -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
Justin Newberry 18cb3e6cb3 Subaru: Signals Cleanup (#28602)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 803c077dc1f4b1b7aafe6df11f168159f986d602
2023-06-23 21:24:27 +01: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
Kyle Greenlaw 08b67e417f Subaru: Add fw for 2020 Subaru Outback (#28240)
Route: a4e8e925930fce2c|2023-05-19--20-47-32
old-commit-hash: 7a684da47f7c587063ec3c333d748cc37b5417a6
2023-05-19 22:49:46 -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
martinl eb47aa90ee Subaru: FPv2: Add Crosstrek Limited 2023 missing FW values (#28014)
* Subaru: FPv2: Add Crosstrek Limited 2023

* trailing comma

* remove duplicate

* prefer hex

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 2ad352d2993d25d5b656b2e20b696130ad465da1
2023-04-26 20:21:50 -07:00
goatstalker 49b1caa329 Add additional fingerprints for Subaru Outback 2022 model (#27995)
* Fingerprint Subaru outback 2022

Add fingerprint for carFw abs, engine, transmission, and fwdCamera.

* fingerprint two more values

* order values properly before submitting a PR

* remove hyundai fw responses

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: a5d0d7b0697aea8aa535d7e99f31b6cc8a1e0942
2023-04-21 19:24:24 -07:00
Chase Bolt 298edb7704 Add missing IMPREZA engine & fwdCamera f/w (#27985)
adding fingerprints for 2019 subaru impreza sport
old-commit-hash: f7e02c28d743dc2d2fe60a93b99b0f49750b4d80
2023-04-20 21:59:49 -07:00
Justin Newberry da2f2114d6 Subaru: infotainment status intercept and rewrite (#27829)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* remove compiler flag stuff

* force error for testing

* bump panda and fix mistake

* wip

* bump panda

* wip

* wip

* forgot checksum and stuff

* add to signals

* rename

* test

* test

* bump panda and opendbc

* bump cereal

* add blank filler

* test

* add steer required to infotainment

* fix missing bit

* fix missing bit

* cleanup for PR

* cleanup for PR

* bump submodules

* wip

* wip

* i wonder what 1 is

* seemed to also be obstacle detected?

* bumppanda

* only if global

* only global gen 2

* fix order

* detect and send

* detect in rest of places

* update refs

* bumpopendbc

* copy whole message (camera sometimes sets these signals)

* bumppanda

* update refs!

* bumppanda

* let's not change this

* same as all the other functions

* Revert "same as all the other functions"

This reverts commit e86dbb695ef84a18f3123720fed37a6b81391cc4.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d59bfa551955c481fd3762170d483a44251122f7
2023-04-17 19:05:16 -07:00
martinl 225762ba63 Add FPv2: Subaru Forester 2020 (#27854)
* Add FPv2: Subaru Forester 2020

* missing FW

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cd3a72e8f3039eb6780d2ba6812b82fdfde51793
2023-04-10 20:03:21 -07:00
seven121-ym 85f946795e Subaru: add FW for 2019 Subaru Impreza (#27771)
* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Add missing engine

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 61e718fe5fc270603462cea7fd7ece462802b7b6
2023-04-03 13:40:02 -07:00
martinl dee1d69ec0 Subaru: Add 2019 Forester FPv2 (#27500)
* Subaru: Add 2019 Forester FPv2

* Update selfdrive/car/subaru/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 0d1e272b917b8c1a98453bbe78337a42cd8451fe
2023-03-16 14:32:22 -07:00
N0VA-DKW a17d236354 Subaru: add Crosstrek 2022 FW versions (#27222)
* Update values.py

* Revert "Update values.py"

This reverts commit cd9f841c7a97ca800564605e68ea15d611abb3bc.

* do clean up later

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cb0522379d85cdf41cdb8ebd11b9119a0b7a364e
2023-02-09 14:16:07 -08:00
martinl cf8e7578f8 Subaru: add missing fw values for 2023 Crosstrek Limited (#26678)
* Add FPv2: 2023 Crosstrek Limited / @JWynegar

* update docs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 10085d1e3f61b472c4f25cd3e98d5ee83b40d4eb
2022-12-02 15:35:44 -08:00
martinl 94e14da8aa Add FPv2: 2022 Subaru Outback Wilderness (#26540)
Add FPv2: 2022 Outback Wilderness / @valtou
old-commit-hash: 62ad278829bbe7e6756f4bb3c44386e9c85d731c
2022-11-21 15:34:20 -08:00
brownspaceman 3a02dc4557 Subaru: add missing engine FW for 2019 Impreza (#26385)
added fw for 2019 subaru impreza
old-commit-hash: ea813a9a7dd1457899d5c1fe5ac67449c674eb0f
2022-11-07 16:48:54 -08:00
Shane Smiskol 346c543ad6 Subaru: Add missing FW for 2021 Legacy (#25914)
Add missing 2021 Legacy FW from 9936b4bbf75a5fe4|2022-09-26--20-29-47
old-commit-hash: 685533a3a121b3cc50e8a0b6402547999d86829b
2022-09-28 14:06:34 -07:00
Brandon Bennett 0c480f7b3a Subaru: Add missing 2020 Ascent f/w (#25725)
* add missing ascent fw version

Ascent had recall service for transmission ecu. New values added.

* Update selfdrive/car/subaru/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 56b05d55eb99657595c5bc47c39fb393fb889f64
2022-09-12 22:24:11 -07:00
Shane Smiskol ae77b7edc7 FPv2: move car-specific configuration into interfaces (#25711)
* Add VMCU address for EV6

* Rename vmcu

* add to tests

add to tests

* rename to more generic name

* more explicit

* remove print

* Like this much better, removes subtle fingerprinting problems

* clean up

* add test and clean up

* remove hyundai stuffs

* global

* Fpv2Config class

* fix missing fw versions from import order

* unused

* revert for now

* test for fpv2 configs with subtests

* subtests don't work that way

* do toyota as an example

* revert

revert

* do chrysler

* do rest

* stash

* much smaller of a diff than the alternative

* remove unused test

* fix tests

* remove brand from Request

* Make StandardQueries class

* add missing_ecus

clean up

* rename file

* unused

* test implemented

* add comment and rename

add comment and rename

add comment and rename

* should be impossible now

* this is a fixme

* rename to fw_query

* rename this too

* and this

* move vin queries to class

* order

* can use p16!

* formatting

* whoops, this wasn't gated on not len(found_versions)

* make this clear

* Standardize manufacturer software version query
old-commit-hash: 0ef6bb48df63fa07609c170b61584a1d3ef8c320
2022-09-09 16:24:29 -07:00
Cameron Clough 2347e913a0 rename esp ECU to abs (#25640)
* rename esp ecu to abs

* bump cereal
old-commit-hash: e9c87daef6534906c728da9a191866926bbfbfe4
2022-09-07 14:25:57 -07:00
Justin Newberry a333729bc8 Subaru Legacy 22 fingerprint (#25665)
old-commit-hash: 98484697cb66aa7863f509ef36bef0e51dd96b32
2022-09-05 13:24:17 -07:00
Adeeb Shihadeh 2865664679 Subaru: Legacy 2020-22 support (#25313)
* Subaru: Legacy 2020 support

* clean that up

* force for now

* update years

* test route
old-commit-hash: a21780dbeac42de6e4ab153ed29cd48b41d7f521
2022-08-18 09:02:33 -07:00
Shane Smiskol 40b1ba348b Subaru: add missing Impreza 2017 FW versions (#25424)
* this is from hyundai query

* These are also from Hyundai

* Add missing FW versions from 5c3a4dc9bd0b2eaa|2022-08-12--18-01-46

* more FW
old-commit-hash: 5f5d944368ea933f634953f63fabde52d773ae3b
2022-08-12 19:53:44 -07:00
Adeeb Shihadeh e5130eeb29 Subaru: new harness is on the shop (#25406)
* Subaru: new harness is on the shop

* subaru a
old-commit-hash: 96e8d5c9fe1a8084dfa5d97c78d4ea2037272420
2022-08-11 17:23:51 -07:00
martinl 41f75ed2a6 Subaru: Add missing Forester 2021 engine fw (#25322)
FPv2: Add Forester 2021 engine fw
old-commit-hash: 09800b623ee36686f44a7789519fcf26ed5a5efa
2022-08-01 14:32:42 -07:00