Commit Graph

1318 Commits

Author SHA1 Message Date
haram-KONA
0926c269af Hyundai: fix wheelbase and steeringratio for Kona, Kona HEV , Kona EV (#24464)
* Update interface.py

* Update interface.py

* Update selfdrive/car/hyundai/interface.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 15:16:36 +02:00
Dylan Herman
d2eef1955c add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 14:59:00 +02:00
grekiki
17e33978cd Mypy fixes for --check-untyped-defs (#24372)
more type fixes
2022-05-12 14:08:11 +02:00
cydia2020
3f5afa158a Toyota: correct weight for the Prius V (#24499)
* correct weight for the Prius V 

https://www.toyotacertified.com/content/dam/tcuv/sections/brochures/en/prius-v/2017_priusv_ebrochure.pdf

* Remove comment

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

* Extra whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-05-11 21:02:47 -07:00
Shane Smiskol
433fcc0c71 CarInfo: Add harness information (#24085)
* Add harness information

* test harness enum

* add harness info for tucson

* update Tucson harness

* get rid of development

* make global enum

* fix

* add harness info

* add harness info to CARS.md (since we need multiple lines per HKG platform)

* revert this

* Actively Maintained means something! (aka, to bronze with select VW)

* fix caravelle

* add harness tooltip on maintained column

fix

* lol tubaru

* always assume harness

* update honda harnesses

* add Ioniq hybrid 2017-19 harness, todo: not sure

* unused import

* hmm, did they really switch to the C for 1 year??

* add comment

* add comments

* adding tooltips should be fine

* fix santa fe harness

* welcome back, vw

* no need for two harness strings

* seems fine

* fix 19-20 Niro EV harness

* these were taking from old database, so assume correct

* could be d

* pass all car info into template

* no more tool tips

* these use j533 harnesses

* accidentally got removed in merge

* also merge issue

* don't need these

* make harness non-optional
2022-05-11 18:02:21 -07:00
Adeeb Shihadeh
685802b860 test car models: stricter radar CAN error check (#24497)
* test routes: stricter radar CAN error check

* bump opendbc

* bump again
2022-05-11 16:30:26 -07:00
Shane Smiskol
dabcfd266e car info: function that sorts all car info into tiers (#24498)
* base function that returns all car info sorted by make model

* don't need to pass it in quite yet
2022-05-11 15:59:08 -07:00
Shane Smiskol
f9af3ddf4c CARS.md: update Honda Ridgeline supported years (#24484)
* update supported ridgeline years

* update supported ridgeline years
2022-05-09 22:00:31 -07:00
Shane Smiskol
e2ada3b9a8 CARS.md: clicking stars doesn't change page location (#24482) 2022-05-09 20:29:58 -07:00
Shane Smiskol
ac1566b4c4 cars: move common car info to subclass (#24481)
* clean up values a bit and make HondaCarInfo for package

* also move min_steer_speed which had 12 occurrences

* odyssey has ALC down to 0

* do Nissan, Mazda, and Chrysler
2022-05-09 18:50:10 -07:00
Shane Smiskol
191fbd4f67 Camry TSS2: use torque controller (#24268)
* use measurements from harald

* update from table

* average of hybrid and non-hybrid
2022-05-07 21:34:17 -07:00
Shane Smiskol
ed41b14b55 Chrysler: reduce ACC faults when disengaging on gas (#24445) 2022-05-07 01:23:19 -07:00
Shane Smiskol
75efad52ea Chrysler: add ACC fault signal (#24398)
* add accFaulted event for Chrysler

* add the signal

* no class variables

* available when not 1

* revert

* bump opendbc to master

* if not 0
2022-05-07 01:00:43 -07:00
HaraldSchafer
29afd53d88 Latcontrol torque: fix integrator induced ping pong (#24458)
* Latcontrol torque: fix integrator induced ping pong

* Reset on disengage since unwind resets anywayh

* Might be overkill

* rm whitespace

* update ref
2022-05-06 22:17:21 -07:00
Shane Smiskol
c955e273d4 Toyota: fill steerFaultPermanent (#24410)
* Toyota: fill steerFaultPermanent

* same behavior as before, 0 is also fault (0 is most likely initializing)

* think this was just wrong (2 or 10 would mean we think it's a fault)
2022-05-06 16:56:40 -07:00
Left5566
4beb764aed Toyota: add missing Prius TSS2 engine FW (#24438)
Prius 2021  DongleID/route c3834a2fe82b632b|2022-05-05--19-39-41
2022-05-05 11:59:15 -07:00
Brandon Zimmerman
da74085d56 Toyota: add missing FW versions for 2022 Lexus ES 300h (#24431)
* Add 2022 Lexus ES Hybrid f/w - LEXUS_ESH_TSS2

2022 Lexus ES Hybrid

* change carinfo

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-05-05 11:20:53 -07:00
Shane Smiskol
6efb42613b Toyota: Add missing FW versions for RAV4 Hybrid 2022 (#24430) 2022-05-05 10:21:46 -07:00
Adeeb Shihadeh
986a991a09 body: log charging status (#24409)
* body: log charging status

* update refs
2022-05-03 13:27:19 -07:00
Shane Smiskol
3f0b06b16e Chrysler: clean up CarController (#24337)
* clean up

* max range is 15

* use wheel buttons counter and clean up

* no

* try spamming 10 times with next counter value

* try 50 hz

* this is dead code

* revert behavior changes, just clean up

* revert more

* also that

* no multiline can creation

* sort imports
2022-05-03 13:17:24 -07:00
Shane Smiskol
5b105facae Add ACC faulted status to carState (#24399)
* add accFaulted bool to carState

* same for VW

* remove import

* bump

* move to common

* bump cereal to master
2022-05-02 18:05:00 -07:00
HaraldSchafer
8cdeaf9aee Latcontrol torque: update tuning (#24357)
* Little more chill

* Update ref

* Update refs
2022-05-02 14:42:18 -07:00
Keyvan Fatehi
0bbfc63c9c body: add fuelGauge to body carState (#24386) 2022-05-01 18:41:50 -07:00
Shane Smiskol
24b5164ce6 Subaru: Add fwdCamera FW for 2018 Crosstrek (#24377) 2022-04-29 18:23:47 -07:00
Shane Smiskol
41f62f7604 Toyota: Add FW versions for RAV4 Hybrid 2022 (#24374) 2022-04-29 14:40:29 -07:00
Jason Young
1810909195 VW MQB: Add FW for 2019 Volkswagen Tiguan (#24373) 2022-04-29 10:25:34 -07:00
Shane Smiskol
c1caca104f Support RAV4 Hybrid 2022 with stock longitudinal (#23969)
* add panda flag for toyota stock long with camera

* clean up

* Add 2022 RAV4 Hybrid from Philly

* fix wrong fw in interface, did this ever work?

* Must be a hybrid

* no radar parsing

* fix can error

* move to own platform

* generate docs

* fix

* Add 2022 Rav4 XSE Australia fingerprint parameters (#24303)

* Update values.py

Add 2022 Rav4 XSE Australia

* add commas

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

* bump panda

* wait, the camera doesn't even send 0x343, right?

* use a set instead, more obvious

* don't test without a parser

* bump panda

* flip panda flag

* bump panda

* add commas

* regen and update refs

* set to none by default

* revert parenthesis

* update comment

* bump panda

* regen and update refs

* add test models and update readme

* bump to master

Co-authored-by: BrettLynch123 <34538435+BrettLynch123@users.noreply.github.com>
2022-04-28 22:37:46 -07:00
Shane Smiskol
a05487cdf5 Toyota: fill stockFcw signal (#24324)
* fill stockFcw

* only TSS2 car for now
2022-04-27 14:18:27 -07:00
Adeeb Shihadeh
3e098c9ba5 Toyota: add safety param flag for alt brake message (#24341)
* Toyota: add safety param flag for alt brake message

* update refs

* update refs

* bump panda
2022-04-27 12:08:11 -07:00
Jackson Smith
6e789fae70 Honda: Add FW for 2021 Honda Passport Elite (#24255) 2022-04-26 21:00:31 -07:00
martinl
df13b26971 Subaru: Add missing FW versions for Forester 2019 and Impreza 2020 (#24225)
* Add FPv2: Subaru Crosstrek 2020 Sport (Canada), a2af7643da1d4017|2022-04-14--12-00-31

* Add FPv2: 2021 Subaru Forester Sport, c2f528d49fe19d53|2022-04-13--20-11-17

* Add FPv2: 2020 Subaru Crosstrek Limited, 0f33f7a9d1949fa6|2022-04-13--14-44-02

* Update FPv2: 2019 Subaru Forester Sport, f6e178e18ba27ca1|2022-04-08--18-22-50

* Update FPv2: 2021 Subaru Forester Touring, 6fcb17b9ef924548|2022-04-14--05-37-28

* Add FPv2: 2019 Subaru Forester Limited, a447729c1d15ff89|2022-04-13--17-54-27

* Add fw for a2af7643da1d4017|2022-04-14--18-21-57 for IMPREZA SPORT 2020

* Add fw for a447729c1d15ff89|2021-12-27--15-35-46 for FORESTER 2019

* Add fw from c2f528d49fe19d53|2022-02-19--13-44-43 for FORESTER 2019

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-26 20:34:41 -07:00
Shane Smiskol
efa98d2a06 HKG: only allow engagement on user button press (#24140)
* use deque for prev_cruise_buttons

* stash

* disallow engagement if resume or decel isn't pressed

* fix buttons

* reduce chances of causing 30-frame fault

Fix clu11

drive down cancel times

* Revert "reduce chances of causing 30-frame fault"

This reverts commit 0f54c051bf5a22b1f584718ec46e78bc3a82a0dd.

* consider pause/resume button

* stash

* Revert "stash"

This reverts commit 551ca7be6c45729f0747abc81cd81894cd621c32.

* sadly some cars need 8 op frames (identical to 4 updates from CLU11)

* add main button

* 6 should be safe

* use max

* clean up

* change to 4 samples and process all messages received, like panda

* bump panda

* test: replay segments with known re-engagements on-device

* Revert "test: replay segments with known re-engagements on-device"

This reverts commit 9730c3c14f942b82b6ed5ef2e81b8ae0126f3006.

* need prev_cruise_buttons as we don't run every CAN message through carstate

* more generic

* extend

* Update selfdrive/car/interfaces.py

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

* 3% faster at 1000000 loops

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-26 13:27:28 -07:00
Jason Young
d0a6622342 VW MQB: Audi RS3 (#24329) 2022-04-25 21:06:23 -07:00
martinl
599b1ab3ff Subaru: remove A/C fw version (#24224)
* Subaru: remove A/C fw version

* add test to ensure the ecu isn't added again

* check CP.carName

* clean up

one line

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-25 16:41:34 -07:00
Erich Moraga
785a228f2b Add missing LEXUS_RX_TSS2 engine & fwdCamera f/w (#24309)
`@jackus1#7254` Lexus RX 350 2022 ICE  DongleID/route 02b50dc00776ca3c|2022-04-24--11-40-30
2022-04-24 11:08:39 -07:00
Azenzic
b5f65a587d Hyundai: remove mismatched video (#24307)
* Fingerprint for Kona EV 2021

update fingerprint to show support for Kona EV 2021 also the Kona EV 2021 uses the G harness ( the same as the 2019)
616f048bf31258b7|2022-04-23--20-38-39
616f048bf31258b7|2022-04-23--20-38-39--4
remove improper youtube link that show a Hyundai Elantra driving listed next to a Kona hybrid

* Update values.py

* Update values.py

fixed an open parentheses that could cause some issues added SCC+LFA requirement note on Kona EV

* Update CARS.md

add Kona EV 2021 to supported cars

* regenerate

* remove that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-24 10:12:16 -07:00
Adeeb Shihadeh
d9683b63df Hyundai: update supported Kona EV model years 2022-04-24 09:48:49 -07:00
Jcs Kadupitiya
c5a700981c Add missing Highlander Hybrid TSS2 fw (#24289)
Adding a new firmware version for Ecu.esp for the CAR.HIGHLANDERH_TSS2.
2022-04-21 17:52:47 -07:00
Shane Smiskol
17cb65c4b7 Toyota: resolve controls mismatch due to interceptor thresholds (#23710)
* remove gas interceptor exception

* panda

* bump submodules

* bump panda

* forgot carstate change

* revert

* add test route

* bump

* update refs for CS.gas

* bump submodules to master
2022-04-20 22:28:56 -07:00
Jason Young
a959650f3d VW MQB: Remove metric units detection (#24280) 2022-04-20 13:35:05 -07:00
Shane Smiskol
e515831e5f test_models: add Honda segment for standstill controls mismatch (#24275) 2022-04-20 12:54:52 -07:00
Erich Moraga
70775df771 Add missing AVALON_TSS2 firmwares (#24273)
`@Frank McTank#5005` 2022 Avalon Limited ICE  DongleID/route 14f1b241a8c4e210|2022-04-20--09-01-39
2022-04-20 11:53:17 -07:00
HaraldSchafer
506650bab6 Latcontrol torque: max_torque rename (#24265) 2022-04-20 11:26:24 -07:00
Shane Smiskol
6de434f2ec Honda: do same standstill check as panda (#24262)
* check standstill against panda

* use XMISSION_SPEED for all, and compare to 0

* fix

* only check for Honda for now

* update comment

* update refs

* update refs and update check

* phantom commit
2022-04-19 23:18:01 -07:00
HaraldSchafer
fe0bcdaef6 Lateral torque-based control with roll on TSS2 corolla and TSSP rav4 (#24260)
* Initial commit

* Fix bugs

* Need more torque rate

* Cleanup cray cray control

* Write nicely

* Chiiil

* Not relevant for cray cray control

* Do some logging

* Seems like it has more torque than I thought

* Bit more feedforward

* Tune change

* Retune

* Retune

* Little more chill

* Add coroll

* Add corolla

* Give craycray a good name

* Update to proper logging

* D to the PI

* Should be in radians

* Add d

* Start oscillations

* Add D term

* Only change torque rate limits for new tune

* Add d logging

* Should be enough

* Wrong sign in D

* Downtune a little

* Needed to prevent faults

* Add lqr rav4 to tune

* Try derivative again

* Data based retune

* Data based retune

* add friction compensation

* Doesnt need too much P with friction comp

* remove lqr

* Remove kd

* Fix tests

* fix tests

* Too much error

* Get roll induced error under 1cm/deg

* Too much jitter

* Do roll comp

* Add ki

* Final update

* Update refs

* Cleanup latcontrol_torque a little more
2022-04-19 19:34:31 -07:00
Erich Moraga
1ddcba2ca3 Add missing AVALONH_TSS2 fwdCamera f/w (#24261)
`@Hansal#7177` 2022 Avalon Hybrid Limited  DongleID/route 16a02782fd3d706e|2022-04-18--23-48-48
2022-04-19 14:26:42 -07:00
David Peterson
ce74bd4143 docs: add video link for 2019 Subaru Crosstrek (#24251)
* Update values.py

Add video_link :     SubaruCarInfo("Subaru Crosstrek 2018-19", good_torque=True),video_link="https://youtu.be/Agww7oE1k-s"),

* fix syntax

* timestamp to start of openpilot use

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-19 13:25:56 -07:00
Jason Wen
f6034ecece Hyundai: Car Port for Ioniq Plug-in Hybrid 2019 (#24089)
* Add car port: Hyundai Ioniq Plug-In Hybrid 2019

* Add additiona FW version

* Add test route

* Add test route - fix typo

* Update CARS.md and RELEASES.md

* remove from legacy safety mode

* Update carcontroller.py

* Update to INDI lateral tune

* update spacing and capitalization

* generate docs

* Update selfdrive/car/hyundai/carcontroller.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-18 15:15:38 -07:00
Shane Smiskol
ce91f4564d HKG: Add FW for 2022 Hyundai Elantra Hybrid (#24249)
* Fingerprint for 2022 Hyundai Elantra Hybrid

* re-generate docs

Co-authored-by: Max Triano <mtriano234@gmail.com>
2022-04-18 14:24:54 -07:00
Knudn
86fcb823bc VW: Add FW for 2019 Volkswagen e-Golf MK7 (#24247)
* Fingerprint for e-Golf MK7 2019

* Fingerprint for e-Golf MK7 2019

* Update selfdrive/car/volkswagen/values.py

Co-authored-by: ROLAND Knut <knut.roland@soprasteria.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-18 13:35:15 -07:00