Commit Graph

1567 Commits

Author SHA1 Message Date
Cameron Clough 3c5d9689fc Ford: disable radar for now (#24832)
The newer Ford vehicles require a different radar parser.
old-commit-hash: 3f60088f432f0bf8e7805cdb2223817c249ec7fa
2022-06-12 09:27:46 -07:00
Adeeb Shihadeh 3c48bc47b7 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
old-commit-hash: 0fce5d90459b77bf2cfa70f55f322f0e1fb8d01c
2022-06-11 23:19:27 -07:00
Shane Smiskol 1c748eb9ac Honda carcontroller and signal cleanup (#24806)
* common signals

* move stopping

* space

* clean up

* bump opendbc
old-commit-hash: e3750877202a072e884ad0fb88709b23226c3a59
2022-06-11 00:14:58 -07:00
HaraldSchafer bc679f735d Misc torque control fixes (#24801)
* Fiction compensation should be based on error

* Update refs

* Add deadzone

* update ref
old-commit-hash: 843e59f6f0be33e6c51a35ef8912f5b7c4b58ca5
2022-06-10 22:52:48 -07:00
Shane Smiskol 158d3224b4 compatibility docs: auto-generate star descriptions (#24809)
* Auto-generate star descriptions

* Need this for the website

* And this

* required changes to make the website generation work

* better names

* Revert "better names"

This reverts commit be7dbbb5d846d7d55a1ad69533945e6a6c8a0b7c.

* simpler
old-commit-hash: 88a100435f1da9bf061b360e8a5cd02e414d6e8b
2022-06-10 22:52:34 -07:00
AlexandreSato 42327f3431 Fix Lexus NX Hybrid 2020 engine ecu (#24817)
Wrong address in engine ecu.
old-commit-hash: f398b3efc92f59f407379d38ead0f99bf814b95c
2022-06-10 18:45:32 -07:00
HaraldSchafer f7edd5f3d3 Car interface: set max lateral torque from table (#24789)
* json

* better naem

* Read from table

* formatting and default to nan

* Generate docs

* Read from table

* this should be the same

* Prius v is full

* test we always set the tunes correctly

add to release files

* Set for all cars

Set for all cars

* Revert tuning changes

Revert tuning changes

* remove that

* fixes

* update ref commit for new maxLateralAccels

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3066ad81a8b2f89a22ddfc86a879395c573ce0f5
2022-06-10 17:57:23 -07:00
Shane Smiskol 6cb8cacea6 Add missing fw versions for 2019 Sonata (#24814)
old-commit-hash: 6618d2bebee9a1fc5a0ee5d5a9b2764403865281
2022-06-10 16:18:31 -07:00
Shane Smiskol 2c094c5784 Honda: use common imperial unit message (#24786)
* CAR_SPEED should be on all cars

* bump opendbc

* clean this up too

* it's an or

* clean up

* comment
old-commit-hash: 60aa553b8c0d8323f276b102ce359262e639861b
2022-06-09 20:56:05 -07:00
Adeeb Shihadeh 25b55d4b98 bypass HDA2 dashcam with file (#24803)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 53724e8b6cbcfc6c9d49ebd0834624fa23d0f6e9
2022-06-09 19:29:54 -07:00
Shane Smiskol 68e8173474 docs: adjust steering torque thresholds (#24798)
* Prius has good steering control now

* 1.5 is the threshold for good torque

* get back down there, hondas

* half stars for 1.0-1.5

* show number of cars

* try bigger

* emphasize tiers

balanced

* Add half star

* Update ref_commit
old-commit-hash: 1b402687e4bb7146a9aa0c92d8b5062ce53aeb22
2022-06-09 18:51:34 -07:00
Shane Smiskol cc9e67d5ac Hyundai: Tucson 2021 support (#24791)
* add support for 2021 Hyundai Tucson

base configuration and fingerprints

* fix fcw again and don't use mando radar for tucson

* last fixes for working tucson

* Apply suggestions from code review

* add to cars

* increase steerRatio

* missing car info

* one platform

* rename

* add min enable speed

* update releases

Co-authored-by: bluesforte <harry3b9@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 47f80e7add8635e2d80a395f72906cd40c956459
2022-06-09 17:44:58 -07:00
Griffin Christenson 043f5efcb9 Toyota: Add missing esp fw version for RAV4_TSS2 (#24793)
add fwVersion for RAV4_TSS2

add b'\x01F15260R302\x00\x00\x00\x00\x00\x00' to list of Ecu.esp FwVersions for RAV4_TSS2
old-commit-hash: 1fe582686f5446631fa2c87a1c45dcb8f24fdc5e
2022-06-09 16:34:05 -07:00
George Hotz cc71e68aee EyeSight standard on all 2019+ Ascent and Forester (#24799)
* on all 2019+ Ascent Forester

* update docs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8c101c61a82f4b72939bcae7cc7a651ac8fc6fed
2022-06-09 15:11:32 -07:00
AlexandreSato db9d0e3bd6 Lexus: NX Hybrid 2020 support (#24796)
* LEXUS: Missing esp and engine FW versions in values.py

DongleId: 09ae96064ed85a14  | testRoute: 09ae96064ed85a14|2022-01-10--01-57-37 |

* Make a new platform for NX Hybrid TSS2

* Update releases

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 074f614f880fa85a56596cd2917c07d8f39961f1
2022-06-09 12:01:31 -07:00
Erich Moraga c081690ad1 Add missing CHR engine f/w (#24797)
`@papifrio#5178` 2019 Toyota C-HR ICE ("nodsu" TSS-P) DongleID/route ade67da77ee74b16|2022-06-09--00-36-15
old-commit-hash: 2d0a72a0e837457e5e93dda143e5909889cb03f5
2022-06-09 11:07:17 -07:00
Jason Young 4f6142690f VW MQB: Add FW for 2020 Volkswagen Tiguan (#24795)
old-commit-hash: b0f6a8bdf78e3be3bd698ccda3477c6adb2cd270
2022-06-09 10:08:23 -07:00
Erich Moraga 707c51c957 Add missing MIRAI ESP f/w (#24779)
* Add missing ESP f/w 

`@JaySheikh#7759`  2021 Mirai  DongleID/route b2c2b20082938bed|2022-06-08--05-04-03  [confirmed working]

* formatting

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c8db61a3c7aba6f96c9f282f4984c84fd6550f62
2022-06-07 22:47:10 -07:00
Shane Smiskol ff20b5955f Kia Ceed: fix eps ECU type (#24767)
should be eps
old-commit-hash: abef7ca32cac34fd15cb17e1fafb96e961486ba3
2022-06-07 22:43:09 -07:00
Jason Young 99c8bd117f VW MQB: Add FW for 2020 Volkswagen Tiguan (#24777)
old-commit-hash: ce6b8f6a461d864d52ef8c6a00466d951aecbdd6
2022-06-07 21:57:15 -07:00
Shane Smiskol fa9528e119 IsoTpParallelQuery: handle response pending (#24724)
* handle response pending

* match commit

* remove total timeout, just keep track of individual response timeouts

* fix

* add back total timeout

* this isn't reliable enough

* keep track of pending responses to print warning

* tx_addr is (addr, subaddr)

* debug

only query hyundai

import time

reponse pending

no cache

all cars

no timeout to test before

* Revert "debug"

This reverts commit abe9cfc1b668034d7fa5ca5cbe9efe8834db3e7b.

* always print pending

always debug

* Only debug

* Update selfdrive/car/isotp_parallel_query.py

* remove variable only for debugging
old-commit-hash: 30e1f282134f7693a451e783b1d2d8ee68a79c06
2022-06-07 17:49:07 -07:00
Jason Shuler f392d45f41 GM: interface cleanup (#24774)
* Move all defaults above models

* Remove reduntant/defaults

* make minEnableSpeed common

* Update selfdrive/car/gm/interface.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b95c449847da37809ab3cd9a582cd910a612a1cf
2022-06-07 17:23:08 -07:00
Shane Smiskol 8fd06495b8 Honda: rename Bosch harness to Bosch A
old-commit-hash: bdc05fd13cdbdb4879fbadf5d5262bd8236b3243
2022-06-07 17:18:03 -07:00
Jason Young d22347a9c6 VW MQB: Add FW for 2019 Volkswagen Passat (#24753)
old-commit-hash: 2a2294662cbea2962a3da1ddcd7030918ed52dee
2022-06-03 23:59:55 -07:00
Shane Smiskol 41f9767370 FPv2: add ECU whitelisting support (#24730)
* reduce fw queries for hyundai

* no whitelisting yet

* formatting

* fix

* clean up test

* clean up variables, comments, error

* update error
old-commit-hash: 29a1bf5a4667de9de74e977956145132b2301fd7
2022-06-03 20:16:11 -07:00
Shane Smiskol 1a2bf8412c Car documentation: set steering torque star using car interface (#24709)
* Set good torque using torque controller tuning

* should be equal to

* save lateral accel to car params

* use maxLateralAccel

* always

* same convention

* nan will always evaluate to false

* The great good torque purge

* adjust default friction

* Add data for more cars

* adjust name

* Welcome back, guys. Only adjust good torque if maxLatAccel is set

* Update refs (1.7 is 1.7000001...)
old-commit-hash: c6bc03311c04bec31677170782d5f3e1f404c2a7
2022-06-03 17:41:20 -07:00
Shane Smiskol f9772e624b FPv2: log query request and response address (#24733)
* log fw query response offset

* one line still

* log request bytes as well

* bump cereal

* prettier order

* bump cereal

* I wonder if the radar sends a response pending...

debug

dont cache

fix

debug

* Revert "I wonder if the radar sends a response pending..."

This reverts commit 12a9552c27ac427c161c27f916fb4fd1a8e4b44c.

* log addr too

* bump cereal
old-commit-hash: 124f3f02d5c14048e5698353201950f89ce2b318
2022-06-03 12:05:13 -07:00
Shane Smiskol c0c0250077 Common interface attribute function (#24731)
* replace get_attr_from_cars with get_interface_attr

* and not combining the brands

* explicit check

* minimize diff

* values
old-commit-hash: 3fbbb7f4b0c0cf7273f37e4abae409ec82f7dde5
2022-06-03 04:16:39 -07:00
Shane Smiskol 3ba40da00a Honda: fix enabling before PCM (#24715)
* Don't enable for pcmCruise Honda

* make it a no entry as well

* do in another PR
old-commit-hash: 40deea7d7bdd2176f897c203657e45bfd7fd1fcc
2022-06-02 22:06:01 -07:00
Adeeb Shihadeh 2163c6bf2d handle bad VIN (#24712)
old-commit-hash: 36fdf50f98b59da2aeb32a9000113ca3cc4a6616
2022-06-02 22:01:37 -07:00
Shane Smiskol 5f1990aa05 test_models: support for running on any route (#24002)
* run test_models on route

* clean up a bit

clean up a bit

clean up a bit

* remove

remove

* make route positional

* fixes from merge

* not working as I expected

* finally working, easiest way seems to make a new subclass dynamically

* bring back routes

* remove comments

* revert skiptest

* fix subclass name

* car first

* this should be here...

* this should work

* comment

* pytest doesn't support dynamically loading with load_tests

* minimize test_models.py diff, and make new file for running on a route

* fix static analysis

* remove print

* clean up a tiny bit

* rename and make required

* auto detect car fingerprint if not given

* move to location that makes more sense

* Add ci argument for running route from routes.py
old-commit-hash: e5b189416d756c1b4f364c6f01b30d97b62710a5
2022-06-02 17:23:05 -07:00
Willem Melching 86ec883c1a correctly parse UDS VIN response for Honda Bosch (#24710)
old-commit-hash: dc2172b55e1e848476eceb014d8e3eea82c7eb5a
2022-06-02 12:20:56 +02:00
Shane Smiskol 7a2d0b64eb Hyundai longitudinal: handle mid-press button change (#24674)
* send additional button event for previous if we switch buttons mid-press

* add comment

* remove

* comment
old-commit-hash: dd10a83708a17b04fb9b217c7fee4234b8ed7dfe
2022-06-02 01:27:34 -07:00
Jason Wen 055bce8ebd Hyundai: Add missing engine and transmission FW for 2022 Sonata (#24693)
* Hyundai: Add FW for 2022 Sonata

* fix duplicate

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b1177a325a1c7cf604c174b60b5ea2abaab86537
2022-06-01 13:54:15 -07:00
Adeeb Shihadeh 8d3dbf7312 Add UDS VIN query (#24311)
* Switch to UDS VIN query

* try both

* fall back to obd
old-commit-hash: 7d2ba9b0a43d6c7cfe463968b9fc0c2b6557b00b
2022-06-01 13:29:22 -07:00
Shane Smiskol ddf2d5b63c Button-enable cars: common functions for button events (#24678)
* function for creating button events

* fix

* one line

* alphabetical

alphabetical

* only needed once

* common function for enable events

* add to list

* extend

* fixes

* add type hints

* flip around
old-commit-hash: eed6803ccc55ecbfab4bd52a7ea62c9942243aea
2022-06-01 12:03:34 -07:00
Shane Smiskol f09e5a1d10 fingerprinting: bump CAN fingerprinting time and drain socket (#24694)
* add debugging script

* debug

* remove

* add comment

* timestamp CAN fingerprinting (to get time needed to wait for radar)

* comment

* need this to log

* just in case, log first can packet logMonoTime

* clean up

* clean up

* bump fingerprint time to 250ms

bump fingerprint time to 250ms

* comment
old-commit-hash: 80be66484f4af84bd315f3e64aec22c2f74eb2fc
2022-05-31 22:10:11 -07:00
Erich Moraga 6746efe1a6 Toyota: Add missing HIGHLANDER_TSS2 FW versions (#24684)
`@HEADMAN#4924` 2022 Highlander Platinum (ICE)  DongleID/route 427976ba75953bf3|2022-05-30--16-28-27
old-commit-hash: dde05d53450f938ed62c32f7151664b9ccf67924
2022-05-31 13:47:08 -07:00
AlexandreSato 09e3a80f29 Toyota: add missing engine FW version for 2022 Corolla (#24682)
From dongle id 6444d42c9eba0145 | Test route: 6444d42c9eba0145|2022-05-29--10-44-07--0 | User: geraldoy#7013
old-commit-hash: 6bd14b86982f9a2b191b9bd5d4b82035d64d64bc
2022-05-31 10:38:10 -07:00
Shane Smiskol 2dce8e97c8 Toyota: add missing engine FW version for 2022 RAV4 Hybrid (#24677)
add missing fw version
old-commit-hash: 8eb9e8fc1a94013a60b0e69f7817b1c491cb1a33
2022-05-29 20:59:58 -07:00
Shane Smiskol b2196a160f Hyundai longitudinal: display lead on HUD (#24667)
* use leadVisible

* add comment
old-commit-hash: 5c5bb0be1197408ade793b49d731571ba831283a
2022-05-27 18:12:18 -07:00
ntegan1 44ae448563 TSS-P Corolla: use torque lateral control (#24291)
use torque controller for tssp corolla

Co-authored-by: ntegan <nick.egan.gg>
old-commit-hash: 7115f1f7c8e43a4e97fcb7bfb51f84b45eaedc6f
2022-05-27 15:11:16 -07:00
BoBowchan dd31e31181 HKG: add missing fwdRadar for Kia Niro EV 2022 (#24665)
Co-authored-by: Bohan Li <bohan.li@yellowbrick.com>
old-commit-hash: 2c2e0ae8a770e2cb648111624a86f0e307d52bb3
2022-05-27 15:04:06 -07:00
ctidder2 aee5c1579f Toyota: Add missing Highlander Hybrid TSS2 fwdRadar and fwdCamera (#24664)
old-commit-hash: 1c3446a0dc5927a64000bc5610547cb485f569c3
2022-05-27 15:02:20 -07:00
HaraldSchafer f5a6a6dc77 Tssp prius torque control (#24669)
* use llk

* use steering sensor at low speed stil

* Try more simple

* rm prius tune

* updated ref
old-commit-hash: d708a134bdff9db5cc65491dd9129a709e30ad34
2022-05-27 10:21:02 -07:00
Jason Young 789c9dbefa VW MQB: Add FW for 2015 Volkswagen Passat (#24653)
old-commit-hash: f414f7ff4e6b5017e42f6e7ac5286c02b99e51cb
2022-05-25 11:57:26 -07:00
HaraldSchafer 39886246c9 Rerevert torque control (#24649)
* Revert "Revert torque control (#24565)"

This reverts commit 93f434d047a92366c4ccefeece86fe101ed98d02.

* Move tune out of car specific stuff

* Update ref commit
old-commit-hash: d9289721503976cd99ac90216c502a841988c1a6
2022-05-24 17:52:33 -07:00
Lee Jong Mun 12a2565ebb Hyundai: small car state cleanup (#24643)
* fix typo

* Update selfdrive/car/hyundai/carstate.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4c7cb028b1ae05ea20e5fc7ca3a2bda96fcdf9f4
2022-05-24 15:37:02 -07:00
Erich Moraga 5c76a32790 Add missing LEXUS_RXH_TSS2 engine & ESP f/w (#24647)
`AiNzo0alGowN_#8859` 2020 RX450 HL  DongleID/route f6e6302176e041de|2022-05-24--13-48-18
old-commit-hash: 1d41d3e36173dfe6206d62430b48adc26d638546
2022-05-24 15:17:31 -07:00
stephenkwo 97bb8e2702 Docs: add video link for 2022 Toyota RAV4 Hybrid (#24622)
Docs: add video link for 2022 Toyota RAV4 Hybrid

CAR.RAV4H_TSS2_2022: ToyotaCarInfo("Toyota RAV4 Hybrid 2022", video_link="https://youtu.be/U0nH9cnrFB0"),
old-commit-hash: 9a98a0853a825c0eff03ab6d59948b354c2ff7e9
2022-05-24 10:40:44 -07:00