Commit Graph

6335 Commits

Author SHA1 Message Date
Shane Smiskol efa98d2a06 HKG: only allow engagement on user button press (#24140)
* use deque for prev_cruise_buttons

* stash

* disallow engagement if resume or decel isn't pressed

* fix buttons

* reduce chances of causing 30-frame fault

Fix clu11

drive down cancel times

* Revert "reduce chances of causing 30-frame fault"

This reverts commit 0f54c051bf5a22b1f584718ec46e78bc3a82a0dd.

* consider pause/resume button

* stash

* Revert "stash"

This reverts commit 551ca7be6c45729f0747abc81cd81894cd621c32.

* sadly some cars need 8 op frames (identical to 4 updates from CLU11)

* add main button

* 6 should be safe

* use max

* clean up

* change to 4 samples and process all messages received, like panda

* bump panda

* test: replay segments with known re-engagements on-device

* Revert "test: replay segments with known re-engagements on-device"

This reverts commit 9730c3c14f942b82b6ed5ef2e81b8ae0126f3006.

* need prev_cruise_buttons as we don't run every CAN message through carstate

* more generic

* extend

* Update selfdrive/car/interfaces.py

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

* 3% faster at 1000000 loops

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-26 13:27:28 -07:00
Shane Smiskol 60b7114024 onnxruntime: initialize CUDA provider before predictions (#24330)
* initialize CUDA runtime before predictions

* dmond pauses modeld execution...

* done in other PR
2022-04-26 11:49:32 -07:00
Adeeb Shihadeh 59134c05d6 pandad: better handling of internal panda failures (#23755)
* reset internal panda

* recover

* internal dfu

Co-authored-by: Comma Device <device@comma.ai>
2022-04-26 11:02:40 -07:00
Shane Smiskol a8e632bb98 regen: send vipc_client_extra frames (#24331)
* send extra frames to fix regen

* for sanity

* not used

* minimal changes
2022-04-26 00:15:09 -07:00
George Hotz 3694f9801c compressed_vipc: make yuv default 2022-04-25 21:44:37 -07:00
Jason Young d0a6622342 VW MQB: Audi RS3 (#24329) 2022-04-25 21:06:23 -07:00
Vivek Aithal 1a9f5d29d4 longitudinal_mpc: Compute forward distance from velocity (#24328)
* add vel integ as x in e2e long mpc

* add comment
2022-04-25 20:15:04 -07:00
Adeeb Shihadeh 1714c9be17 research magic 2022-04-25 20:12:14 -07:00
Comma Device 729d7ae549 body: remove print spam 2022-04-25 20:07:12 -07:00
martinl 599b1ab3ff Subaru: remove A/C fw version (#24224)
* Subaru: remove A/C fw version

* add test to ensure the ecu isn't added again

* check CP.carName

* clean up

one line

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-25 16:41:34 -07:00
Cameron Clough 2d77a31cd5 Don't build OpenCV tests in webcam docker image (#24326)
Building opencv tests and apps are [on by default](https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html#tutorial_config_reference_general_tests),
but we don't need them.
2022-04-25 16:08:42 -07:00
Adeeb Shihadeh de56544531 Revert "onroad UI: show negative speed (#23987)"
This reverts commit 62087a6368.
2022-04-25 15:16:06 -07:00
MT 2a64f7b563 ubuntu_setup.sh: support 22.04 LTS (#24312)
* Build on 22.04 lts

- Removed python-dev from install_ubuntu_common_requirements()
- Added case ubuntu 22.04
- Added install_ubuntu_21.10_requirements()
- Modified install_ubuntu_latest_requirements() to include python3-dev instead of python-dev

* remove 21.10

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-25 14:06:30 -07:00
Joost Wooning f84fdc86bb UI: remove memcpy on frame receive (#24318)
* UI: remove frame memcpy

* fix freezing

* fix onroad test
2022-04-25 13:45:55 -07:00
Joost Wooning 43f43b1c64 UI: use YUV stream instead of RGB (#24317)
* UI: use YUV stream instead of RGB

* cleanup

* cleanup
2022-04-25 21:07:08 +02:00
Gijs Koning 01968ca61b Simulator: Fix keyboard input (#24320)
* Fix keyboard input for simulator

* add unblock_stdout() to test

* Revert import change
2022-04-25 07:26:30 -07:00
Adeeb Shihadeh 13e1c0b339 Revert "UI: remove RGB buffer usage (#24298)"
This reverts commit b9907e86b2.
2022-04-24 11:56:30 -07:00
Erich Moraga 785a228f2b Add missing LEXUS_RX_TSS2 engine & fwdCamera f/w (#24309)
`@jackus1#7254` Lexus RX 350 2022 ICE  DongleID/route 02b50dc00776ca3c|2022-04-24--11-40-30
2022-04-24 11:08:39 -07:00
Azenzic b5f65a587d Hyundai: remove mismatched video (#24307)
* Fingerprint for Kona EV 2021

update fingerprint to show support for Kona EV 2021 also the Kona EV 2021 uses the G harness ( the same as the 2019)
616f048bf31258b7|2022-04-23--20-38-39
616f048bf31258b7|2022-04-23--20-38-39--4
remove improper youtube link that show a Hyundai Elantra driving listed next to a Kona hybrid

* Update values.py

* Update values.py

fixed an open parentheses that could cause some issues added SCC+LFA requirement note on Kona EV

* Update CARS.md

add Kona EV 2021 to supported cars

* regenerate

* remove that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-24 10:12:16 -07:00
Adeeb Shihadeh d9683b63df Hyundai: update supported Kona EV model years 2022-04-24 09:48:49 -07:00
Shane Smiskol f4d1703b42 longActive: consider longitudinal control (#24295)
* consider longitudinal control

* update refs
2022-04-22 20:32:36 -07:00
Adeeb Shihadeh e8a9b9ed8c updated: reduce frequency of unnecessary updates (#24301)
* updated: reduce frequency of unnecessary updates

* little cleanup
2022-04-22 19:18:49 -07:00
Adeeb Shihadeh 70987fd9d9 more verbose debug alerts (#24126) 2022-04-22 16:12:54 -07:00
Willem Melching 3063c70ff1 updated: only run offroad & disable automatic git garbage collection (#24269)
* updated: disable automatic git garbage collection

* set gc.autoDetach false

* add gc cloudlogs

* trigger updated

* handle exception

* trigger updated

* only while offroad

* no trigger needed

* trigger updated

* check if git gc was interrupted

* trigger updated

* dont set params when shutting down

* let manager clear params

* no offroad check anymore

* event is nicer to parse

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-22 14:43:44 -07:00
Adeeb Shihadeh b88fb037ab tici downclock (#24088)
* tici downclock

* fix that

* gp ref

* lower that a bit

* that was a scam

* perf

* update power

* increase that

Co-authored-by: Comma Device <device@comma.ai>
2022-04-22 14:14:59 -07:00
Willem Melching 3741908733 Do not run model when skipping frames (#23949)
* Do not run model when skipping frames

* also prepare wide

* add logging

* remove newline

* small skip test

* more random

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-22 13:59:49 -07:00
Joost Wooning b9907e86b2 UI: remove RGB buffer usage (#24298)
* ui: use yuv buffer

* cleanup

* fix watch3

* replay always send yuv

* fix drawing of path

* fix onroad test

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-22 12:55:37 -07:00
Gijs Koning 9be23cbdb9 Simulator Tests (#24274)
* squash #24009

* Fix from other pr
Add low-quality arg

* Update tools/sim/test/test_carla_integration.py

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

* Updates for comments. Not finished yet

* commit

* fix arguments

* Final changes for comments

* Final fixes

* increase carla client timeout to 10

* make test executable

* actually wait for controlsd to send messages

* Error proof test. Starting up carla at each test and closing down using docker (tried many things).

* commit test carla

* Removed some time.sleeps
Add some more retries for bridge.

* Stop while loop on shutdown

* Increase teardown waiting time

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-22 18:00:49 +02:00
Adeeb Shihadeh 37dbc7be0c CI: power draw test (#24292)
* CI: power draw test

* initialize hardware

* try this

* fix that

* happy linter

* actually happy

Co-authored-by: Comma Device <device@comma.ai>
2022-04-21 23:13:20 -07:00
Jcs Kadupitiya c5a700981c Add missing Highlander Hybrid TSS2 fw (#24289)
Adding a new firmware version for Ecu.esp for the CAR.HIGHLANDERH_TSS2.
2022-04-21 17:52:47 -07:00
Adeeb Shihadeh 6bbb168511 test onroad: increase DM execution threshold instant max 2022-04-21 14:16:56 -07:00
Adeeb Shihadeh 462a1079a2 CI: add job for complete build (#24283)
* CI: add job for complete build

* add --test
2022-04-21 11:34:49 -07:00
grekiki b8b15d5cf1 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-21 18:27:45 +02:00
Willem Melching 207df4742f manager: cleanup ensure_running (#24270)
* manager: cleanup ensure_running

* make notcar a blocking condition

* invert last conditions

* duplicate

* always run daemon process

* comment

* typo

* make notcar like driverview
2022-04-21 16:23:39 +02:00
Willem Melching 303f4ea5c1 fix --extras on device: move ui.cc into widgets_src (#24286) 2022-04-21 16:23:20 +02:00
Willem Melching 38300474bb ui: Fix path artefact when going over hill (#24285) 2022-04-21 16:18:48 +02:00
Shane Smiskol 6e62df65d7 Make safetyParam unsigned (#24160)
* bump panda & cereal

* make unsigned in boardd

* update health packet version

bump panda

* fix definition

* bump

* regen TOYOTA2 route

* upload route

* oh, ndog param wasn't being set

* regenerate routes with non-zero safety params

* update refs

* regen routes and update refs

* bump panda

* update refs

* update refs

* bump submodules to master
2022-04-21 00:01:05 -07:00
Shane Smiskol 17cb65c4b7 Toyota: resolve controls mismatch due to interceptor thresholds (#23710)
* remove gas interceptor exception

* panda

* bump submodules

* bump panda

* forgot carstate change

* revert

* add test route

* bump

* update refs for CS.gas

* bump submodules to master
2022-04-20 22:28:56 -07:00
George Hotz 8d24655787 loggerd: Separate writer from encoder (#24257)
* seperate writer from encoder

* video writer in release

* confirm loggerd on PC works, add YUV option to compressed_vipc

* make raw_logger use video_writer

* put this back to master

* close codec

* put this back

* use unique_ptr

Co-authored-by: Comma Device <device@comma.ai>
2022-04-20 14:51:24 -07:00
Comma Device aef61541e3 launch corolla script for desk replay 2022-04-20 14:12:43 -07:00
Adeeb Shihadeh f7c2b8b46e paramsd: fix variable cpu usage (#24281)
* paramsd: fix variable cpu usage

* fix that

* increase that a bit
2022-04-20 14:08:52 -07:00
Adeeb Shihadeh 4c9020863f paramsd: use real logMonoTime (#24279) 2022-04-20 13:57:15 -07:00
Adeeb Shihadeh b42b3a8f9f update refs after VW signal removal 2022-04-20 13:38:59 -07:00
Jason Young a959650f3d VW MQB: Remove metric units detection (#24280) 2022-04-20 13:35:05 -07:00
Adeeb Shihadeh 0fbb7a4673 athena: fix random test failure (#24278) 2022-04-20 13:20:50 -07:00
Shane Smiskol e515831e5f test_models: add Honda segment for standstill controls mismatch (#24275) 2022-04-20 12:54:52 -07:00
George Hotz 3b2421baa0 precise power measurement script 2022-04-20 12:15:11 -07:00
Lukas Petersson e063f77acc Latencylogger list logreader (#24276) 2022-04-20 12:02:05 -07:00
Erich Moraga 70775df771 Add missing AVALON_TSS2 firmwares (#24273)
`@Frank McTank#5005` 2022 Avalon Limited ICE  DongleID/route 14f1b241a8c4e210|2022-04-20--09-01-39
2022-04-20 11:53:17 -07:00
HaraldSchafer 506650bab6 Latcontrol torque: max_torque rename (#24265) 2022-04-20 11:26:24 -07:00