Commit Graph

6874 Commits

Author SHA1 Message Date
Willem Melching 4ff9f6910d 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>
old-commit-hash: 374190873349fc9cb59771dbd60ca1a759ff3b8c
2022-04-22 13:59:49 -07:00
Joost Wooning e0c973fe70 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>
old-commit-hash: b9907e86b2dde54263d55d36346bb5609950ab99
2022-04-22 12:55:37 -07:00
Gijs Koning 4ed3a158af 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>
old-commit-hash: 9be23cbdb9cbb6ee4cfc2e6332a81fd82f18c91e
2022-04-22 18:00:49 +02:00
Adeeb Shihadeh 16c40a5f7c 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>
old-commit-hash: 37dbc7be0c70adff2f002c1c77c277f7addddd81
2022-04-21 23:13:20 -07:00
Jcs Kadupitiya 942c9345f5 Add missing Highlander Hybrid TSS2 fw (#24289)
Adding a new firmware version for Ecu.esp for the CAR.HIGHLANDERH_TSS2.
old-commit-hash: c5a700981cad1b261af6e7a968883b605d6dd6e7
2022-04-21 17:52:47 -07:00
Adeeb Shihadeh e82bf249bb test onroad: increase DM execution threshold instant max
old-commit-hash: 6bbb168511c8f532a41288bfc92d3aa0405c939c
2022-04-21 14:16:56 -07:00
Adeeb Shihadeh 09cb3ad3ee CI: add job for complete build (#24283)
* CI: add job for complete build

* add --test
old-commit-hash: 462a1079a2cd6514cd6907bb28535d1f72fd13c9
2022-04-21 11:34:49 -07:00
grekiki cc943ac9a5 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>
old-commit-hash: b8b15d5cf1d2507c89bbe0e3b1de1ff043d9078e
2022-04-21 18:27:45 +02:00
Willem Melching 373ac5ce3d 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
old-commit-hash: 207df4742f7eaa534cb472412bfe2621a0b8ce18
2022-04-21 16:23:39 +02:00
Willem Melching f1dce8540a fix --extras on device: move ui.cc into widgets_src (#24286)
old-commit-hash: 303f4ea5c1e875a6740e6be5bc60abe2637f5903
2022-04-21 16:23:20 +02:00
Willem Melching c1091a67cd ui: Fix path artefact when going over hill (#24285)
old-commit-hash: 38300474bbf2d956ca2482df7c2f93db43b34d27
2022-04-21 16:18:48 +02:00
Shane Smiskol ebec632ea2 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
old-commit-hash: 6e62df65d722bf2013c42514bf56cbe5c838ad63
2022-04-21 00:01:05 -07:00
Shane Smiskol d82173e685 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
old-commit-hash: 17cb65c4b75987e4fa6630a02f384e27f1472d13
2022-04-20 22:28:56 -07:00
George Hotz b872fe92ab 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>
old-commit-hash: 8d2465578707022ca4a54defe171103955026a65
2022-04-20 14:51:24 -07:00
Comma Device 5a55e1bb79 launch corolla script for desk replay
old-commit-hash: aef61541e3f48d4713e528f849840b1104681c9b
2022-04-20 14:12:43 -07:00
Adeeb Shihadeh 9b9d332a54 paramsd: fix variable cpu usage (#24281)
* paramsd: fix variable cpu usage

* fix that

* increase that a bit
old-commit-hash: f7c2b8b46e87f9f32eaeb5a11d20d3df24fe96e4
2022-04-20 14:08:52 -07:00
Adeeb Shihadeh b57808e650 paramsd: use real logMonoTime (#24279)
old-commit-hash: 4c9020863f156e98702adf073a018b3ca71f4dbe
2022-04-20 13:57:15 -07:00
Adeeb Shihadeh 806d7b1158 update refs after VW signal removal
old-commit-hash: b42b3a8f9fcd513e52d3a78e11e3d87aa432d38c
2022-04-20 13:38:59 -07:00
Jason Young 4333fda533 VW MQB: Remove metric units detection (#24280)
old-commit-hash: a959650f3dac9aaa4d9438f3126f5c34d35b3c62
2022-04-20 13:35:05 -07:00
Adeeb Shihadeh 709e683bf4 athena: fix random test failure (#24278)
old-commit-hash: 0fbb7a4673ae02a5d2efafabfdccba194a0a8ebf
2022-04-20 13:20:50 -07:00
Shane Smiskol 3e201c015d test_models: add Honda segment for standstill controls mismatch (#24275)
old-commit-hash: e515831e5f879c936347ee7422dbdd6f6d327d68
2022-04-20 12:54:52 -07:00
George Hotz 6c70cfa0ce precise power measurement script
old-commit-hash: 3b2421baa04be3e2408e5177248a31689c244107
2022-04-20 12:15:11 -07:00
Lukas Petersson a9b23562ee Latencylogger list logreader (#24276)
old-commit-hash: e063f77accad8fe6a37da463979272ec23c4b5d2
2022-04-20 12:02:05 -07:00
Erich Moraga 7ef181647f Add missing AVALON_TSS2 firmwares (#24273)
`@Frank McTank#5005` 2022 Avalon Limited ICE  DongleID/route 14f1b241a8c4e210|2022-04-20--09-01-39
old-commit-hash: 70775df771da9305d6efd9a8d10434709c5ad7a3
2022-04-20 11:53:17 -07:00
HaraldSchafer ef41004968 Latcontrol torque: max_torque rename (#24265)
old-commit-hash: 506650bab66ae1d28f76526ffcb73470b755c170
2022-04-20 11:26:24 -07:00
Gijs Koning 8ddeb3f531 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>
old-commit-hash: 13254cef2f56e960093ae05471f4c1c0281d7e34
2022-04-20 08:06:56 -07:00
Gijs Koning db68d73333 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
old-commit-hash: 6ab7b2f32562fdb155a14e64c5c2b963f9345b33
2022-04-20 15:03:23 +02:00
Gijs Koning 7b4b8d3f58 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
old-commit-hash: e95a250bcad5f07b7092ba6faf989352d933f678
2022-04-20 05:23:27 -07:00
Shane Smiskol 955ca69cc4 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
old-commit-hash: 6de434f2ecee89e86c011bece57cb205c4c047e3
2022-04-19 23:18:01 -07:00
HaraldSchafer 6bd1706b52 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
old-commit-hash: a762567de9de52aa6e98818b44a140de6123e6fc
2022-04-19 22:45:35 -07:00
HaraldSchafer 2174005f05 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
old-commit-hash: fe0bcdaef6b1fd3fc9d855aefeba755b35dfc222
2022-04-19 19:34:31 -07:00
Adeeb Shihadeh f536724f4e add joystick to release
old-commit-hash: 6877059b450b37c478042139fe847419e0c6bba8
2022-04-19 17:25:59 -07:00
Shane Smiskol 8d6ab099dc ui: adjust e2e path width
old-commit-hash: 492489e55caceddd8e844874abe4662a6623a162
2022-04-19 16:07:46 -07:00
George Hotz 440e82e106 ui: make the path double wide for e2e
old-commit-hash: 273831aa14950b71ff84073d716a0fef2d1fa31e
2022-04-19 15:53:58 -07:00
Adeeb Shihadeh 074603c1b9 modeld tests (#24263)
old-commit-hash: 27b067446a084a92625427de4db6196498ffcba6
2022-04-19 15:50:04 -07:00
Lukas Petersson 544375abcf 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>
old-commit-hash: 397bd25e971abf5c32276cbd0c48c61d7b1eae30
2022-04-19 14:29:24 -07:00
Erich Moraga 917553820f Add missing AVALONH_TSS2 fwdCamera f/w (#24261)
`@Hansal#7177` 2022 Avalon Hybrid Limited  DongleID/route 16a02782fd3d706e|2022-04-18--23-48-48
old-commit-hash: 1ddcba2ca3a12a3b5a5092c098ed26ab49342e61
2022-04-19 14:26:42 -07:00
Adeeb Shihadeh ae71ecf8b8 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>
old-commit-hash: 76a83381977f9dd3d5b223e0dfb8e1617e2c7237
2022-04-19 14:13:05 -07:00
Adeeb Shihadeh 80d6da0bce test_onroad: fix min -> max (#23824)
* test_onroad: fix min -> max

* raise that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 28149eae4d130e8feb4bf106f52b5a6f991890e8
2022-04-19 13:41:36 -07:00
David Peterson a6b0cf3feb 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>
old-commit-hash: ce74bd41431e6bcc76ccf3de0c2edb69bcde4d48
2022-04-19 13:25:56 -07:00
Adeeb Shihadeh db252b457a improve tici thermal control (#24228)
* improve tici thermals

* more i

* always 70
old-commit-hash: c5378cf8b923446269b7c207451a9804b6f862b0
2022-04-19 11:07:54 -07:00
Adeeb Shihadeh f7f02b3f65 bump submodules
old-commit-hash: 0cc162af62c18650d8026c17b976abbc6ceb9750
2022-04-19 11:03:05 -07:00
Adeeb Shihadeh 87252465c1 rebuild libyuv for x86_64
old-commit-hash: 148e747f83f5e172946a79285414649493600dda
2022-04-19 10:28:26 -07:00
George Hotz 5ce06c5016 joystickd: add send thread
old-commit-hash: 13e18b605a1a2f259cea5459f34358cd12322eb8
2022-04-18 22:35:19 -07:00
George Hotz 8353786c69 joystickd: add WEB support, add logitech joystick support
old-commit-hash: e9ef6509010f3ce6881e61a6b04e8fbe11e1b312
2022-04-18 22:13:09 -07:00
George Hotz d73af8d298 C2: remove some dead code (#24256)
* remove some dead code

* still needed

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1795a2ac03d2707deeb6f17b4b5eb287284b9cef
2022-04-18 20:38:03 -07:00
George Hotz 7921b2d197 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>
old-commit-hash: 40cf4a7498686665cde255841f139bdfb1351566
2022-04-18 19:31:10 -07:00
George Hotz 6dde52671b 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>
old-commit-hash: 0ac35a656acad2ecb2a394ddce1358cb41dfb4ab
2022-04-18 18:21:46 -07:00
Adeeb Shihadeh 5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86a621dd35f4ff25da7a26ee506bac76
2022-04-18 17:55:23 -07:00
Adeeb Shihadeh e8ad31f32b controlsd: handle controls mismatch race (#24245)
* controlsd: handle controls mismatch race

* update refs
old-commit-hash: 233a167cc901afcf0a0abf48fad8516609d19c99
2022-04-18 17:08:25 -07:00