Commit Graph

3558 Commits

Author SHA1 Message Date
Riley Williams 28eb64e1fd 2024 IONIQ 6 (#32302)
* Tweak carspecs for 2023 (and now also 24) ioniq 6 to reflect public info instead of cloning ioniq 5 specs

* Regenerated car docs

* revert specs *for now*

---------

Co-authored-by: Riley Williams <riley@rileyww.dev>
Co-authored-by: Riley Williams <riley@rileyw.dev>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7381872a544f48daa3b1f26cf88a61714083801b
2024-06-05 14:34:02 -07:00
Shane Smiskol da7e6d5b5b [bot] Fingerprints: add missing FW versions from new users (#32605)
Export fingerprints
old-commit-hash: bbc21b9f524a3790bb269ccbf4ff7e784992a82e
2024-06-04 22:09:54 -07:00
Shane Smiskol 1c49e5eb73 Honda: remove programmedFuelInjection ECU (#32626)
* set up for quick test

* remove pgfi

* Revert "set up for quick test"

This reverts commit aa6af2ff838b2cd203a6feaacaa5b4f3b71272ed.

* still query JIC
old-commit-hash: de61d417b92554f1e86bbc9a28e995e9bff650c6
2024-06-04 21:29:05 -07:00
Adeeb Shihadeh 2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d7a388d4cd1f25dac9dda9d5409bf4a
2024-06-04 19:16:55 -07:00
Shane Smiskol edd2e43239 Honda: helpful non-essential ECU comment
old-commit-hash: e494d989601f295ed1dfbcbfacaf891f26a0408c
2024-06-04 16:37:01 -07:00
Shane Smiskol 65354c789e Hyundai: remove Ioniq EV 2020 CAN fingerprint (#32625)
* add from afc1609bb1584f28

* remove HYUNDAI_IONIQ_EV_2020 CAN fingerprint
old-commit-hash: ba9ea0a25f636d0a425b05e19b5fd1bc4cfee31a
2024-06-04 16:31:16 -07:00
Vivek Aithal cf8885b596 [torqued] Reduce friction for some Hyundai cars (#32578)
* reduce friction coeff for ev6 and ioniq6

* Update ref

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 8a4bfcf5b4f4adc5cf9f0c91895d621421e994a2
2024-06-04 11:10:04 -07:00
Adeeb Shihadeh 86b6103657 test_*.py files are no longer executable (#32610)
* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c8109dd8d33ea2e7169995184fbe38cc3a
2024-06-03 15:48:56 -07:00
Shane Smiskol 60ed5d6d40 [bot] Fingerprints: add missing FW versions from CAN fingerprinting cars (#32604)
Export fingerprints
old-commit-hash: 7c4b7ce799f7de15384231552c8fef1f9227292a
2024-06-03 14:11:51 -07:00
cl0cks4fe e77b75d9f0 cache get_torque_params (#32560)
* cache get_torque_params

* switch to cache

* Update selfdrive/car/interfaces.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 8f4b00c263e1942c6a6eed9d24297dff44e7f48f
2024-05-31 13:43:12 -07:00
Shane Smiskol ab16c708e9 add Hyundai CAN FD fingerprinting note
old-commit-hash: f887b8703cfdb764a5f16d624bd4ce8380054a23
2024-05-30 23:08:14 -07:00
Shane Smiskol b41b5cc067 fw_versions debug: match online vin retry
old-commit-hash: 0a43d82428d03662a3a439f7ec5ada7afc39b7a2
2024-05-30 22:20:04 -07:00
William Stairs c0ef111581 Add Chassis for VW Arteon Shooting Brake 2020-2023 (#32579)
* Added Arteon "3H" chassis code for Shooting Brake to VWCarDocs.

* Added new engine and transmission FW to Volkswagen fingerprints.py for Arteon Mk1.

* Apply suggestions from code review

* updates docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 984ad8833aedf20c5cad14996c5e5cafc95fe3fa
2024-05-30 21:35:19 -07:00
kacperhq e1ec898b41 KIA SPORTAGE 5th HEV 2022 EUR fingerprint (#32558)
Update fingerprints.py

KIA Sportage 5th GEN EUR ver
old-commit-hash: 325dcec06b5662b6b4c0f8903f0a7ea064fa4b7f
2024-05-28 15:27:08 -07:00
Shane Smiskol 47524c9393 [bot] Fingerprints: add missing FW versions from new users (#32552)
Export fingerprints
old-commit-hash: 521ee46c4704057365a6e08c4571a6eafd5d8dde
2024-05-27 22:01:31 -07:00
Shane Smiskol 51b5d472fb [bot] Fingerprints: add missing FW versions from new users (#32542)
Export fingerprints
old-commit-hash: 93963207f22e5724fb334ca495591ecc51529a82
2024-05-26 08:41:19 -07:00
Shane Smiskol d56052fcad [bot] Fingerprints: add missing FW versions from new users (#32533)
Export fingerprints
old-commit-hash: 95aa7c4b681c8ca0f23c7396e4d7a5840383c929
2024-05-25 09:42:23 -07:00
Shane Smiskol 1295d75c31 Kia: add 2022 Forte model year
The minimum enable speed is also 0 mph with a lead like the 2023, so it's likely supported with this harness

old-commit-hash: a7065d158b22a6a64ec914bad16546349c952206
2024-05-24 15:49:45 -07:00
Shane Smiskol 6b1d51e4df Kia: update Forte 2019-21 min enable speed (#32528)
* forte enable speed fix

* update docs
old-commit-hash: 937ff7f4187aff657d6e447c2f87b28c3d08bc3a
2024-05-24 15:48:26 -07:00
cipioh 049256c5e3 Added ecu firmware data for 2024 Kia EV6 GT (#32524)
* Update fingerprints.py

added KIA EV6 GT 2024

* Update fingerprints.py

added firmware from 2024 Kia EV6 GT

* format

* update my

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 652f15d54ee92c83e98b7bce2f0f82e241b14cd2
2024-05-24 13:39:42 -07:00
Shane Smiskol 0aae777597 Reapply "Ford: detect missing LKAS from EPS configuration (#31821)" (#32518)
* Reapply "Ford: detect missing LKAS from EPS configuration (#31821)"

This reverts commit 79247ab507d239c2e80bc0ecbf08e654af0c0c5b.

* catch

* now fix

* clean up
old-commit-hash: 7a6818da7edc888ab51f5631775af1eb452375c7
2024-05-22 17:27:22 -07:00
Shane Smiskol e534d9777c test car interfaces: catch more FW-related failures (#32514)
* only pick ecus from brand

* use superset of all requests

* much better

* clean up

* clean up

* try 150

* ?

* ???

* faster debug

* wtf

* no clue

* run push!

* this shouldn't catch it

* clean up

* rm
old-commit-hash: ef1b6b47032b862ca220e7c2ca6d9ccfd41d6957
2024-05-22 17:12:54 -07:00
Shane Smiskol 8499ca62ca [bot] Fingerprints: add missing FW versions from new users (#32511)
Export fingerprints
old-commit-hash: d96b8bbc01f8c18c38b52cb440f8d72f1d211398
2024-05-22 10:02:26 -07:00
Shane Smiskol e3af6d23de Revert "Ford: detect missing LKAS from EPS configuration (#31821)"
This reverts commit 0a46b076a3b8f52e9a7aa5cc87acf1e3d8b64a0e.

old-commit-hash: ffb34e558fe369bb5a5d6d7ff476c3b8e601f6db
2024-05-21 23:21:31 -07:00
Shane Smiskol 912ae13307 card: only exit ELM once done with ECU knock outs (#32505)
* only exit elm once done with knock outs

* comments!
old-commit-hash: 9fa92c222513731a19009781ce463bb9e69158db
2024-05-21 21:23:14 -07:00
roberttruong 19f3c88368 Additional Subaru Impreza 2022 Fingerprint (#31916)
* Update fingerprints.py

Add fingerprint for Subaru Impreza 2022 Australia

* auto_fingerprint

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b059f2eda807aca543b7e33031d52fc5a45be31f
2024-05-21 20:31:47 -07:00
Marcin Perlikowski fb3429c2ce Hyundai: add fingerprint for 2020 IONIQ PHEV (#31301)
add fingerprint for 2020 Hyundai IONIQ PHEV

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5e63906a3f4ef4eb01c99f23592aa87f2cc419a9
2024-05-21 20:24:45 -07:00
Cameron Clough 513f571afc Ford: detect missing LKAS from EPS configuration (#31821)
* debug: disable FW cache

* Ford: detect missing TJA/LCA config and disable LKAS

* set dashcamOnly

* revert

* clean up

* clean up

* some CAN FD do not have 0x01 block for PSCM

* bump cereal (fork)

* remove confusing comment

* add flags/event

* remove duplicate from events

* copy can be next pr

* dashcamOnly if no config comes back either (this shouldn't happen)

* flipped

* can do this

* Revert "can do this"

This reverts commit c3d311b2ffb7bbc346c7f702ac5c1934bc495c65.

* Revert "flipped"

This reverts commit 75c01fb4c5f7fdc9222ea13b8901f76b5b419c99.

* Revert "dashcamOnly if no config comes back either (this shouldn't happen)"

This reverts commit f82624a0eb28bf683660f86b3ddfd44717a6915f.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9f327aeb4824576497a57f077fe9b8243b95e8c0
2024-05-21 17:01:04 -07:00
Shane Smiskol a979167c05 [bot] Fingerprints: add missing FW versions from new users (#32501)
Export fingerprints
old-commit-hash: e29ed6849e4bd8e53b6ce03cfb860af071d75b16
2024-05-21 14:37:24 -07:00
Shane Smiskol ee03d13529 card: process that abstracts car interface and CAN (#32380)
* format card

* standalone process

* no class member CS, there's no point

also can be confusing; what else could be using this?

* rename CoS

* Update selfdrive/controls/controlsd.py

* never works first time :D

* canRcvTimeout is bool

* hack

* add cpu

* see what testing closet comes up with

* first

* some clean up

* support passable CI, fix test models

* fix startup alert

* process replay changes

* test_fuzzy

* gate carOutput valid on carControl valid

* we should publish after we update carOutput

* controlsd was using actuatorsOutput from 2 frames ago for torque, not the most up to date

* check all checks for carControl in case controlsd dies

* log more timestamps

* more generic latency logger; needs some clean up

latency_logger.py was difficult to understand and modify

* card polls on can and carControl to get latest carControl possible

* temp try to send earlier

* add log

* remove latencylogger

* no mpld3!

* old loop

* detect first event

* normal send

* revert "card polls on can and carControl to get latest carControl possible"

how it was is best

* sheesh! update should be first

* first timestamp

* temp comment ( timestamp is slow :( )

* more final ordering, and make polling on/off test repeatable

* Received can

* new plot timestamps

* clean up

* no poll

* add controllers (draft)

* Revert "add controllers (draft)"

This reverts commit e2c3f01b2fadcff74347bac90c8a5cc1ef4e27b3.

* fix that

* conventions

* just use CS

* consider controlsd state machine in card: not fully done

* hmm it's just becoming controlsd

* rm debugging

* Revert "hmm it's just becoming controlsd"

This reverts commit 534a357ee95bec4ed070667186af55d59421bbc7.

* Revert "just use CS"

This reverts commit 9fa7406f30c86200f20457f7b9ff95e731201bf9.

* add vCruise

* migrate car state

* Revert "migrate car state"

This reverts commit 4ae86ca163c6920070f410f608f7644ab632850b.

* Revert "add vCruise"

This reverts commit af247a8da41c3626ada4231b98042da1a1ae4633.

* simple state machine in card (doesn't work as is)

* Revert "simple state machine in card (doesn't work as is)"

This reverts commit b4af8a9b0a2e17fdfc89d344c64678ef51305c24.

* poll carState without conflate

* bump

* remove state transition

* fix

* update refs

* ignore cumLagMs and don't ignore valid

* fix controls mismatch; controlsd used to set alt exp

* controlsd_config_callback not needed for card

* revert ref temp

* update refs

* no poll

* not builder!

* test fix

* need to migrate initialized

* CC will be a reader

* more as_reader!

* fix None

* init after publish like before - no real difference

* controlsd clean up

* remove redundant check and check passive for init

* stash

* flip

* migrate missing carOutput for controlsd

* Update ref_commit

* bump cereal

* comment

* no class params

* no class

* Revert "no class"

This reverts commit 5499b83c2dcb5462070626f8523e3aec6f4c209d.

* add todo

* regen and update refs

* fix

* update refs

* and fix that

* should be controlsstate

* remove controlsState migration

CoS.initialized isn't needed yet

* fix

* flip!

* bump

* fix that

* update refs

* fix

* if canValid goes false, controlsd would still send

* bump

* rm diff

* need to be very careful with initializing

* update refs
old-commit-hash: 71f5c441fe32184d94a9f26565a36c661e2ccf28
2024-05-21 01:18:10 -07:00
LostEon 4d0fdbff52 Fingerprint 2016 Jeep Grand Cherokee (#32491)
* Fingerprint 2016 Grand Cherokee

* sort

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 1ea2411575a04176637856af5ce54aae01b1cd8e
2024-05-20 17:38:47 -07:00
Shane Smiskol 1c1b63bdb3 [bot] Fingerprints: add missing FW versions from new users (#32486)
Export fingerprints
old-commit-hash: 833316835aedaf259e6d6333a1be57cc31dce360
2024-05-20 09:48:51 -07:00
Shane Smiskol 0c28caa0fc [bot] Fingerprints: add missing FW versions from new users (#32477)
Export fingerprints
old-commit-hash: 09f2077f587e9c3abfb1cc1d9420dcb6d452938e
2024-05-19 10:39:29 -07:00
Shane Smiskol d7519e5dcc [bot] Fingerprints: add missing FW versions from new users (#32468)
Export fingerprints
old-commit-hash: 1a4e022d70610acbd74602f80d76876d94a4fdaa
2024-05-18 14:03:50 -07:00
Curtis Jiang fd02f44551 HKG: Add FW version for Canada Hyundai Tucson PHEV 2024 (#32440)
* Car port for Hyundai Tucson PHEV 2024

* Fix doc
old-commit-hash: 5cfaae771d02846c273797795a737ac22e312ec1
2024-05-17 13:17:24 -07:00
cl0cks4fe 639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528ff0a61c7699abc1b63ba8fd282632f
2024-05-17 11:01:44 -07:00
Shane Smiskol 77b1da0a45 Toyota: remove redundant cancel code (#32448)
saw no cases where this was non-zero while cruise_active was false
old-commit-hash: b17ec494b20245c821081a7be0651f655c005576
2024-05-16 16:13:12 -07:00
Shane Smiskol 860283c4cb test_car_interface: run CC once (#32449)
run once
old-commit-hash: 593ea504e7a9a23b81b9a03fe8a2dffddfe7c8ac
2024-05-16 15:41:20 -07:00
Shane Smiskol 785d92c474 Revert "card: move all car events (#32427)" (#32439)
* Revert "card: move all car events (#32427)"

This reverts commit e1918a6270257e96d68df3ac03e884603253c8e2.

* keep the event here

* oops

* Revert "oops"

This reverts commit ea99a2768fbeb7a6123dd755585157b530e7a2a1.

* Revert "keep the event here"

This reverts commit ec089b4e1afdf09b2e6b184de8f23584ef931601.
old-commit-hash: 407791113d10d2f9fea9b68c8313271fefa1e36e
2024-05-15 14:32:52 -07:00
Shane Smiskol 1a5533a8c3 [bot] Fingerprints: add missing FW versions from new users (#32438)
Export fingerprints
old-commit-hash: 1bf2d2e1f978103242a8629ba6fa3f6b5eb1d137
2024-05-15 10:28:28 -07:00
Shane Smiskol cd782c06d1 card: move all car events (#32427)
* move last event over

* fix
old-commit-hash: 8f46028bd4b71c619bac654d6f2a4f8006b7508d
2024-05-14 15:20:03 -07:00
Shane Smiskol 97dc134a42 card: create pedal pressed event (#32417)
* card: create pedal pressed event (#32393)

* move pedalPressed to card

* rm

* needs to be a builder

* move these

* clean up

* reader later

* Update ref_commit

* moved to card
old-commit-hash: d0d44a51a0ff66c1b2da56b3d9864e10ecc2174d
2024-05-13 16:18:55 -07:00
Shane Smiskol 6c2c024855 Car docs: gate auto resume star on enable down to stop (#32421)
* this star doesn't make sense

* only docs for now

* flip
old-commit-hash: 82e70db47c06ee3c447e6bceebadbde5b5e92b2f
2024-05-13 16:18:29 -07:00
Shane Smiskol f7eaec0a4b Hyundai Kona: add min speed (#32420)
* add min speed for kona

* update docs
old-commit-hash: 06c581e202322f7d3a9e21cb59ebe57418e5abe9
2024-05-13 16:02:47 -07:00
Shane Smiskol 4c7c4272d0 Revert "card: create pedal pressed event" (#32414)
Revert "card: create pedal pressed event (#32393)"

This reverts commit 05be56def1f1fdddb761291e1a40cce459fc7d36.
old-commit-hash: 9287a6962479b63f1628086a73459b4e7e933d59
2024-05-13 14:25:22 -07:00
Shane Smiskol 48bb3caaac card: create pedal pressed event (#32393)
* move pedalPressed to card

* rm

* needs to be a builder

* move these

* clean up

* reader later

* Update ref_commit
old-commit-hash: d18da895d3b70dc62ee3cd8ebeb75de6cf48e7a9
2024-05-13 14:15:26 -07:00
Shane Smiskol 4a0b3c8b64 CarInterface: move stateless, common car events to car interface (#32394)
* move stateless, common car events to car interface

* try to reduce process replay diff a bit

* Revert "try to reduce process replay diff a bit"

This reverts commit b12798deabea67c5a636d6e70e80a3c21c7225ff.

* update refs
old-commit-hash: 3dfb6d7931711c51ecfe0d8c32f0ff928b17a5c9
2024-05-13 12:50:42 -07:00
Shane Smiskol 2d7bd1942c [bot] Fingerprints: add missing FW versions from new users (#32412)
Export fingerprints
old-commit-hash: be3e99e2d3ab3e39030f88f5450b955885a01772
2024-05-13 08:39:49 -07:00
Jason Young 013088133f VW MQB: Support for preempted HCA state (#32298)
* bump opendbc

* VW MQB: Support for preempted HCA state
old-commit-hash: f770f55a4e742da9a3ea474f9ccb330ba4fde64a
2024-05-12 22:06:03 -07:00
Shane Smiskol 1c7a1555b9 [bot] Fingerprints: add missing FW versions from new users (#32397)
Export fingerprints
old-commit-hash: 3fd549f30a3528a1dfb2dbe2d8590b4bc5af43b6
2024-05-11 10:54:24 -07:00