Commit Graph

578 Commits

Author SHA1 Message Date
Erich Moraga 49b8f1b470 Lexus: add several ECU versions for 2018 Lexus RC (#30322)
`OQO0#8618` 2018 Lexus RC  DongleID/route 01762a5235a24145|2023-10-24--17-44-27
old-commit-hash: b643aca8d6
2023-11-14 03:03:56 -08:00
Calvin Chui 31568c850a Toyota: Add Lexus GS F 2016 (#30245)
* added GSF ECU values

* Added Lexus GSF data

* added route for GSF

* test RC code

* revert fingerprints back from RC test to GSF

* fixed type for route

* specify route segment for GSF

* added GSF to torque substitute

* removed year designation for GSF

* added MY back to all "Lexus GSF"

* removed route, don't think it does anything

* move GSF ecu values to better place

* remove whitespace from toyota > interface.py

* added in public route for LEXUS_GSF

* added GSF to docs

* update test route

* update test route

* update 266 Supported cars

* trying different dbc

* updated to working route

* clean up

* add to releases

* updated test route

* new route

* docs

* slightly better torque params

---------

Co-authored-by: cchui <cchui@eogresources.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2647a4b4a9
2023-11-14 02:31:27 -08:00
Shane Smiskol 3ef2662007 Toyota: bump Camry model years to 2024
3d35748a8816ca62

old-commit-hash: 32a0b10983
2023-11-13 15:43:28 -08:00
JGO51810499 eb4e967d0d Add missing LEXUS_RX_TSS2 FW (#30301)
LEXUS RX 2020

dongle_id:b00aaa46833ddfa1
route_name:b00aaa46833ddfa1|2023-10-18--17-57-48--0
old-commit-hash: 446f57040f
2023-11-02 14:35:22 -07:00
Shane Smiskol 53c51a23f7 Toyota: combine rest of hybrid platforms (#30259)
* Highlander TSS2: merge

* Highlander TSS2: remove duplicate FW

* Highlander TSS2: merge torque params

* C-HR TSS2: merge

* Alphard TSS2: merge

* Avalon 2019: merge

* Avalon TSS2: merge

* Camry TSS2: merge

* Camry TSS-P: merge

* Camry TSS-P: remove duplicate FW

* RAV4 TSS 2022: merge

* RAV4 TSS 2023: merge

fix

* clean up tss2 car list

* fix from merge

* rename internal seg list platforms

* fix test
old-commit-hash: c626078e9d
2023-10-23 11:41:42 -07:00
Erich Moraga 2b025d2693 Toyota: add ABS ECU version for HIGHLANDERH_TSS2 (#30230)
* Toyota: add ABS ECU version for HIGHLANDERH_TSS2

`@doodoo6163` 2021 Highlander Hybrid Platinum 
 daae45a94e9e3ac6|2023-10-12--12-33-25

* sorted

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6e8301410c
2023-10-21 01:34:03 -07:00
systwo 70a6ecaf31 Toyota: Added missing Highlander Hybrid FW versions (#30255)
Added Highlander hybrid fingerprint values
old-commit-hash: 880afedbb8
2023-10-21 01:29:17 -07:00
Shane Smiskol 7ac9d44642 Lexus: enable fuzzy fingerprinting for ES & RX TSS2 (#30281)
* it's a freaking rx?!

* can unblacklist now!

* remove rest of FW from that PR

* Update selfdrive/car/toyota/values.py

* typing
old-commit-hash: 28a778b677
2023-10-19 05:02:08 -07:00
Mars a2fc9f0301 Add missing COROLLA_TSS2 engine (#30267)
* Add missing COROLLA_TSS2 engine

* Missing abs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ec30897912
2023-10-17 01:10:51 -07:00
Shane Smiskol 2cf913c407 Toyota: parse FW versions for more reliable fuzzy fingerprinting (#28641)
* add test from hyundai

* found tss2

* abs and engine are very rarely shared (avalonh tss2 and camryh tss2 is one example)

* some bad regex

* some pattern work

* some work

* .

* some conceptual clean up

* fix short fw pattern

* hyundai test

* clean up values.py a bit

* print platform codes

* hyundai fuzzy

* pass test

* move around constants

* clean up

* clean up hyundai

* fix print

* more clean up, fix med pattern

* add documentation

* use major version

* some clean up from merge

* some clean up from merge 2

* spot check

* clean up imports

* missing FW_QUERY_CONFIG

* short version: always prefixed with 3, get real platform code

* limit to max chunks seen (3)

* rm engine

* fix that

* get_platform_codes returns dict

* tests

* comments

* fix test

* enable a test

* fix script

* print ecu parts

* enable old test

* clean up some tests

* clean up

* more clean up

* static

* this is all it took?

* add note

* ...

* use less ECUs

* bump

* todo

* clean up fuzzy fp function

* make deterministic in a feat of engineering

* add temp exclude_fw argument for testing

* fix logic

* add blacklist

* add platform and its matches

* fix for nb

* remove fw exclusion

* Revert "remove fw exclusion"

This reverts commit 0e3b47c5a30ebdb647caf5d792b10f517cbdf48f.

* clean up

* Revert "Revert "remove fw exclusion""

This reverts commit 42c55f006a4a0596ff404c67db1a88eb64b45d9e.

* these two have similar chassis according to wikipedia (but mass is relatively different)

* Revert "Revert "Revert "remove fw exclusion"""

This reverts commit 0f874233422d2007cc87bfb1c714cabed6e80049.

* Revert "Revert "Revert "Revert "remove fw exclusion""""

This reverts commit 2411967f5a2b0712773d614ee589321cca4d52a5.

* oof

* shadows global variable

* rm comment
old-commit-hash: c14b765623
2023-10-07 18:09:52 -07:00
fpjuojyv810059 1b0bb4eeb8 Lexus: add missing FW for Lexus ES 2024 (#30198)
* Lexus: add missing FW for Lexus ES 2024

* already here

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 62e812f4e1
2023-10-07 07:12:12 -07:00
Hiroshi Nomiyama c18424486c Lexus: add 2023 RX hybrid firmware (#30193)
* Update values.py

* Update values.py

* add FW (camera already here!)

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: a8c37ba29b
2023-10-07 07:06:52 -07:00
Shane Smiskol 34ad81a239 Toyota: combine similar TSS2 hybrid platforms (#30194)
* combine corolla

* corolla tss2: remove duplicates

* remove gas pedal hybrid signal

* combine RX TSS2

* we only split for static DSU msgs, or sng differences

* Combine NX TSS2

* remove nb

* Combine ES TSS2

* Combine RAV4 TSS2 (torque params for each EPS variant are similar enough, and eps and fwdcamera all are identical)

* Merge TSS-P Lexus NX

* TSS-P Lexus NX: remove duplicates

* TSS-P C-HR: merge

* TSS-P C-HR: remove duplicates

* fix routes

* re-did everything: no diff 🎉

* update test models seg list

* Update ref_commit
old-commit-hash: 3cd0e392eb
2023-10-07 01:26:49 -07:00
Shane Smiskol 4fab2c99e1 Toyota: add missing engine FW for TSS-P Camry Hybrid (#30177)
* missing FW for 2ed432126627c66a

* dups

* dups
old-commit-hash: ed0f506359
2023-10-05 01:24:05 -07:00
Shane Smiskol 7f47888dd9 Toyota: whitelist hybrid ECU (#30110)
0x7e2: OBD query, 0x7d2: UDS query
old-commit-hash: c003048269
2023-10-03 03:30:32 -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: 6ae465e4af
2023-09-30 17:15:34 -07:00
Erich Moraga 3ec9047145 Toyota: add several ECU versions for 2023 Toyota RAV4 Hybrid (#30111)
`joshtheplumber` 2023 Toyota RAV4 Hybrid  DongleID/route a493a1ab8ea51c2a|2023-09-29--23-51-04
old-commit-hash: ca5a317a50
2023-09-29 20:35:26 -07:00
Shane Smiskol 5bbab4b141 Toyota: add missing FW for ICE RAV4 2023
old-commit-hash: a067f86320
2023-09-29 20:16:57 -07:00
Shane Smiskol a23976451b Toyota docs: expand Camry Hybrid years to 2024 (#30098)
we've seen a 2024 camryh

1de6c58d0ee17682|2023-09-28--06-37-11--0
old-commit-hash: 5bf117ce29
2023-09-29 01:01:49 -07:00
Erich Moraga 2ae904e652 Car docs: add Lexus IS 2022 (#30055)
* Car docs: add Lexus IS 2022

https://github.com/commaai/openpilot/pull/30032 was actually a 2022, so updating documentation accordingly.

* docs.py gen'd CARS.md w/ 2022 Lexus IS update
old-commit-hash: 8fbf62a608
2023-09-26 01:33:25 -07:00
Erich Moraga 860ae4c02d Toyota: add several ECU versions for LEXUS_IS_TSS2 (#30032)
`@lawabidingcitizen#7036` 2023 Lexus IS350  DongleID/route 0a89412f77c48f02|2023-09-22--17-56-09
old-commit-hash: 9e64eabc3c
2023-09-25 12:24:23 -07:00
Nelson Chen 209d902d8c Lexus: add engine FW for Lexus NX 2020 (#30031)
New Engine

Example Routes:

* 4c7b96026712d831|2023-09-24--14-16-17
* 4c7b96026712d831|2023-09-23--18-32-11
old-commit-hash: ffeb9a93b7
2023-09-25 12:19:51 -07:00
Shane Smiskol e675c9381f Toyota: improve platform code understanding (#30015)
* return a dict where minor version is not in keys

* limit valid chunks to 3 (max seen)

* First short version character is always 3 (we were using wrong platform code)

* docs updates

* not here

* fixes for printing new platform code format

* ecu notes

* notes

* platform code tests

* no tuple

* can visualize the whole thing now

* make it clear there's no major versions

make it clear there's no major versions

* static analysis

* two minor versions

* fix

* not using dsu

* comment

* comment

* comment

* forgot this one
old-commit-hash: c3d0bf7b5e
2023-09-23 02:13:58 -07:00
Shane Smiskol ac0c7b01c8 Revert "Toyota: use torque control for Japanese-made 2023 RAV4" (#29978)
Revert "Toyota: use torque control for Japanese-made 2023 RAV4 (#29896)"

This reverts commit 41a0ddf58e17eefe1694cce013ce67213f644dc7.
old-commit-hash: b50a769ae9
2023-09-19 14:29:54 -07:00
Shane Smiskol 44d4f1f615 Toyota: use torque control for Japanese-made 2023 RAV4 (#29896)
* use torque for 2023 RAV4s that allow it

* FW

* better cmt

* better

* better values comment

* switch

* add torque params

* simpler

* better to use steerControlType

* ???

* fix condition

* adjust params

* pid is only for old cars

* add comment

* move comment up

* one if

fix

* invert

* better comment

* better here

* for

* add torque hybrid test route

* fix condition

* this might be simpler

* back to one if

fix

* better name

* other way

* this reads so much better

* last change

* better

* did i break ci?
old-commit-hash: 9dfd0579d4
2023-09-14 14:48:12 -07:00
Shane Smiskol 5cc2baeb4d Toyota: get platform codes & docs (#29853)
* add get_platform_codes function

* add print_platform_codes.py

* add test

* not optional

* constant

* remove optional

* more
old-commit-hash: 06233ca331
2023-09-09 19:48:44 -07:00
Erich Moraga 01a8a30fe8 Toyota: add engine & fwdRadar ECU versions for 2023 Toyota Camry Hybrid (#29508)
`@Varvaras` 2023 Toyota Camry Hybrid  Dongle ID/route 3a47f2dd831feb30|2023-08-20--19-41-21
old-commit-hash: ba1ad422d7
2023-08-23 17:37:38 -07:00
Shane Smiskol 3527b47f6d Toyota: prepare to disable radar (#29542)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* bump to master

* revert to master

* comments only

* correct check

* carcontroller

* something like this

* or this

* use flag

* send PCS HUD

* clean up

* carstate checks

* fix from test models

* consistent
old-commit-hash: 0aa6e2ce41
2023-08-22 21:17:30 -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: a9626f95b6
2023-08-20 20:49:55 -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: cf64b27168
2023-08-08 17:13:35 -07:00
LC 3489b482f1 Toyota: Lexus IS 2023 port (#29257)
* added LEXUS_IS_TSS2 to values.py

* added LEXUS_IS_TSS2 to interface.py

* Apply suggestions from code review

* add torque params

* add test route

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5ace930c5c
2023-08-08 16:34:37 -07:00
Shane Smiskol 22187ad0fe Toyota: rename Toyota A harness (#29269)
* add toyota b harness

* not used yet
old-commit-hash: 8d3e661f79
2023-08-07 15:31:50 -07:00
Tenebrous fcef654a2b Toyota: add missing C-HR Hybrid 2020 (UK) FW (#29223)
old-commit-hash: c438f2ba17
2023-08-03 15:05:10 +01:00
Erich Moraga 71941061c1 Toyota: add fwdCamera ECU version for 2022 Lexus RX Hybrid (#29060)
old-commit-hash: 1776c16f9a
2023-07-24 17:49:20 +01:00
Shane Smiskol 71ebb6fd03 Toyota: add hybrid ECU FW versions for 2023 RAV4 Hybrid (#29023)
* add hybrid FW for a2c30de116fe186d

* add hybrid FW for 60b363805ee9fc06

* add hybrid FW for 5b05f9d3f9574132 & 459707e5f696e897

* remove from extra_ecus, we can't conditionally mark not logging

* add likely protocols
old-commit-hash: 527d13ad67
2023-07-18 23:04:55 -07:00
Matt Barclay e2b1c4d2fb Update Toyota RAV4H_TSS2_2023 Fingerprint (#28891)
Added eps value for japan built RAV4H 2023
old-commit-hash: b56aabb74e
2023-07-11 14:51:33 -07:00
Shane Smiskol 14a4aaebbd Toyota: add missing FW for 2023 RAV4 Hybrid (#28861)
fw
old-commit-hash: ada6d844d4
2023-07-10 02:28:35 -07:00
Shane Smiskol f8d9dbff5d Toyota LTA: lower angle rate limits (#28847)
* lower limits a bit (matches ford and less wind up since Toyota EPS limits to 2 m/s up)

* revert down limits, up was too high
old-commit-hash: 221bbfe95e
2023-07-07 23:06:11 -07:00
Shane Smiskol 2e320bae33 Toyota: add missing engine FW for 2023 RAV4 Hybrid (#28844)
add missing fw from 459707e5f696e897|2023-06-30--17-07-25
old-commit-hash: 3502971467
2023-07-07 15:39:19 -07:00
HNR001 81c72acb4e Toyota: add FW for Prius Plug-In MY2022 (#27420)
Update values.py

Add missing FW for Toyota Prius Plug-In EUDM MY2022
old-commit-hash: a50e7fa60a
2023-07-07 02:27:25 -07:00
bashiromar1795 2f56c54602 Lexus: add missing FW for UX Hybrid 2023 (#28766)
* Update values.py

* Revert "Update values.py"

This reverts commit e2293bee861fa2eb00e6c2ffd2c69d913c2165cd.

* add missing FW versions for uxh 2023

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ea5a0e2450
2023-07-05 11:08:18 -07:00
Shane Smiskol 7f406a5ca8 Toyota: add documentation about KWP queries (#28739)
* bump cereal

* more queries (to see the new time)

* fix

* not sure what i want this to do yet

not sure what i want this to do yet

* no body

* no body

* add test

* spacing

* bodyless

* add documentation

* cmt

* cmt

* 1a

* oof

* just the comments

* revert

* ?
old-commit-hash: bdd778592d
2023-06-28 22:32:59 -07:00
Shane Smiskol a5080e07d6 Toyota: set and limit angle for LTA control (#28735)
* log angle

* comments

* apply limits + comments

* fix

* remove old comment

* flip order
old-commit-hash: 1eee26931d
2023-06-28 20:23:16 -07:00
Maxime Desroches 585921ffad car: use default_factory for mutable fields in dataclasses (#28669)
* call me

* copy
old-commit-hash: e85acfa365
2023-06-27 16:48:43 -07:00
Erich Moraga ca704d8fc9 Toyota: add missing CAR.CAMRY engine f/w (#28679)
`@natey_af` 2019 Camry (ICE)  DongleID|route e308e578239ae93e|2023-06-24--10-30-22
old-commit-hash: a58272cf59
2023-06-26 14:59:39 -07:00
Shane Smiskol bd874a4053 Lexus: add missing NX 300H 2021 FW (#28678)
* add missing FW

* rm line
old-commit-hash: e171364601
2023-06-25 20:12:28 -07:00
Shane Smiskol d3f0f1ef30 Toyota: more ECU documentation (#28674)
* more comments

* only

* by

* it exists, just doesn't respond
old-commit-hash: a763712779
2023-06-24 04:36:30 -07:00
Shane Smiskol eb3da44bf3 Toyota: add alternate hybrid control ECU (#28671)
add alt address for hybrid control
old-commit-hash: 0ae5e9dd50
2023-06-24 00:42:02 -07:00
Shane Smiskol 0776d4b05d Toyota: add HVAC ECU (#28670)
add comment for 2nd abs, could be missing one from non_essential_ecu cars
old-commit-hash: 1b3965a0c4
2023-06-23 22:42:23 -07:00
Shane Smiskol 204fd75347 Toyota: add ECU comments (#28667)
* add some comments about toyota ecus

* updates

* revert that

* update comms

* just move
old-commit-hash: 613128062e
2023-06-23 22:29:43 -07:00