Commit Graph

95 Commits

Author SHA1 Message Date
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
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
sshane
a0e5eccb70 Toyota: handle brake hold (#22810)
* disallow engagement if brake hold active

* we can check once

* move to common events

revert

* fix

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-08 14:26:30 -08:00
Willem Melching
246a52166e assert openpilotLongitudinalControl not enabled for Hyundai legacy safety mode (#22778) 2021-11-02 11:22:38 +01: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
Greg Hogan
3b60a25010 hyundai: match stock when aeb is disabled (#22580)
* match stock when aeb is disabled

* add comment about instrument cluster warning
2021-10-18 10:55:53 -07:00
Robbe Derks
91987f38d4 Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
2021-10-08 17:54:34 +02:00
Greg Hogan
c1a8fe143f Hyundai Palisade: adjust tire_stiffness_factor (#22444) 2021-10-07 10:46:42 +02:00
Lee Jong Mun
de88349ef0 hyundai clean up interface.py (#22408)
* Update interface.py

santa_fe / santa_fe_2022 same value 
kia_k5_2021 single value

* hyundai fw sort

# fwdRadar, fwdCamera, eps, esp, engine, transmission

kia ceed esp double fix 0x7d4 eps

* Update selfdrive/car/hyundai/interface.py

* Revert "hyundai fw sort"

This reverts commit 8ab24ffeeb84c3cb11f5fa44ae45fa35ed50ac06.

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-05 09:41:20 +02: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
Adeeb Shihadeh
649af76fd4 remove community supported cars from community features (#22330)
* remove community supported cars from community features

* remove bosch and hkg long

* remove test case

* update refs
2021-09-23 17:34:52 -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
Greg Hogan
793ceb6b56 hyundai: resume from stop faster (#22274)
* hyundai: resume from stop faster

* update ref_commit
2021-09-23 13:20:25 -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
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
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
417e229624 Add upper/lower bounds for longitudinal lag (#22235)
* Add upper/lower bounds for longitudinal lag

* add ref

* update ref

* bump cereal

* bump cereal
2021-09-14 18:57:16 -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
Willem Melching
1e62b09e5d Use CP.vEgoStopping and clean up CP.startAccel (#22199)
* use CP.vEgoStopping and clean up

* update ref
2021-09-11 17:13:30 -07:00
speedking456
1f639e38b2 Remove Kia Seltos from Legacy Safety Model (#22179) 2021-09-10 08:19:58 -07:00
HaraldSchafer
1ac89f14aa Change car controller interface from gas/brake to acceleration (#21911)
* retune civic

* seems smooth

* back to normal

* new ref

* fix conflict

* runs

* rm

* accel scale is 4

* toyota should be good

* more cleanup

* fixup

* better naming

* update ref

* deprecated

* sending brake when not enable causes a fault

* rm gas and brake

* unused

* update ref

* acura logic is no more

* wrong before

* revert tuning cleanup

* adress comments

* update ref

* already on master

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-08-30 09:32:52 -07:00
Greg Hogan
64a6d325cd update hyundai palisade steer ratio (#21937) 2021-08-16 17:51:55 +02:00
Greg Lincoln
1bb46d0cc8 Kia Niro HEV 2021 port (#21779)
* Initial Niro HEV 2021 port.

* Add test route and update readme.

* Tweak configuration.
2021-08-12 10:45:37 -07:00
Adeeb Shihadeh
e598b78b5d Car Port: Kona Hybrid 2020 (#21912)
* Update carcontroller.py

* Update hyundaican.py

* Update interface.py

* Update interface.py

* Update values.py

* add test route

* merge the konas

* add to readme

Co-authored-by: haram-KONA <88036668+haram-KONA@users.noreply.github.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-08-11 22:48:12 -07:00
Matthew Washburn
e364084fa6 Sonata Hybrid 2021 (#21850)
* Add support for Hyundai Sonata Hybrid

* Update test_routes.py

* whitespace

* same params as sonata

* Update README.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-11 22:03:49 -07:00
Andrew
497a815be3 elantra 2021: steering ratio correction (#21686)
* actual steering ratio measurement

* steer ratio same for non-hybrid
2021-07-22 17:09:56 -07:00
Adeeb Shihadeh
092c728e76 fix unnecessary harsh steering unavailable alerts (#21541) 2021-07-10 01:53:14 -07:00
Jason Young
cfe97fcc49 HKG: 2019 Kia Niro PHEV (#21481)
* Testing addition of 2019 Kira Niro PHEV

* Testing addition of 2019 Kia Niro PHEV

* Fix typos

* Remove bad Optima fw, switch Niro to FPv2

* Set minimum steer speed for 2019 Kia Niro HEV/PHEV

* Add 2019 Kia Niro PHEV to README

* Fix typo

* apparently we get trailing garbage sometimes

* No FCA11 message, also use ELECT_GEAR

* i am not good with alphabet

* Add test route for Niro HEV

* Remove LFA for 2019; no legacy safety

* minSteerSpeed handling

* vehicle disengages SCC below 10mph

* no longer need Genesis specific code for minSteerSpeed

* simplify
2021-07-07 19:24:13 -07:00
Adeeb Shihadeh
c72d163e14 deprecate CP.enableCamera (#21509)
* deprecate CP.enableCamera

* more removal

* one more

* update refs
2021-07-07 14:59:18 -07:00
Andrew
9124a83900 2021 Hyundai Elantra Hybrid port (#21354)
* add support for hyundai elantra hev 2021

* add car to README. adjust tuning params.

* adjust weight

* update fingerprint with value from remote start

* update fingerprint to value of BEFORE getting in car (more reliable)

* add fingerprint v2

* remove fingerprint 1.0

* add test route

* Update README.md

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

* Update selfdrive/test/test_routes.py

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

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-21 16:03:19 -07:00
ShaneSmiskol
e7df9adfe3 2020 Ioniq PHEV Support (#21147)
* use DriverOverride

* keep using EMS16 msg which is available on manuals, TCS13 is not

* Need to differentiate between hybrid ev and ev

* bump opendbc

* add to release files

* try this

* try this

* fixup

* shouldn't need multiple dbc's

* update comments

* combine phev into ev_hybrid

* clean up

* accel_pedal_pos is a percent

* bump

* bump

* update list name

* do this in another PR

* not 2020+

* explicitly set safety param

* full hyundai gas press test coverage

* bump

* bump

* bump

* bump

* like this convention better

* bump

* revert some null gas_signal changes for now

* revert style change

* Add Ioniq PHEV 2020

* Use appropriate signals

* can't verify this to be true

* defaults

* order should really be opposite...

* original style

* bump panda

* bump

* update releases

* bump panda

* Update test route

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-10 23:25:02 -07:00
Greg Hogan
6e300aaf57 hyundai: disable steering on all steer warnings (#20657)
* hyundai: set CF_Lkas_ToiFlt for wind down

* hyundai: disable steering on all steer warnings

* Revert "hyundai: set CF_Lkas_ToiFlt for wind down"

This reverts commit 065f0a996db9e52511013c7011ed95876966d134.

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-03 15:34:25 -07:00
ShaneSmiskol
bf0e0ae00b Use hyundaiLegacy safety model for Hyundai Elantra (#21108) 2021-06-03 13:48:54 -07:00
Cruise Brantley
42cd7b2b09 2021 Hyundai Elantra port (#20916)
* Elantra addition without fingerprint

* FPv1

* ignore fpv2 for fingerprint

* remove blank fpv2 troubleshooting

* FPV2

* missing commas

* added additional detected transmission

* Added to ignored fingerprints

* Test Route added

* Possible fixex for issues stated

* eps detected differently, added second detection

* Updated Naming
2021-05-18 15:52:22 -07:00
Adeeb Shihadeh
b0503e534a Hyundai: add BSM detection (#20747)
* Hyundai: add BSM detection

* update refs
2021-04-25 13:12:03 -07:00
speedking456
4dd4528787 Kia Seltos 2021 INDI Tuning + Increased Steer Limit (#20560) 2021-04-11 15:48:43 -07:00
speedking456
e59f7e0540 Kia Seltos 2021 (#20321)
* Update hyundaican.py

* Update carcontroller.py

* Update interface.py

* Update values.py

* Update interface.py

* Update interface.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update interface.py

* Update values.py

* Update values.py

* Merge 4 conflict resolution

* Update README.md

* Update test_car_models.py

* Update values.py
2021-03-11 15:56:14 -08:00
Adeeb Shihadeh
62512d6265 Kia Ceed 2019 (#20283)
* Update values.py

* Update interface.py

* Update values.py

* Update README.md

* Update README.md

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

* Update test_car_models.py

* Update test_car_models.py

* passes tests

* only fw

* add to release notes

* move that

* send lfa mfa

Co-authored-by: ZanZaD13 <65367004+ZanZaD13@users.noreply.github.com>
2021-03-10 17:02:31 -08:00
Willem Melching
7dc4b22dae Set hyundai start accel 2021-03-03 12:07:12 +01:00
Adeeb Shihadeh
312b681a46 cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
2021-02-16 21:39:32 -08:00
Jon8RFC
9c9add6094 2018 Hyundai Sonata (#19915)
* 2018 Sonata

* Refactor SONATA_2019 to SONATA_LF

For future support of 2016-2019 Sonata Limited Ultimate vehicles.

* Refactor SONATA_2019 to SONATA_LF

For future support of 2016-2019 Sonata Limited Ultimate vehicles.

* Add 2018 Sonata fingerprints

Add FPv1 and FPv2 fingerprints for 2018 Sonata Limited Ultimate (SCC+LKAS)
Refactor SONATA_2019 to SONATA_LF (LF = 2014-2019 Sonatas) for future support of 2016-2019 Sonata Limited Ultimate vehicles.

* remove 2018 Sonata FPv1

* Revert change to car name string

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-26 17:08:09 +01:00
Greg Hogan
2da6bb482e hyundai: increase steering angle limit for custom eps fw (#19744)
* hyundai: increase steering angle limit for custom eps fw

* update commit_ref
2021-01-14 13:09:23 -08:00
Igor
0a65e87394 Add indi breakpoints (#19664)
* Added BP, V to latcontrol_indi

* hyundai

* toyota

* Tests for INDI outerLoopGain
2021-01-07 15:55:46 +01:00
Greg Hogan
235172bdb1 hyundai: update palisade tuning (#19606)
* update palisade tuning

* remove steerRatio change
2021-01-05 21:01:02 -08:00
baldwalker
43c05aa2c6 Separate Hyundai Ioniq Hybrid and EV 2020 Premium SE (#19500)
* Update carcontroller.py

* Update hyundaican.py

* Update interface.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update README.md

* Update test_car_models.py

* cleanup interface
2020-12-17 11:25:56 -08:00
Willem Melching
9cd7a7c14b set CarState.steeringRateLimited for Hyundai (#19495)
* set CarState.steeringRateLimited for Hyundai

* update ref

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2020-12-14 16:11:32 +01:00
Igor
093456cc40 Parametrize MIN_CAN_SPEED in car interfaces (#2684)
* Parametrize MIN_CAN_SPEED in car interfaces

* fixed instance in planner.py

* fix typo

* var name change

* changed var name to minSpeedCan for consistency with other uses of CAN in the capnproto files

* added default value to get_std_params, removed unneeded instances from car interface files

* Revert PEP8 autoformat corrections

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-12-04 11:09:34 +01:00