Commit Graph

6539 Commits

Author SHA1 Message Date
Robbe Derks 1edd9bfb60 fix kF value for thermal PI controller (#23871)
old-commit-hash: f539d9c0bce0b3b992ab1a3ff128de01fefa3c41
2022-02-27 19:51:59 +01:00
Shane Smiskol 961b11e7aa Toyota: fix learning bad offsets for some models (#23810)
* Update carstate.py

* comments

* use initializing

* bump opendbc

* bool

* check both

* bump opendbc

* and on TSS-P the initializing bit isn't set
old-commit-hash: a1875ac6f090f372aa3f348f439f0589be16ca10
2022-02-26 00:54:35 -08:00
Adeeb Shihadeh fe6f6ef4ff update python packages (#23864)
old-commit-hash: 8344f3c087d6e9c24a2a5ad38ca555e05d9af89b
2022-02-25 14:34:46 -08:00
Jonathan Frey baab5d7a7b Cython acados and minor (#23835)
* acados_ocp_solver_pyx.pyx: implement get_stats for timings and ints

* long_mpc: use acados timers

* acados_ocp_solver_pyx.pyx: fix dynamics_get

* acados_ocp_solver_pyx.pyx: get statistics

* use acados_ocp_solver_pyx.pyx from commaai/cython2 branch

* acados_ocp_solver_pyx.pyx: implement store_iterate

* acados_ocp_solver_pyx.pyx: implement get_residuals

* acados_ocp_solver_pyx.pyx: fix set() for empty fields

* acados_ocp_solver_pyx.pyx: load_iterate

* cython acados: add print_statistics

* test_following_distance: fix typo

* test_longitudinal: unique names for test maneuvers

* longitudinal MPC: comments for evaluation

* longitudinal MPC: add comments to eval acados residuals

* long_mpc: use qp_solver_cond_N = 1

* long MPC: comments, simplify set_cur_state

* update acados version in build script

* longitudinal mpc: weigh a_change in 1 place only

* update ref

* Update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: d09dffb7cd99aefb7e3c251265f2cfd9ae9e72f8
2022-02-25 14:16:44 -08:00
Willem Melching 7e12817e02 MacOS: ensure 1:1 rendering on HiDPI screens (#23860)
old-commit-hash: ca8d4e417e53e5869ad77e8bfd5da62a78a88de3
2022-02-25 14:36:27 +01:00
Igor Biletksyy 334d679060 bump panda
old-commit-hash: 9c70e8bcad3c4095bd02139cc18fdadf0345ded7
2022-02-24 14:42:43 -08:00
Adeeb Shihadeh 89466907cb Subaru: add Ascent FW values (#23848)
old-commit-hash: 71cf938c519e28f0fd0c160b7ae7e778e52280a3
2022-02-23 17:34:39 -08:00
martinl 2caf297f69 Remove unused MPC_COST_LONG class (#23843)
old-commit-hash: 160a8cfd58588a5451bd6c06c3d78e22465cff87
2022-02-23 17:26:05 -08:00
Ross Fisher aefdfa377e Toyota: remove outdated comment (#23844)
old-commit-hash: 49c42c3cd4579767d5a8b84ca0e46146d02b5a43
2022-02-23 17:03:24 -08:00
Adeeb Shihadeh 9bd6dbea43 Subaru: remove Impreza CAN fingerprints (#23841)
* Subaru: remove Impreza CAN fingerprints

* fix process replay

* update refs
old-commit-hash: 04b2545ec013d27e4022604101014f5cf9e6e43b
2022-02-23 15:44:17 -08:00
Adeeb Shihadeh 11ca91fadc boardd: handle missing pandas
old-commit-hash: 767bc1aa3b37b6bdc368629e0c91b87715eabc94
2022-02-23 13:35:56 -08:00
Robbe Derks f767c1b930 this seems to about what my car converges to (#23836)
old-commit-hash: f4d91f71a54becb04cddba9ad62edff4573d9fd4
2022-02-23 16:03:31 +01:00
Willem Melching 1597a03cec Fix watch3 on mac (#23834)
old-commit-hash: a03685c3f93d5c9909ea0f5aee2542be5b0a8eb8
2022-02-23 14:31:28 +01:00
Willem Melching 760564da61 replay: use VideoToolbox HW decoder on Mac (#23832)
* replay: support VideoToolbox HW decoding

* rename flag

* remove debug assert
old-commit-hash: dc7de79dc9d546465030acab1df1d9cc36e1d4d6
2022-02-23 13:52:50 +01:00
Willem Melching b9a0e6ff9b scons: use correct brew prefix (#23833)
old-commit-hash: cc1aab2a73362bb12ca35ef99518dcb955920185
2022-02-23 13:52:38 +01:00
Willem Melching 33a4fda7fd replay: use QCoreApplication (#23831)
old-commit-hash: df88280e0fa2f3b7799c48306c6ce9abdf3ebfb4
2022-02-23 13:34:31 +01:00
Andrew c8ef3e4990 fix mac_setup w/ tools+plotjuggler (#23552)
* fix pycurl issue:
* use newer curl backend for pip install
* update lib paths based on brew prefix
* fix cert issue when using pycurl using certifi
* make output setup nicer

* fix linter

* typo

* dont need that actually

* revert

* pipenv in brew

* forgot this

* make brew available on fresh install

* undo

* more undo

* oops

* use sytem curl, but homebrew openssl

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: df627de7bf10e2267f7aa66ec9830d004e699b0a
2022-02-23 13:04:50 +01:00
Adam Wallner ab90df48fd Added (Ecu.eps) fingerprint for Hyundai Ioniq EV 2017 (#23823)
old-commit-hash: 52266b9cd18643978442c46ec583aed1d78cbdf4
2022-02-23 11:58:14 +01:00
Adeeb Shihadeh ca0cb66a09 Honda: revert to button enable on Nidec (#23828)
* Honda: revert to button enable on Nidec

* fix test

* bump panda
old-commit-hash: c483a9724d7218493678f24d7649ab383c157b90
2022-02-22 22:36:21 -08:00
Adeeb Shihadeh ef2106ebd2 move lock clearing to uploader (#23826)
* move lock clearing to uploader

* test case
old-commit-hash: 3243d1a81e5cfdf687ee406d92903ee44fe781d3
2022-02-22 22:30:11 -08:00
Greg Hogan ff7419bf32 script to clear DTCs
old-commit-hash: de178ea79ccb66f0ed15f0ea98e93068b2e41ca6
2022-02-22 16:15:39 -08:00
Adeeb Shihadeh 30b63dc0d4 Toyota: fix flaky EV detection (#23825)
old-commit-hash: 0965155a5bf93bc5c0f14f437d9bc7d505f32a91
2022-02-22 16:15:09 -08:00
Adeeb Shihadeh 4ab3f4c5de adjust comma two model timing thresholds after bigmodel
old-commit-hash: c98d9791f049c7cdc0c9154c963755b1239e451c
2022-02-22 13:16:23 -08:00
Willem Melching 5517800a59 omx encoder: move writing into thread (#23771)
* omx encoder: move writing to separate thread

* fix include

* pop

* log buffers sizes

* split copy and write
old-commit-hash: 2f00271ce611f8df3ed44e3a1b87b69327a5bc08
2022-02-22 13:02:50 +01:00
Robbe Derks eda2f8c090 Fix unmetered upload over cell (fix #23811) (#23820)
old-commit-hash: a6214ff3b10114f727c9ec89dfa0ac275979f62f
2022-02-22 13:01:53 +01:00
martinl d4db9082db Subaru: add FW for Impreza Limited UDM 2017 (#23802)
* FPv2: Add Subaru Impreza Limited USM 2017

* test_fw_query_on_routes.py: add subaru support

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 412e43206e819193839eab5525fdb6358349856b
2022-02-22 12:17:48 +01:00
Caleb Stultz 888924bb97 HKG: Kia Sorento FPv2 (#23815)
* Replace Kia Sorento FPv1 with FPv2

* keep old fingerprint

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 989d072025cf7f02d71b3c35d117f3af4096c10f
2022-02-22 12:14:34 +01:00
Greg Hogan 56631af8bf hyundai: custom fw version for sonata eps (#23816)
* hyundai: custom fw version for sonata eps

* another comment
old-commit-hash: 35fe2605cf3e4da25d4b76c48120223aaa737f90
2022-02-22 12:02:35 +01:00
Willem Melching 78824585b8 CARS.md add 2022 elantra
old-commit-hash: b1091d505e270ac57bf50adbb2bc8e01e7f6e9ee
2022-02-22 11:58:36 +01:00
jdtram 655bac856d 2022 Hyundai Elantra firmware versions (#23818)
Added 2022 Hyundai Elantra fwdCamera, transmission, and engine fingerprints.
old-commit-hash: 6f766cbb103a7561e20c7cae46dc590bd903d2b6
2022-02-22 11:57:54 +01:00
HaraldSchafer fc042cd85a Fix tici bigmodel (#23817)
* Fix bigmodel on tici: cam intrinsics arent static

* Give TICI route own name for import

* Make function useable in offline test

* typo

* change tici ecam focal to trained focal

* No shadow variable

* Fixed ref

* Force update this time

* Update model replay ref commit
old-commit-hash: 48154703a7ebad8cfea4b9cfd0e37eee132fc32f
2022-02-21 19:57:04 -08:00
Adeeb Shihadeh 41de03aa6e cabana for your terminal
old-commit-hash: 768bea48d04f8f6e517db0458c1d979b00508c89
2022-02-21 19:42:46 -08:00
Adeeb Shihadeh 6cbe5ff2fb docs: fix title typo
old-commit-hash: d468d6e890e62970be22a5cdcfeadb2393dfc71d
2022-02-21 13:30:56 -08:00
Comma Device 123fd2f6ee thneed: a few asserts in the optimizer for cases it will fail
old-commit-hash: 2b652605a08178e539d7ff7ab7e009b4da29bd46
2022-02-21 12:08:52 -08:00
Willem Melching d4f372cfd7 Update raw_logger/framereader to new new ffmpeg api (#23799)
* Update raw_logger/framereader to new new ffmpeg api

* Can be removed now

* Handled by avcodec_free_context

* handle EAGAIN and clean up
old-commit-hash: 724bab8ef3aaad2c69b53fafc68f7afa0ebbe659
2022-02-21 16:39:32 +01:00
Willem Melching 69588ca191 onroad_test: increase camerad cpu usage after debayer changes
old-commit-hash: ccdf069c8c1efb1c695e18ccbc9e6233c00421da
2022-02-21 16:18:01 +01:00
Willem Melching dc16307917 longitudinal planner: disable change cost when stopped. not engaged or gas pressed (#23639)
* disable change cost completely on standstill and gas press

* cleanup

* set accel to zero

* clean up logic around standstill

* update ref
old-commit-hash: 428d412c1f5480c527b296ed85185de34f5082c2
2022-02-21 16:14:41 +01:00
Robbe Derks 7ef4b9115f Param to allow upload over cellular (#23811)
* param to allow upload over cellular

* brackets to be consistent

* move outside loop

* fix tests

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5f64f1c08906a06889617e88aecc2f8ae74b4f21
2022-02-21 12:17:47 +01:00
Willem Melching cc65efe7b0 ui.py: fix model lead plotting
old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163
2022-02-21 11:56:20 +01:00
Adeeb Shihadeh f48147b333 bump panda
old-commit-hash: 65e4a3a3f68e4680e6fa084bf3f3a3ad98baa761
2022-02-20 21:32:31 -08:00
ClockeNessMnstr ee48659eee cleanup import chaining of T_IDXS (#23806)
old-commit-hash: f0b3593682c1e83c11c38a463063077e53cac5ad
2022-02-20 17:03:01 -08:00
George Hotz c033732242 Refactor convolutions (#23807)
* one conv with defines

* add conv

* building works on C3

* this is num_outputs too, process replay is so useful

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2c7542d34ecaebe112071d40f81c966d56649fd7
2022-02-20 11:55:23 -08:00
Adeeb Shihadeh 4a0c03c7b7 boardd: connect to all pandas if none specified (#23805)
old-commit-hash: 719801845bf6274fd0858a5d6736b687266bcfc6
2022-02-19 20:21:05 -08:00
Adeeb Shihadeh bd6d3bfc0b paramsd cpu usage has been increasing
old-commit-hash: 12cd852fc0739086ce00e727f621a0898b93e54f
2022-02-19 17:10:29 -08:00
Adeeb Shihadeh e64e649575 add to release notes
old-commit-hash: 4e555903450aa55ee35ed8215c2cc6c5c1d0c31c
2022-02-19 16:07:18 -08:00
Willem Melching ad5ccabce3 bigmodel (#23684)
* Added wide cam vipc client and bigmodel transform logic

* Added wide_frame to ModelState, should still work normally

* Refactored image input into addImage method, should still work normally

* Updated thneed/compile.cc

* Bigmodel, untested: 44f83118-b375-4d4c-ae12-2017124f0cf4/200

* Have to initialize extra buffer in SNPEModel

* Default paramater value in the wrong place I think

* Move USE_EXTRA to SConscript

* New model: 6c34d59a-acc3-4877-84bd-904c10745ba6/250

* move use extra check to runtime, not on C2

* this is always true

* more C2 checks

* log if frames are out of sync

* more logging on no frame

* store in pointer

* print sof

* add sync logic

* log based on sof difference as well

* keep both models

* less assumptions

* define above thneed

* typo

* simplify

* no need for second client is main is already wide

* more comments update

* no optional reference

* more logging to debug lags

* add to release files

* both defines

* New model: 6831a77f-2574-4bfb-8077-79b0972a2771/950

* Path offset no longer relevant

* Remove duplicate execute

* Moved bigmodel back to big_supercombo.dlc

* add wide vipc stream

* Tici must be tici

* Needs state too

* add wide cam support to model replay

* handle syncing better

* ugh, c2

* print that

* handle ecam lag

* skip first one

* so close

* update refs

Co-authored-by: mitchellgoffpc <mitchellgoffpc@gmail.com>
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 85efde269da2680a77c75c248aafc8c29435ca98
2022-02-19 16:06:31 -08:00
Jason Wen a0d1f77394 HKG: Add FW for 2019 Veloster (#23756)
* HKG: Add FW for 2019 Veloster

* Add esp FW
old-commit-hash: 9a046e2ef34064c8f20148190c5584b790cd47f5
2022-02-19 13:57:07 -08:00
Erich Moraga d89d7e3c03 Add missing CAMRYH_TSS2 fwdCamera f/w (#23796)
`@Ty.ler#0303`  2022 Toyota Camry SE Hybrid  DongleID/route 9477a77ffc4e8bd4|2022-02-18--15-40-25
old-commit-hash: b9f0991df427834f6deb8c9d4d6948ecf60ecc23
2022-02-19 13:53:53 -08:00
George Hotz 10be5aad7a camerad: use open_v4l_by_name_and_index on c2 also (#23794)
* use open_v4l_by_name_and_index on c2 also

* remove open_v4l_by_name_and_index from qcom2
old-commit-hash: 51767c037b141d2100d51ce7406ead2a711676e6
2022-02-19 13:31:11 -08:00
George Hotz 5c766bea95 camerad: fast debayer on c2 cameras (#23795)
* fast debayer on c2 dcam

* add casts

* 128 local worksize on HDR debayer, 8 ms -> 3.5 ms

* width instead of saving rgb_width

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 92e9823cc0cf345d70530559e0e62d23c9b17be0
2022-02-18 20:15:20 -08:00