Commit Graph

1053 Commits

Author SHA1 Message Date
Jafar Al-Gharaibeh
fc7d152dca Mazda: CX-5 and 3 FW (#23267)
* Mazda 3 2017 fw

dongle id: f7fec643f5178df8

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Mazda CX-5 2020 FW

dongle id: f4b488f06d3b7711

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2021-12-18 14:47:04 -08:00
HaraldSchafer
cf466222f6 Road Roll Compensation Rebased (#23251)
* first commit

* update refs
2021-12-16 17:34:12 -08:00
Willem Melching
14bf834fef Abstract classes inherit from ABC (#23246) 2021-12-16 15:31:53 +01:00
Ewout ter Hoeven
55390d273f Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-16 14:58:17 +01:00
Willem Melching
4f1eb4278a Log actuators after applying rate limits in CarController (#23230)
* return actuators from carcontroller

* log it

* pass to latcontrol

* chrysler

* gm

* honda

* more brands

* rest of the brands

* gm cleanup

* hyundai cleanup

* update ref

* rename field

* fix subaru

* add types

* more subaru fixes #23240

* consistent whitespace

* bump cereal
2021-12-16 13:08:20 +01:00
martinl
7fd98757b4 Subaru: Add Impreza/Crosstrek 2020 (#21011)
* Add Subaru Impreza/Crosstrek 2020

* Update selfdrive/test/test_routes.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-15 15:13:31 -08:00
Jason Young
a11259929b VW MQB: Add FW for 2018 Škoda Superb (#23233) 2021-12-15 11:18:40 -08:00
martinl
345fe48338 Subaru Pre-Global: Rename ES_CruiseThrottle to ES_Distance (#23024)
* Rename preglobal ES_CruiseThrottle to ES_Distance

* bump opendbc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-14 21:55:14 -08:00
Kevin Robert Keegan
245b4d910c Toyota: Display Blue Barriers When Engaged, Matches OEM Design (#23150) 2021-12-14 16:42:31 -08:00
Shane Smiskol
2799ef5292 Remove minSpeedCan (#22991)
* Remove minCanSpeed

Remove minCanSpeed

* it actually only goes out to 2.5 seconds, this is okay to remove

* test to see if this preserves behavior

add minSpeedCan

* Revert "test to see if this preserves behavior"

This reverts commit 31b11f017f7e9da7654fc8064b5983d4a6cc22e5.

* preserve behavior (don't enter stopping as early)

* vEgoStopping needs to be less than or equal to vEgoStarting to avoid state oscillation
2021-12-14 12:09:32 -08:00
Shane Smiskol
b745a14ff7 version.py: make function names more clear (#23216)
* rename a few version functions

* and is_prebuilt

* and some formatting 😊
2021-12-14 12:15:13 +01:00
Harald Schafer
44adea73ce fix max speed comments 2021-12-08 17:13:43 -08:00
Adeeb Shihadeh
1638975627 Merge 2021 Accords into 2018 Accords (#23174)
* Merge 2021 Accords into 2018 Accords

* last of them
2021-12-08 14:40:14 -08:00
Metalbird1997
809154571a add fingerprint for European 2018 Toyota C-HR Hybrid (#23171) 2021-12-08 13:43:11 -08:00
Willem Melching
0ec68a5a09 0.8.11-release FW batch (#23167)
* 0.8.11-release FW batch

* those toyota also dont always return esp

* attempt to clean up 2018 & 2021 accord
2021-12-08 14:44:00 +01:00
Harald Schafer
16bf562806 Add TSS2 prius to TSS2 long tunes 2021-12-07 16:06:43 -08:00
Chris McCammon
95c9cb3509 Kia Niro EV fw (#23159) 2021-12-07 13:01:43 -08:00
Adeeb Shihadeh
795bdf4c61 remove ford fingerprints (#23136) 2021-12-05 14:43:57 -08:00
Adeeb Shihadeh
0283942a95 Honda: use new Bosch LKAS_HUD messages (#23000)
* Honda: use new Bosch LKAS_HUD messages

* enum value

* better name

* flip that
2021-12-05 13:51:33 -08:00
Jason Wen
fa952f650d HKG: Add FW for 2022 Kia K5 (#23131) 2021-12-05 12:47:24 -08:00
khoi
1f73192695 Add 2021 Toyoto Corolla Cross Non-Hybrid (Thailand version) (#23123) 2021-12-04 22:53:23 -08:00
Jason Young
8a4ab7f46d VW MQB: Audi Q3 Mk2 (#23128) 2021-12-04 18:55:02 -08:00
grekiki
6951b3271d Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

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

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-03 22:57:19 -08:00
cydia2020
b8c42d01eb Toyota: remove unused ACCEL_HYST_GAP (#23121)
* fix typo in comments

* remove hyst gap from values.py
2021-12-03 22:56:11 -08:00
Chris McCammon
9e51befe18 Honda Pilot fw (#23119) 2021-12-03 16:11:15 -08:00
Willem Melching
e6180738fd add CarParams.wheelSpeedFactor (#23079)
* add CarParams.wheelSpeedFactor

* Fudge speed for Lexus RX

* should have been the TSS2 model

* bump cereal

* refactor into function

* update refs
2021-12-03 14:57:53 +01:00
flightguy2
0ee6f42a8e 2019 Lexus NX FW versions (#23106) 2021-12-02 16:12:29 -08:00
HaraldSchafer
316a10bb6b add tss2 highlander to tss2 tune (#23107) 2021-12-02 14:01:17 -08:00
Erich Moraga
4a33d61de0 Add several missing LEXUS_ES_TSS2 firmwares (#23098)
`@TechGuy#9141`  2021 Lexus ES 350 ICE  DongleID/route  f9238e084316715b|2021-12-01--19-26-20
2021-12-02 07:55:50 -08:00
HaraldSchafer
eda6993043 Toyota pedal rewrite (#23067)
* pedal redo

* add offset to compensate for creep and windbrake

* offset in standard units

* wrong size

* better creep values

* update ref
2021-11-30 10:50:06 -08:00
Willem Melching
f7c46c6949 Do not run code on version.py import (#23063)
* Do not run code on version.py import

* fix athena
2021-11-29 19:38:55 +01:00
Erich Moraga
5abe293f61 Fix comment typo: steerRation -> steerRatio (#23058) 2021-11-28 19:15:36 -08:00
Jason Young
adaffb3355 VW MQB: Add FW for 2013 Volkswagen Golf (#23036) 2021-11-25 14:37:33 -08:00
Adeeb Shihadeh
f0f7359f6a mazda: capitalize CX9 like all others cars 2021-11-24 11:53:10 -08:00
Adeeb Shihadeh
239c7c1d4e Bring back Accord 2021 + 2021 Hybrid (#23021)
Co-authored-by: Chris Souers <csouers@gmail.com>
2021-11-23 23:19:11 -08:00
Erich Moraga
9b9cbe1f37 Add several missing CHRH f/w (#23002)
`Hookler#6341` 2017 C-HR DongleID/route 9de14f6c78d29e91|2021-11-22--03-48-14
His car was previously FP'ing over FPv1 on OP 0.8.1, and he didn't realize it, until I verified it.  Relevant FPv1 was pruned from newer code.
2021-11-23 15:35:08 +01:00
Erich Moraga
d630ec9092 Add Lexus RC support (#22941)
* Add f/w firmware for Lexus RC under LEXUS_IS

`@ph33rl355#0529`  2020 Lexus RC F Track Edition  DongleID/route 32696cea52831b02|2021-11-16--23-12-02

Doesn't seem to need a full port, per user feedback...
https://discord.com/channels/469524606043160576/524327905937850394/910400788319326229

* Update CARS.md

* Separated Lexus RC from IS... still using IS DBC

* match lexus IS for now

* Update wheelbase to match published specs

I'm hesitant to touch `mass`, even though I know it's different from the IS.

* Add TOYOTA.LEXUS_RC test route

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-22 14:22:28 -08:00
Jason Young
819b7a120a VW MQB: Longitudinal prereqs (#23004) 2021-11-22 14:01:42 -08:00
Adeeb Shihadeh
7746130a1e Honda Bosch cleanup (#22999) 2021-11-21 14:52:35 -08:00
Adeeb Shihadeh
b07ddad6ed comma pedal: rename create_gas_command -> create_gas_interceptor_command 2021-11-20 20:13:58 -08:00
Adeeb Shihadeh
9abfc02148 Hyundai: remove longitudinal whitelist (#22976)
* Hyundai: remove longitudinal whitelist

* move legacy safety mode into values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-19 14:20:03 +01:00
Andrew
2a6816b893 Genesis G70 2020 port (#22692)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 20:45:32 -08:00
Cruise Brantley
d77438b4e3 Hyundai: Add Elantra to allowed longitudinal cars (#22974) 2021-11-18 18:41:09 -08:00
Jason Wen
73d66ada8d Hyundai: Car Port for 2022 Santa Fe Hybrid (#22962)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 17:33:10 -08:00
Dave
957864019a GMC Acadia: Add lateral feedforward function (#22899)
* GM Acadia lateral tuning

* old tune was not returning to center, nor strong enough. Trying to make P and F equal.

* reduce integral, and eyeball actuator delay

* return PI to openpilot default

* remove default values from acadia

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>
2021-11-18 15:45:37 -08:00
Jason Young
ef38117219 VW MQB: Volkswagen T-Roc Mk1 (#22967) 2021-11-18 14:52:59 -08:00
Brett Sanderson
8b25551c7f Honda: rename HONDA_NIDEC_ALT_MAIN to HONDA_PARAM_NIDEC_ALT_SCM_MESSAGES (#22970)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 14:52:37 -08:00
Robbe Derks
4960578bdf Tesla longitudinal control (#22561)
* tesla long squashed changes

* fix no resume from stop

* try setting accel limits to 0 to remove jerk with fast switchover

* expand radard lookup tables

* bump merged panda submodule
2021-11-18 13:57:12 +01:00
Adeeb Shihadeh
14651866c2 Honda: handle ACC state consistent with ISO 15622:2018 (#22958) 2021-11-17 17:30:50 -08:00
Jafar Al-Gharaibeh
787dde003e Mazda: fix typo in CX-5 fw (#22957) 2021-11-17 13:49:10 -08:00