Commit Graph

8340 Commits

Author SHA1 Message Date
Dean Lee b05d878c29 boardd: cleanup includes (#30674)
cleanup includes

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 13e5e708c28b40cdfcb2771e8d6c2d376cd09f8f
2023-12-10 09:18:44 -08:00
Jason Wen eaae93109b Hyundai CAN-FD Longitudinal: Enable for ICE camera-SCC cars (non-HDA2) (#30034)
* Hyundai CAN-FD Longitudinal: Enable for all camera-based SCC platforms (non-HDA2)

* allow ice camera scc longitudinal

* allow ice camera scc longitudinal

* Update docs

* Merge commaai#30021

* Update CARS.md

* revert unrelated changes

* add test route

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 63bf098017c89a09f79059647deb90d1960f720d
2023-12-09 17:36:34 -08:00
Shane Smiskol 8119ba7c1a Volkswagen: update MY for Tiguan
old-commit-hash: b3908e3c82f53ab998bdbef34a005d0a699c7448
2023-12-09 15:05:06 -08:00
hodgiers 43dc2d6956 Volkswagen: Tiguan R-Line 2024 Fingerprint (#30605)
* Update values.py

2024 Tiguan R Line

* Update values.py

Removed extraneous text

* already here

* Update values.py

Updating model year for Volkswagen Tiguan to include 2024.

* Update values.py

Correcting Tiguan fingerprint values

* Apply suggestions from code review

* Update selfdrive/car/volkswagen/values.py

---------

Co-authored-by: Hodge <rhodge@Hodge-MBP.local>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: dd034bbfb7db198d07c05d927b60b0ceba453ea4
2023-12-09 15:04:27 -08:00
hanyiabc e7ee874dbd Added fingerprint for 22 Kia Stinger KIA_STINGER_2022 (#30589)
* added fingerprint for my 22 kia stinger

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5051ff0b84845cbbacd31927461eac82fba90142
2023-12-09 14:46:40 -08:00
TerryWloch e83d54c66a VW: add missing FW for Skoda Kodiaq 2017 (#30665)
* Update values.py

Added FingerPrint for my Skoda Kodiaq 2017 14. tsi DSG 4x4

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6d9629b0e11e6d36b71530e7dbd1475acb30e280
2023-12-09 14:35:15 -08:00
Shane Smiskol e46c20ac61 test_models: randomize internal segment list (#30653)
* randomize internal seg list segments

* random

* pytest-randomly sets random.seed to a consistent value for all the workers/processes

* noeol

* update

* Revert "update"

This reverts commit aff9a69c4e5e3934deebaa33986b42f44b55b002.

* lock

* don't randomize by default

* remove random-order

* strict

* random

* one fix

* test

* does nothing

* rm tests

* Revert "rm tests"

This reverts commit b548e3fcd48e60538695506888d863c01b459d27.

* (can't repro locally) just athena should be fine

* bs1

* bs2

* bs3

* bs4

* bs5

* wrong way

* no controls

* no car

* no board

* controls?

* crazy -common

* Revert "crazy -common"

This reverts commit 02365d712b3d09cab1893cce2261a4b418bb3851.

* test athena

* test athena 2

* test athena 3

* test athena 4

* test athena 5

* test athena 6

* test athena 7

* test athena 8

* test athena 9

* ??

* in one commit

* common?

* car and board

* -controls -board

* random-order

* no board

* revert

* car/tests

* least likely

* try

* try 2

* draft

* draft

* so much better

* cmt

* use randomly

* not needed here

* directly modify option works

* bb

* test time

* Revert "test time"

This reverts commit 2c5caabe2b470b47b7322e37800680b92773fccc.

* tmut

* i concur

* revert
old-commit-hash: ac83318ac4f54c46deef02c69d46c549bd741cb3
2023-12-09 14:28:32 -08:00
Shane Smiskol f5d1c4f371 ruff: check newline (#30668)
* check newline

* nothing catches this
old-commit-hash: 97da129e11e58b07d5d136093827cd1c62311fea
2023-12-09 13:24:18 -08:00
Shane Smiskol 4d67bf884c athena tests: patch instead of juggling function (#30664)
patch instead of juggling function
old-commit-hash: 2afff9a0cba605d5118c6cb33c157017a3999957
2023-12-09 05:06:30 -08:00
Shane Smiskol fa6bc55834 athenad: use socket constant (#30663)
Update athenad.py
old-commit-hash: 90c2aee6c36d6f37bc580804d98613e9918a9e33
2023-12-09 04:53:15 -08:00
Shane Smiskol 2e11cf4375 test_athena: remove no-op line (#30660)
* test

* Update selfdrive/athena/tests/test_athenad.py
old-commit-hash: 17d71d2829c8f61b68a6b05b4a5796662185ab7f
2023-12-08 21:40:15 -08:00
Justin Newberry 2d50661b94 soundd/micd: more robust setup procedure (#30640)
* just use the default device :/

* Ruff

* this seems like the most reliable way

* Ruff

* move comments too

* wait for devices

* fix that

* and that

* ruff

* add logging for avaliable devices

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: bc70c94f75f64c31998b9796f20ec6e310cae347
2023-12-08 17:59:31 -08:00
Shane Smiskol 81cc8a561a Toyota: enable LTA (#30109)
* bump panda

* enable lta

* try upper/lower delay similar to longcontrol lag comp

* add comment about eps torque rate limits

* more clear

* more clear

* Revert "try upper/lower delay similar to longcontrol lag comp"

This reverts commit 8e85333ee6e2456fcda076af4c31a9e9babbc897.

* bump

* no driver torque limiting to test

* fix the setme_x3

* bump

* bump

* enable inactive safety

* use vEgoRaw

* rename

* fix

* some comments/organization

* bump

* docs

* no corolla

* shorter name

* bump

* bump

* add to releases

* bump panda

* remove camry

* bump

* bump

* rm

* bump

* bump

* bump again

* bump
old-commit-hash: bf4026ed7e55866e1a27f5aee277fbdbeb4853cd
2023-12-08 15:31:10 -08:00
Dean Lee 2a948de1f6 ui/ParamControl: do not create ConfirmationDialog on every click (#30496)
old-commit-hash: 011b1a6e6a1db1047b2c72bc7e9e273a358ab18d
2023-12-08 13:48:31 -08:00
Adeeb Shihadeh 0708f7e19f update plannerd cpu usage
old-commit-hash: 2590cf8615ca3dc86cb7bacae83bfb8f95bf8d80
2023-12-08 11:39:30 -08:00
Shane Smiskol 3ec8a2f852 Ford: add Explorer 2020 FW (#30638)
* 49cead668ca2ac46

* docs

* b18d8435f1460528
old-commit-hash: 49317e390351f702bfe95a0400fef479d389007f
2023-12-07 16:37:59 -08:00
Shane Smiskol eb622a85d1 Ford: add Explorer 2023 FW (#30637)
* 49cead668ca2ac46

* docs
old-commit-hash: 1cd7b04e6ffb97018159c1fef930622bb0b77054
2023-12-07 11:37:18 -08:00
Kacper Rączy 9cf15f3c74 locationd: disable locationd temporary error alert on the body (#30608)
* Disable locationd temporary error alert on the body

* Disable locationd/paramsd/planner alerts on body with joystick mode

* joystick_enabled param not joystick_mode
old-commit-hash: 7f07f47302229bcc2694f7c53d1e5ed1236494c8
2023-12-07 10:53:33 -08:00
Adeeb Shihadeh 59eb2988de swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
old-commit-hash: 35f819c8239b8ac3a000087a0f791b91ccea5e5e
2023-12-06 17:27:51 -08:00
Justin Newberry 62d0647ab3 pytest: group test_models by route instead of car name (#30625)
* group by route

* dont need those
old-commit-hash: f16df8e4b7901f5e38b6f90a8900eef02faab504
2023-12-06 16:00:59 -08:00
Justin Newberry db3fbdae18 Soundd: only update ambient db when not playing an alert (#30620)
* move to soundd + only when quiet

* not filtered
old-commit-hash: 5600a8288909e0b6ca95becbdb5746a0a9e35af4
2023-12-06 14:59:16 -08:00
Justin Newberry f945b8ebaa jenkins: remove pytest tici conf (#30621)
* remove pytest conf

* remove that too
old-commit-hash: 31ab43ce41d6d0f88cb8a9b6df8e79f23b6309fe
2023-12-06 11:13:22 -08:00
Greg Hogan e91032efb3 replace common.file_helpers.mkdirs_exists_ok with python os.makedirs funtion (#30618)
replace common.file_helpers.mkdirs_exists_ok with python os.makedirs function
old-commit-hash: db35dcd0b5353d9c009fcf5817e611125a6b0b8b
2023-12-06 09:55:29 -08:00
Adeeb Shihadeh a2df43c05e update mapsd cpu usage
old-commit-hash: 3985103974e59efc84a2ffc6e054b0f8daa6adf2
2023-12-05 21:32:55 -08:00
Adeeb Shihadeh df18770f81 agnos 9 (#30543)
* agnos 9

* new build

* update

* Soundd: use alsa (#30617)

* update release notes

* agnos does this now

* prod manifest

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 3b89c5fe29b3a63f34e9782ef71ac868d89c99d5
2023-12-05 21:17:49 -08:00
Shane Smiskol 8dd6c7d4b1 Toyota: LTA unit test (#30613)
LTA unit test
old-commit-hash: 67d6186bbd5b19269162453a6028cabd6a2fabfc
2023-12-05 19:24:28 -08:00
Justin Newberry 817161f3ac Soundd: move to python (#30567)
soundd python
old-commit-hash: abe39e50766c418818bf72d2567db78978dbd466
2023-12-05 18:10:01 -08:00
Justin Newberry 202fa37808 Docker: pull image before building (#30614)
* pin to a specific version

* pull latest version

* dont need version debug
old-commit-hash: f32e3ae799aa26a132bfd61e1d98cf7273b5c239
2023-12-05 15:48:26 -08:00
Justin Newberry fa45813b3d pytest: add durations to tici (#30609)
add durations to tici
old-commit-hash: 56b8a1a5db81d1dd3b4e1a97b90be5b92d1af510
2023-12-05 12:24:03 -08:00
Shane Smiskol fd130642b6 joystick: bump max angle (#30602)
old-commit-hash: 09a9ba6de1603fbcda0f883d5298b3f80f8295e1
2023-12-04 21:16:33 -08:00
Shane Smiskol baeaa2f730 Toyota: rename LTA torque wind down signal (#30603)
* bump

* rename

* bump
old-commit-hash: 3fed87dbb701c263f38d64a29f7bbf186ad25e39
2023-12-04 21:16:12 -08:00
Adeeb Shihadeh f3dec8658c Revert "Simplify passive mode handling (#30593)"
old-commit-hash: 99d51bf02c5a13f3064b012da55634f8a319091e
2023-12-04 15:05:05 -08:00
Adeeb Shihadeh f408eb207a remove unused last_actuators arg from lateral controllers (#30595)
old-commit-hash: ce4bac8218ebcc8d0480ed09e0c1c6467f705a65
2023-12-03 15:54:18 -08:00
Adeeb Shihadeh 3a3a41741e add carParams.passive (#30594)
old-commit-hash: bd0ab957b196694c57b125838622e9d0021ca9c0
2023-12-03 14:09:37 -08:00
Adeeb Shihadeh 4be789d40a Simplify passive mode handling (#30593)
* simplify passive handling

* makes more sense
old-commit-hash: 5ccff25d885365e4247665fdf8380c6b67c36b28
2023-12-03 13:59:59 -08:00
Adeeb Shihadeh 1cc4f1a634 new msgs default to invalid (#30587)
* new msgs default to invalid

* fix lm

* set more valid

* update rest

* update refs

* fix logMessage

* more valids

* cleanup

* fix llk test

* pigeond is also valid

* more valids
old-commit-hash: a1d36961cf9fa0c6a9c41fe92d6504de5d36cbaa
2023-12-03 10:50:17 -08:00
Adeeb Shihadeh b761d0efb7 process replay: check valid flag (#30588)
old-commit-hash: a2b48efa2083c86638b536df180fbb638cab7404
2023-12-02 10:47:08 -08:00
Adeeb Shihadeh e7d7501670 longitudinal tests: cleanup old hacks (#30585)
old-commit-hash: 8971e2c177b6bd9ae1006e4dcbfa4246d6d8096a
2023-12-02 10:01:28 -08:00
Adeeb Shihadeh 93b1cf7d69 bump cereal (#30582)
* bump cereal

* fix dmonitoringd

* update refs

* update refs
old-commit-hash: c028688a652a8354ac641e185eee80a04633543b
2023-12-02 01:16:07 -08:00
Adeeb Shihadeh 4394116e5b clear non-release params on startup (#30583)
old-commit-hash: 531e62fc033b06b54f11c702dcbde5982bfe41e6
2023-12-01 23:57:54 -08:00
Adeeb Shihadeh f38648f84b rename carEvents -> onroadEvents (#30577)
* rename carEvents -> onroadEvents

* bump cereal

* bump cereal
old-commit-hash: b97e5b0e03a5e22ef0ae6d6f5c2523592ee25540
2023-12-01 22:48:29 -08:00
Adeeb Shihadeh 3d13288326 controlsd: remove old process replay sentinel (#30581)
old-commit-hash: 8e00ce672d78dcb2445b4bdfa1a9e557bb365233
2023-12-01 22:42:43 -08:00
Shane Smiskol ad5ae03be1 Toyota: LTA cleanup (#30579)
* have been running this for a few weeks: good

* set setme_x3 closer to stock

* add comment to values about additional EPS torque rate safety

* rename some variables

* should use vEgoRaw here to match panda!

* switch

* more notes

* specify

* smaller

* for

* oof
old-commit-hash: 54517c0638c99b7a40b146376def1ac324d07074
2023-12-01 22:27:29 -08:00
Kacper Rączy d062a97a26 webrtcd: webrtc streaming server (audio/video/cereal) (#30186)
* WebRTCClient and WebRTCServer abstractions

* webrtc client implementation

* Interactive test scripts

* Send localDescriptions as offer/asnwer, as they are different

* Tracks need to be added after setting remote description for multi-cam streaming to work

* Remove WebRTCStreamingMetadata

* Wait for tracks

* Move stuff to separate files, rename some things

* Refactor everything, create WebRTCStreamBuilder for both offer and answers

* ta flight done time to grind

* wait for incoming tracks and channels

* Dummy track and frame reader track. Fix timing.

* dt based on camera type

* first trial of the new api

* Fix audio track

* methods for checking for incoming tracks

* Web migration part 2

* Fixes for stream api

* use rtc description for web.py

* experimental cereal proxy

* remove old code from bodyav

* fix is_started

* serialize session description

* fix audio

* messaging channel wrapper

* fix audiotrack

* h264 codec preference

* Add codec preference to tracks

* override sdp codecs

* add logging

* Move cli stuff to separate file

* slight cleanup

* Fix audio track

* create codec_mime inside force_codec function

* fix incoming media estimation

* move builders to __init__

* stream updates following builders

* Update example script

* web.py support for new builder

* web speaker fixes

* StreamingMediaInfo API

* Move things around

* should_add_data_channel rename

* is_connected_and_ready

* fix linter errors

* make cli executable

* remove dumb comments

* logging support

* fix parse_info_from_offer

* improve type annotations

* satisfy linters

* Support for waiting for disconnection

* Split device tracks into video/audio files. Move audio speaker to audio.py

* default dt for dummy video track

* Fix cli

* new speaker fixes

* Remove almost all functionality from web.py

* webrtcd

* continue refactoring web.py

* after handling joystick reset in controlsd with #30409, controls are not necessary anymore

* ping endpoint

* Update js files to at least support what worked previously

* Fixes after some tests on the body

* Streaming fixes

* Remove the use of WebRTCStreamBuilder. Subclass use is now required

* Add todo

* delete all streams on shutdown

* Replace lastPing with lastChannelMessageTime

* Update ping text only if rtc is still on

* That should affect the chart too

* Fix paths in web

* use protocol in SSLContext

* remove warnings since aiortc is not used directly anymore

* check if task is done in stop

* remove channel handler wrapper, since theres only one channel

* Move things around

* Moved webrtc abstractions to separate repository

* Moved webrtcd to tools/webrtc

* Update imports

* Add bodyrtc as dependency

* Add webrtcd to process_config

* Remove usage of DummyVideoStreamTrack

* Add main to webrtcd

* Move webrtcd to system

* Fix imports

* Move cereal proxy logic outside of runner

* Incoming proxy abstractions

* Add some tests

* Make it executable

* Fix process config

* Fix imports

* Additional tests. Add tests to pyproject.toml

* Update poetry lock

* New line

* Bump aiortc to 1.6.0

* Added teleoprtc_repo as submodule, and linked its source dir

* Add init file to webrtc module

* Handle aiortc warnings

* Ignore deprecation warnings

* Ignore resource warning too

* Ignore the warnings

* find free port for test_webrtcd

* Start process inside the test case

* random sleep test

* test 2

* Test endpoint function instead

* Update comment

* Add system/webrtc to release

* default arguments for body fields

* Add teleoprtc to release

* Bump teleoprtc

* Exclude teleoprtc from static analysis

* Use separate event loop for stream session tests
old-commit-hash: f058b5d64eed31878533a85f25eb53386ff9e330
2023-12-01 21:13:37 -08:00
Hoya 56038f4c54 Hyundai: add FW for 2019 AZERA_HEV_6TH_GEN (#30548)
* added AZERA_HEV_5TH_GEN (2019)

* Update values.py

* Update interface.py

* Update values.py

* Update hyundaican.py

* Update hyundaican.py

* Update interface.py

* Update values.py

* one line

* didnt see harness change

* Update selfdrive/car/hyundai/values.py

* docs

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 169132c6cc52f598b9b16d9996690f51282082e5
2023-12-01 14:59:49 -08:00
Shane Smiskol cf9ed48dfb FW fingerprinting timing: fix refs (#30566)
old-commit-hash: e687be939e7cf67c4a75b87320ab058941d4316f
2023-11-30 16:36:20 -08:00
Adeeb Shihadeh b526644eb1 falsify rx checks (#30564)
old-commit-hash: 613ccf4b74ce70ac4bff75d1dbdd5ee7f8f4acdc
2023-11-30 14:53:33 -08:00
Justin Newberry 661132be5a Pytest: more post-test path cleanup (#30556)
* test cleanup

* missed this one

* remove that

* static class
old-commit-hash: 4086795c29bacd245a7cc372a16730e1a6ff974f
2023-11-30 09:55:48 -08:00
Justin Newberry ba3d3233dc Revert "Subaru: log eyesight fault as a cruise fault" (#30560)
old-commit-hash: b1e2e0f565010191f0f624487c4b74c63008f03a
2023-11-30 07:57:29 -08:00
Justin Newberry cc625f1a0c Subaru: non-obd FW queries logging (#30552)
* add subaru logging fw

* whitelist + comma

* whitelist is empty for the other requests

* all whitelisted
old-commit-hash: a2bb41e0ec5fd96763e9a01a7116efda059de6e6
2023-11-29 17:47:09 -08:00