Commit Graph

159 Commits (2c94f155840b49639b8bf1ec996d99e268fa9a52)

Author SHA1 Message Date
Adeeb Shihadeh 2c94f15584
linter: don't allow implicitly concatenated strings (#23513)
* linter: don't allow implicitly concatenated strings

* fix hyundai
2022-01-13 14:19:38 -08:00
jonjander fcfea4cadc
Kia Niro EV - replace \000 by \x00 (#23509)
Co-authored-by: Jon Jander <jon.jander@ptj.se>
2022-01-13 15:14:28 +01:00
hoomoose ed5e58c48a
Hyundai: use regular Hyundai safety mode and add radar DBC (#23461) 2022-01-10 13:01:58 -08:00
Dean Lee a653461dec
check in tuple instead of list (#23477)
* check in tuple instead of list

* Update selfdrive/car/toyota/carcontroller.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update selfdrive/car/mazda/interface.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-10 16:36:51 +01:00
Chris McCammon e499ebc711
Hyundai: Add Niro EV to 384 STEER_MAX (#23420)
* Niro EV confirmed working with 384

* SCC + LKAS is standard
2022-01-05 14:14:22 -08:00
Jason Wen e1805574a8
HKG: Add and Fix FW for 2022 Kia Niro EV (#23253)
* Remove non-exist esp FW from Niro_EV

* HKG: Add FW for 2022 Kia Niro EV

* Add 2022 Kia Niro EV to STEER_MAX = 384

* Update CARS.md

* HKG: Add FW for 2022 Kia Niro EV

* Remove duplicate FW version

* Remove duplicate FW versions from 0.8.3 FW dump (#20702)

* Fix FW versions spacing

* Fix FW versions spacing

* Add additional FW version

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-03 18:59:23 +01:00
Jason Wen 30e8383f30
HKG: blacklist cars with lower steering max (#23255)
* HKG: Add Lower Steering Torque Cars to STEER_MAX = 255 Blacklist

* add comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-02 15:53:52 -08:00
Jason Wen bd399693b6
Hyundai: Car Port for 2022 Santa Fe Plug-in Hybrid (#23332)
* Add car port: Hyundai Santa Fe Plug-in Hybrid 2022

* Add test route
2021-12-31 17:28:07 -08:00
Ewout ter Hoeven 332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305)
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default

Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
2021-12-24 11:18:39 -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
Chris McCammon 95c9cb3509
Kia Niro EV fw (#23159) 2021-12-07 13:01:43 -08:00
Jason Wen fa952f650d
HKG: Add FW for 2022 Kia K5 (#23131) 2021-12-05 12:47:24 -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
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
Willem Melching 8a8cee5e54
Batch of ECU FW from cars that fuzzy fingerprinted (#22883)
* honda

* hyundai

* toyota

* VW
2021-11-12 16:31:29 +01:00
smithula 96a4a2886c
Hyundai: add Sonata Hybrid FW (#22816) 2021-11-09 12:11:44 -08:00
Willem Melching 5b93d44459
Hyundai: update FW in old format (#22764) 2021-11-01 11:51:37 +01:00
Jason Wen ea9b93008e
Kia (HKG): Add FW for 2021 Kia K5 (#22753) 2021-11-01 11:14:49 +01:00
Andrew b9c4f0c0ff
add new elantra hev 2021 fingerprints (#22727)
* add new elantra hev 2021 fingerprints

* add another transmission fp

* Remove duplicates

* Also duplicate

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 13:51:41 +01:00
Jason Wen 248285d5c5
Hyundai: Add FW for 2022 Hyundai Sonata (#22702)
* Hyundai: Add FW for 2022 Hyundai Sonata

* Update selfdrive/car/hyundai/values.py

* sort engine fw

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-30 15:39:16 +02:00
Adeeb Shihadeh 66c20026f6
remove unused can fingerprints (#22646) 2021-10-20 22:32:51 -07:00
Jason Wen d01c340f1f
Hyundai: Car Port for 2022 Hyundai Ioniq Hybrid (#22610)
* Add car port: Hyundai Ioniq Hybrid 2022

* Update RELEASES.MD

* Update CARS.md

* Add test route: Hyundai Ioniq Hybrid 2022
2021-10-19 16:59:10 -07:00
Jason Wen 7f5ffe54c0
Hyundai: Add FW for 2022 Hyundai Sonata Hybrid (#22543)
* Hyundai: Add FW for 2022 Hyundai Sonata Hybrid

* Add additional FW
2021-10-19 14:10:40 +02:00
Jason Wen e62442a9f3
Hyundai: Add FW for 2018 Hyundai Ioniq Hybrid (#22585) 2021-10-19 14:09:01 +02:00
Jason Wen 03f4188219
Hyundai: Fix Ioniq Hybrid signals (#22583) 2021-10-17 11:50:21 -07:00
Jason Wen c2a5f0ade2
Hyundai: Add Kona EV and Kona HEV to higher STEER_MAX limit (#22520) 2021-10-14 19:41:43 -07:00
Jason Wen fe7ab37b7b
Hyundai: Add FW for 2022 Hyundai Santa Fe (#22559)
* Hyundai: Add FW for 2022 Hyundai Santa Fe

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-14 19:37:01 -07:00
Kyle Greenlaw 3412388b8c
Additional FW for 2021 Hyundai Sonata Hybrid (#22482)
* New FW for 2021 Hyundai Sonata Hybrid

* Removed duplicates

* Wild cards

* Update selfdrive/car/hyundai/values.py

* restore old value

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-11 06:22:02 +02:00
Jason Wen f8750f66c8
Hyundai: Add FW for 2021 Hyundai Santa Fe (#22485)
* Hyundai: Add FW for 2021 Hyundai Santa Fe

* Add additional FW

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-11 06:20:53 +02:00
Jason Wen 6c6f46bf9a
Hyundai: Add FW for 2021 Kia K5 (#22479) 2021-10-07 18:23:08 -07:00
Willem Melching 305e8d07ec
add Sonata N-Line FW versions (#22469) 2021-10-07 10:51:44 +02:00
Jason Wen 8bd626aade
Hyundai: Add FW for 2021 Hyundai Ioniq PHEV (#22455)
* Hyundai: Add FW for 2021 Hyundai Ioniq PHEV

* Force recognition

* Revert "Force recognition"

This reverts commit 6283b7f4c2.

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-06 20:40:12 -07:00
Jason Wen d4ac05b77b
Hyundai: Add FW for 2021 Hyundai Elantra (#22461)
* Hyundai: Add FW for 2021 Hyundai Elantra

* Apply suggestions from code review

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-06 20:35:49 -07:00
Jason Wen 6018bda2ba
HKG: Car Port for 2021 Kia K5 (#22347)
* HKG: Kia K5 2021 Car Port

* Update CARS.md and RELEASES.md

* Add test route: Kia K5 2021

* Update firmware format due to recent query change

* Update CARS.md: not all 2021 Kia K5 have SCC

* Update test_routes.py
2021-09-30 14:35:14 -07:00
cto424 d95641a594
2021 Hyundai Sonata engine FW (#22355)
* Update values.py

* Apply suggestions from code review

* Also duplicate

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-28 14:56:56 +02:00
smithula 8096da1dcd
Add Firmware 2021 Hyundai Sonata Hybrid (#22353)
* Update values.py

* Update values.py

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-28 12:24:05 +02:00
Willem Melching 2d7d8fba99
Improve Hyundai FW query stability (#22344)
* extend timeout on valid response

* extend total timeout in fw query

* redundant query

* cleanup

* add 2 new sonata fw

* add cloudlog

* total timeout always 10x

* update ref

* time.monotonic()

* more logging
2021-09-24 17:32:09 -07:00
Jason Wen 9acc592cd9
Hyundai: Car Port for 2022 Hyundai Santa Fe (#22325)
* Add fingerprint: Hyundai Santa Fe 2022

* Update LFAHDA_mfc: Add 2022 Hyundai Santa Fe

* Add car port: Hyundai Santa Fe 2022

* Add test route: Hyundai Santa Fe 2022

* Update RELEASES.md

* Update CARS.md

* Update RELEASES.md

* Remove FPv1 due to deprecation
2021-09-23 16:03:28 -07:00
Andrew cc03ac49aa
add another transmission FPv2 for elantra hev 2021 (#22316) 2021-09-23 13:23:16 -07:00
Jason Wen 1ba28af265
2021 Hyundai Sonata N Line: Fingerprint (#22300)
* 2021 Hyundai Sonata N Line: Fingerprint

* Force FPv2: 2021 Hyundai Sonata N Line

* Revert "Force FPv2: 2021 Hyundai Sonata N Line"

This reverts commit 50351a3d17.

* remove too short fw versions

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-23 11:20:29 -07:00
Cruise Brantley 75730c28ca
Radar tracks for Santa Fe (#22270)
* Radar tracks for Santa Fe

* add radar DBC

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-21 15:04:14 -07:00
VictorLier 9d42afe8c0
Add 2017 Ioniq EV fw versions (#22277)
* 2017 ioniq EV fingerprint

* Update values.py

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-19 14:35:28 -07:00
Kyle Greenlaw 839147a333
Add Hyundai Sonata Hybrid Radar FW for OP Long support (#22259)
* add mondo dbc to Sonata Hybrid

* 2021 Sonata Hybrid radar FW

* Add Sonata Hybrid to openpilotLongitudinalControl

* Whoops... ,
2021-09-17 19:12:54 -07:00
samuwh e8e83a3dcf
Added fw versions for Hyundai Elantra 2021 (#22256)
* Added fingerprint for Hyundai Elantra 2021

This fingerprint started popping up on my 2021 Hyundai Elantra SEL (non-hybrid).

* Update values.py

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-17 16:59:57 -07:00
Kyle Greenlaw f10ac7d060
Additional FW for Sonata Hybrid (#22252)
* Additional Fingerprint for Sonata Hybrid

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-16 11:59:48 -07:00
Willem Melching 6fd980c63e
Hyundai radar parser (#22241)
* add radar parser for 0x5XX range

* fix speed

* enable based of fingerprint

* fix speed scale

* use proper signal names

* add to release files

* hyundai: script to enable radar points

* typo

* add comment

* fix tests

* cleanup

* add note about persistent

* Update selfdrive/car/hyundai/radar_interface.py

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

* fix bugs in hyundai enable radar points script

* accidentally removed comment

* add some other cars

* add cosine to dRel

* fw versions do not match openpilot

* bump opendbc

* include state 4

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-15 15:43:01 -07:00
Willem Melching c4bac6bd68
Hyundai longitudinal prerequisites (#22121)
* panda

* bring over changes

* dont check car model

* remove comment

* fix typo

* more stuff gated behind long

* not

* not used

* gate that too

* try honda tuning

* clip accel values

* fix up merge

* fix stopping

* add retry logic around knockout

* increase timeout

* keep flipping lead bit

* true for now

* less tuning

* update comment

* 0.1 s is fine now

* merge honda and hyundai knockout

* more lead fields

* another obj bit

* increase timeout

* fix stopping flag

* only lag compensate for braking

* no lead

* less tuning

* only do knockout if not readonly

* try controlling using jerk

* tuning

* try higher stopping rate

* set stopping flag at higher speed

* clip upper jerk when stopping

* remove comments

* tester present 1hz

* use positive start accel

* 1.0 to maybe improve low speed stuff

* no point going over 0

* bump panda

* bump panda

* revert that change

* update ref
2021-09-13 22:03:08 -07:00
Andrew d2e751f108
add another missing FW for elantra_hev-2021 (#22186)
popped up during drive: `715ac05b594e9c59|2021-09-10--05-58-04`
2021-09-10 11:39:12 -07:00
Shroom 37daec5dee
Add Kia Niro EV 2019 fw signature. (#22141) 2021-09-06 15:11:45 -07:00