Commit Graph

6308 Commits

Author SHA1 Message Date
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
Gijs Koning 13254cef2f Add wide camera to Carla (#23989)
* Add c3 camera flag to bridge.py

* Set c3_cameras to default

* add runtime error message

* Remove c2 arg

* Update to 163 fov to not see through car

* update comment

* Update tools/sim/bridge.py

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

* Revert camera.py changes

* Remove focal_length

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-20 08:06:56 -07:00
Gijs Koning 6ab7b2f325 swaglog: delay creating zmq socket to first use - fix modeld crash in sim (#24271)
* Initialize zmq socket later with initialize method

* empty lines

* Add lock and move initialize function

* Check for initialized
2022-04-20 15:03:23 +02:00
Gijs Koning e95a250bca Carla pip dependency and fix for git init (#24258)
* Add carla pip dependency for dev

* Revert other packages in pipfile

* Remove redundant carla install in docker

* Fix CI
Remove broken openpilot_build

* New run command
2022-04-20 05:23:27 -07:00
Shane Smiskol 6de434f2ec Honda: do same standstill check as panda (#24262)
* check standstill against panda

* use XMISSION_SPEED for all, and compare to 0

* fix

* only check for Honda for now

* update comment

* update refs

* update refs and update check

* phantom commit
2022-04-19 23:18:01 -07:00
HaraldSchafer a762567de9 Offline localizer: accept addition camera (#24266)
* Offline localizer: add option for additional camera

* add names

* fix some bugs

* Wide ORB features are less accurate

* add comment
2022-04-19 22:45:35 -07:00
HaraldSchafer fe0bcdaef6 Lateral torque-based control with roll on TSS2 corolla and TSSP rav4 (#24260)
* Initial commit

* Fix bugs

* Need more torque rate

* Cleanup cray cray control

* Write nicely

* Chiiil

* Not relevant for cray cray control

* Do some logging

* Seems like it has more torque than I thought

* Bit more feedforward

* Tune change

* Retune

* Retune

* Little more chill

* Add coroll

* Add corolla

* Give craycray a good name

* Update to proper logging

* D to the PI

* Should be in radians

* Add d

* Start oscillations

* Add D term

* Only change torque rate limits for new tune

* Add d logging

* Should be enough

* Wrong sign in D

* Downtune a little

* Needed to prevent faults

* Add lqr rav4 to tune

* Try derivative again

* Data based retune

* Data based retune

* add friction compensation

* Doesnt need too much P with friction comp

* remove lqr

* Remove kd

* Fix tests

* fix tests

* Too much error

* Get roll induced error under 1cm/deg

* Too much jitter

* Do roll comp

* Add ki

* Final update

* Update refs

* Cleanup latcontrol_torque a little more
2022-04-19 19:34:31 -07:00
Adeeb Shihadeh 6877059b45 add joystick to release 2022-04-19 17:25:59 -07:00
Shane Smiskol 492489e55c ui: adjust e2e path width 2022-04-19 16:07:46 -07:00
George Hotz 273831aa14 ui: make the path double wide for e2e 2022-04-19 15:53:58 -07:00
Adeeb Shihadeh 27b067446a modeld tests (#24263) 2022-04-19 15:50:04 -07:00
Lukas Petersson 397bd25e97 Disambiguate frame id in latencylogger (#24164)
* add tools to disambiguate frame id

* Update selfdrive/camerad/cameras/camera_qcom2.cc

Co-authored-by: Gijs Koning <gijs-koning@live.nl>

* bug fix

* remove duplicate code

* PR comments

* bug fix

Co-authored-by: Gijs Koning <gijs-koning@live.nl>
Co-authored-by: Comma Device <device@comma.ai>
2022-04-19 14:29:24 -07:00
Erich Moraga 1ddcba2ca3 Add missing AVALONH_TSS2 fwdCamera f/w (#24261)
`@Hansal#7177` 2022 Avalon Hybrid Limited  DongleID/route 16a02782fd3d706e|2022-04-18--23-48-48
2022-04-19 14:26:42 -07:00
Adeeb Shihadeh 76a8338197 manager: start bridge and web joystick for notcars (#24212)
* manager: start bridge and web joystick for notcars

* fix that

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
2022-04-19 14:13:05 -07:00
Adeeb Shihadeh 28149eae4d test_onroad: fix min -> max (#23824)
* test_onroad: fix min -> max

* raise that

Co-authored-by: Comma Device <device@comma.ai>
2022-04-19 13:41:36 -07:00
David Peterson ce74bd4143 docs: add video link for 2019 Subaru Crosstrek (#24251)
* Update values.py

Add video_link :     SubaruCarInfo("Subaru Crosstrek 2018-19", good_torque=True),video_link="https://youtu.be/Agww7oE1k-s"),

* fix syntax

* timestamp to start of openpilot use

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-19 13:25:56 -07:00
Adeeb Shihadeh c5378cf8b9 improve tici thermal control (#24228)
* improve tici thermals

* more i

* always 70
2022-04-19 11:07:54 -07:00
Adeeb Shihadeh 0cc162af62 bump submodules 2022-04-19 11:03:05 -07:00
Adeeb Shihadeh 148e747f83 rebuild libyuv for x86_64 2022-04-19 10:28:26 -07:00
George Hotz 13e18b605a joystickd: add send thread 2022-04-18 22:35:19 -07:00
George Hotz e9ef650901 joystickd: add WEB support, add logitech joystick support 2022-04-18 22:13:09 -07:00
George Hotz 1795a2ac03 C2: remove some dead code (#24256)
* remove some dead code

* still needed

Co-authored-by: Comma Device <device@comma.ai>
2022-04-18 20:38:03 -07:00
George Hotz 40cf4a7498 Update SNPE to 1.61.0.3358 (#24253)
* update snpe to snpe-1.61.0.3358

* fix new snpe build

* fix snpe dir in files_tici

Co-authored-by: Comma Device <device@comma.ai>
2022-04-18 19:31:10 -07:00
George Hotz 0ac35a656a loggerd: prereqs for deanlee loggerd omx encoder (try 2) (#24252)
* refactor encoders

* fix pc build

* buf_info

Co-authored-by: Comma Device <device@comma.ai>
2022-04-18 18:21:46 -07:00
Adeeb Shihadeh 5c48e7bc86 remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
2022-04-18 17:55:23 -07:00
Adeeb Shihadeh 233a167cc9 controlsd: handle controls mismatch race (#24245)
* controlsd: handle controls mismatch race

* update refs
2022-04-18 17:08:25 -07:00
Jason Wen f6034ecece Hyundai: Car Port for Ioniq Plug-in Hybrid 2019 (#24089)
* Add car port: Hyundai Ioniq Plug-In Hybrid 2019

* Add additiona FW version

* Add test route

* Add test route - fix typo

* Update CARS.md and RELEASES.md

* remove from legacy safety mode

* Update carcontroller.py

* Update to INDI lateral tune

* update spacing and capitalization

* generate docs

* Update selfdrive/car/hyundai/carcontroller.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-18 15:15:38 -07:00
Adeeb Shihadeh 067273b8e7 controlsd: check if process should be running (#24250) 2022-04-18 14:57:04 -07:00