Commit Graph

6620 Commits

Author SHA1 Message Date
Shane Smiskol
ca394949cc Move gas/brake pedal event logic to controlsd (#23850)
* move some state machine logic to controlsd

move some state machine logic to controlsd

* same order

same order

* move unsafeMode up

* disable at standstill

* save last CS

save last CS

* do we need to copy at all?

* don't copy

* rename

* Update selfdrive/controls/controlsd.py

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

* Revert "Update selfdrive/controls/controlsd.py"

This reverts commit 10bb51a0f0ee0d8e2a27c746a0638280a5eaea8a.

* Update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5fe00fb7738358c19b7db907047353d8785b5f20
2022-03-15 20:51:07 -07:00
ZwX1616
e484b16f17 checkout cereal master
old-commit-hash: 7482a6fc4bd59435b4e4003f05ed5928459cb699
2022-03-15 19:09:17 -07:00
ZwX1616
e8a8e37185 DM: more precision running on DSP + e2e outputs (#23900)
* update cereal

* run but not use

* log distraction type

* regression scaling

* clean up naming

* add calib buf

* add to header

* fake model

* no calib model

* adjust threshs

* 018a305f

* fix bn

* tweak1

* tweak2

* 0ff2/666

* tweak3

* t4

* t5

* fix out of bound

* skip when replaying old segments

* update ref

* fix onnxmodel

* get calib

* update model replay refs

* up ref
old-commit-hash: de4031c98eac2d7151bb99b787e5d68193eee1b3
2022-03-15 19:02:21 -07:00
Adeeb Shihadeh
6ac01e59cf Honda: fix possible controls mismatch on Nidecs (#23973)
* Honda: fix possible controls mismatch on Nidecs

* bump panda
old-commit-hash: 7deba690e253dbe1191f3227e8240e6842dd9580
2022-03-15 17:55:15 -07:00
Vivek Aithal
069fe1a749 locationd: Commissue fix (#23951)
* check allAliveAndValid only at filter init

* revert cereal and bugfix test

* rename filterValid to filterInitialized

* bump cereal

* correct err

* update refs
old-commit-hash: dfc12926144df063fb6bd20a97bb4390a4f5a4ef
2022-03-15 14:40:29 -07:00
cydia2020
22c009e021 Toyota: parking brake state (#23970)
old-commit-hash: d7c758d4bfa9ac6fc70971f8f9a2b5626d971e0a
2022-03-14 19:19:31 -07:00
Adeeb Shihadeh
94e02bcb3f add parkingBrake to carState (#23968)
* add parkingBrake to carState

* fix gm
old-commit-hash: ae19308e83991c4809a785bb698d300cf7afe7e1
2022-03-14 16:32:20 -07:00
Adeeb Shihadeh
805a00b5f3 cleanup selfdrive/test (#23967)
* move test routes and test_models

* move fingerprints

* little more

* remove that
old-commit-hash: 8718a5933049d5934cc53ef31af9b5ded3223a7c
2022-03-14 15:46:16 -07:00
George Hotz
e6748f0d9d camerastream: update receive.py with some options
old-commit-hash: fa4b434e432f68dfc8944592c63f3594a9fad0b3
2022-03-14 15:02:42 -07:00
George Hotz
2621c00ec1 thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 814741dafe6a591b87d23d3b0aa9662a01f61634
2022-03-14 14:45:50 -07:00
Gijs Koning
cedd8abc05 Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a1f84ec922647c044da5df3cafc0ddc
2022-03-14 14:03:54 -07:00
Gregor Kikelj
f0ece255b4 Improve style in drive_helpers (#23962)
old-commit-hash: 08c2d066cf076134d2ec8528dd2cb245c627a7cf
2022-03-14 14:03:28 -07:00
Adeeb Shihadeh
479ac5753c longitudinal MPC: add MAX_T in T_IDXS_LST (#23960)
* longitudinal MPC: add MAX_T in T_IDXS_LST

* update refs

Co-authored-by: KexianShen <shenkexian@gmail.com>
old-commit-hash: f1aab78d085c416f9dc56f4fdfd2e1f5eb9d4b4b
2022-03-13 21:45:23 -07:00
George Hotz
37bec7bf11 12bit only (#23953)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a9b7f3bdd8a1a3137c8a04570b6ec5cc03dc6476
2022-03-13 21:43:38 -07:00
Adeeb Shihadeh
ec47e0fef0 break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
old-commit-hash: 5c3f3e44bc7b25c9ce502419bcd0261c12ec2b0d
2022-03-13 21:42:39 -07:00
Adeeb Shihadeh
b5b23a3d06 bump panda
old-commit-hash: 8f99e59c926e172bc2528af03aeca8d1a30eb0db
2022-03-13 21:26:24 -07:00
Adeeb Shihadeh
ec7f17d288 move pandad to boardd/ (#23958)
old-commit-hash: 8ac30fea24e3816622d854615b55a24440c4e53f
2022-03-13 21:21:30 -07:00
Shane Smiskol
3e61c7e6ae carControl: add long and lat active fields (#23859)
* proof of concept

* actuators packet describes which actuators are active

* bump cereal

* fixes

* not needed for this PR

* Do Toyota

* add back controlsState.active

* bump cereal

* rest of cars

* in actuators

* add active back

* which

* use controlsState.active for now

* will make an issue

* Update selfdrive/controls/controlsd.py

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

* move local lat_active checks into CC.latActive

* remove redundant checks

* move comment

move comment

* fix joystick mode

* get enabled from carcontrol

* do standstill check in controlsd

* make sure we consider the gas press case for GM

* use CC.actuators

* fix

* capitalization

* Bump cereal

Bump cereal

* make intermediate actuators

* similar convention to before

* clean that up

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 629399a44925080b2c35b6dde35c093cc2e32035
2022-03-13 20:58:44 -07:00
Adeeb Shihadeh
eabc0b5289 cars: remove duplicated cancel logic (#23956)
old-commit-hash: b9484a6a99b4abe3a0c60d83a0ad1b43926cba45
2022-03-13 20:22:49 -07:00
Adeeb Shihadeh
66e4826dac fix pre-commit install when subdirectories don't have a config
old-commit-hash: a958213ec75bf7f4020ea786e903156a678abd43
2022-03-13 20:00:23 -07:00
Adeeb Shihadeh
5af4ebb7ce no git in CI
old-commit-hash: d6f6e024b3fca004dd93b07892a31470ce2c8cf3
2022-03-13 16:37:53 -07:00
Adeeb Shihadeh
d6b95f3d2c install pre-commit hooks for all submodules
old-commit-hash: 8252134e62440ae2d19e6dce20ff9475389cdd06
2022-03-13 16:18:01 -07:00
George Hotz
f13d8a6fce add script to receive camerastream supported by camerad
old-commit-hash: 69736877d6cfe7f2a13112e08ea0dc6d0943a469
2022-03-11 20:05:59 -08:00
Shane Smiskol
b823d94018 2019+ Avalon: allow stop and go (#23952)
* Avalon actually has SNG

* update readme

* Revert "update readme"

This reverts commit 076561a0578bcc626fd6710bc411330ef13334d4.

* update readme

* fix

* variants as it includes hybrids
old-commit-hash: 156337475e51156739dc443ff6d15c9f9960c4bb
2022-03-11 19:45:30 -08:00
George Hotz
c0145ae709 camera_qcom2 refactor (#23946)
* convert camerastate to a class

* more refactor

* do the refactor in file

* put that one back

* those changes can wait

* very minor

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0adfef0b3423291101520424b3bb2c3a1b39dc6c
2022-03-11 13:37:29 -08:00
Jonathan Frey
3bd71500bd Upstreamed and update acados (#23927)
* change acados version to finalized PR https://github.com/acados/acados/pull/791

* acados: update include and x86_64 build

* acados: update pyextra

* adapt mpc files to updated acados

* acados buid: clear acados_template and include dir before updating

* update acados again

* acados MPC: only generate solver, building is done via scons

* update acados to latest acados/master

* c3 libs

* c2 libs

* acados scons files: add acados build script as a dependency

* acados scons files: add libacados.so and ocp_nlp_interface.h, build script not in files_common

* update acados

* adapts long & lat MPC file

* update acados reference commit to acados/master

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d653dd843adbd994fce6cf4088d9cf10fdbe0c52
2022-03-11 11:49:27 +01:00
George Hotz
7f819d7c39 bump submodules, fix swaglog (#23943)
old-commit-hash: 107156cd580e2f8a31b8a8e61f407511c8f570fa
2022-03-10 18:30:25 -08:00
Adeeb Shihadeh
daf951f143 add table support
old-commit-hash: 4f8ff154f322d249ef8e235abac27fb5d1500a1b
2022-03-10 17:54:13 -08:00
Adeeb Shihadeh
df812ad6a7 this is pretty nice now
old-commit-hash: bcf66c127155b9106449ae890a5b288290ff0035
2022-03-10 17:06:13 -08:00
George Hotz
7efe157848 thneed: a more sane way of doing record/debug (#23938)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5c5a56c5e616e0d2e76934662b73ce95bb6a0582
2022-03-10 16:33:35 -08:00
Adeeb Shihadeh
0734322971 positional args are nicer
old-commit-hash: 2c0d68120f594888fddfe797f74def6676f8f46a
2022-03-10 14:35:44 -08:00
Adeeb Shihadeh
8a682597ca can_print_changes improvements
old-commit-hash: 1680f1e251b8feeff9f2b8a52cef1a19f6fedf48
2022-03-10 14:32:19 -08:00
martinl
640c381325 Subaru: add FW for 2019 Subaru Impreza Sport (#23945)
old-commit-hash: 30ae47de0558ac909facf85c8d386d4b94242aa4
2022-03-10 13:01:04 -08:00
Shane Smiskol
a8a811fe3d Ford: add minEnableSpeed (#23940)
old-commit-hash: 4f4f18a648f8b5ec1fa63c60f69da1a32e60d9a5
2022-03-09 12:40:20 -08:00
George Hotz
82ac4a2bcd build: remove /system/comma (#23937)
old-commit-hash: 0ac4e8227d862e6bec163dde97dda0e835220834
2022-03-09 10:05:21 -08:00
Willem Melching
2eded18267 C3: detect metered Android hotspot (#23734)
* C3: detect metered networks

* show in ui

* fix text layout

* bump cereal

* revert ui changes

* set networkMetered

* add athena method

* add metered logging to uploader

* use in athena uploader

* remove param

* use networkmanager properties to set cell to unmetered

* fix indentation

* no need to check

* bump cereal

* review

* bump cereal
old-commit-hash: da5a0c41a00e4de076c2846ed54049c3dff3bc5a
2022-03-09 11:36:52 +01:00
Lee Jong Mun
247dff5621 ui: white color define (#23930)
old-commit-hash: 0b47800e74b02b0c6897a3950c6ff2f5fe22d895
2022-03-09 11:24:56 +01:00
Igor Biletksyy
3dcadf11ec bump opendbc
old-commit-hash: c6e0f1a94103ae6b6c879615a00ef0855560bd42
2022-03-08 16:36:41 -08:00
Gregor Kikelj
cd1ba97c07 Remove void argument (#23928)
old-commit-hash: 723560c20f18e9fc737f19b8f320ffe78b8f11cd
2022-03-08 14:51:27 -08:00
ZwX1616
ec8ce63c42 DM: update wheeltouch timeouts to match EU guidelines (#23925)
* update time to match 15/30

* add ref
old-commit-hash: 51638bfe4d411e7fa2ab99f31d4a8b8941c0c582
2022-03-08 13:11:39 -08:00
Igor Biletskyy
c60d1ca766 panda.cc: add panda deep sleep mode(#23911)
* needed for panda deepsleep mode

* add set_deepsleep to panda.cc

* rename to enable_deepsleep

* remove void

* fix value

* bump panda
old-commit-hash: 0b64ddb678ff187b027583ec89525c08f415596a
2022-03-07 18:55:16 -08:00
Adeeb Shihadeh
505e2e370c real can table column header
old-commit-hash: ab8c4f03968671abcc77e1f8145643fb3a0a8cc7
2022-03-07 17:21:07 -08:00
Robbe Derks
6ad1d31896 Add --dbc argument to plotjuggler (#23919)
* add --dbc argument

* Update tools/plotjuggler/juggle.py

* update readme

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9facd366fb267a7a1269c40b9d303b5e3e83fc6e
2022-03-07 16:04:02 -08:00
Adeeb Shihadeh
1cdaaf2560 jenkins: don't rely on SSH params (#23924)
* jenkins: don't rely on SSH param

* better ssh enabling

* fix path

* fix that
old-commit-hash: 41d8395729e63a6b3cb86dd036e07de127ecd4b4
2022-03-07 15:57:18 -08:00
Adeeb Shihadeh
04a61cefc7 Honda: remove redundant steer fault check (#23920)
old-commit-hash: 6ff643c47863cb31da8bf2c1b9f99cbd5a561d32
2022-03-07 10:37:23 -08:00
xx979xx
663579dd78 tools: add MultiLogIterator example to readme (#23917)
* update LogReader doc

use MultiLogIterator to read the entire route, get timestamps and deal with exceptions

* bring back the old example

* clean f-strings

* simplify

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: da5093045075ee7f8253fe071c74bc5b04117b34
2022-03-07 10:04:41 -08:00
royjr
388ae5e59e UI: remove redundant condition (#23918)
old-commit-hash: 82bc052dc631512f3cf871c1dc4b5c2be1cab052
2022-03-07 09:57:32 -08:00
Chris Frank
575a2eb738 HKG: Add FW for 2022 Hyundai Santa Fe (#23889)
* 2022 Hyundai Santa Fe fingerprint

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Chris Frank <chrsfr@users.noreply.github.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b9541d66c04fb8447e8be66193ff524cb051e180
2022-03-07 13:13:00 +01:00
Willem Melching
cc920702c2 bump cereal
old-commit-hash: f7fa712b6904f628d56a753f990f7ed93def12d2
2022-03-07 11:50:26 +01:00
Willem Melching
5b3447f069 bump cereal
old-commit-hash: bd3eab62a28e0f37babdf3720bf3b8a4bfc37e04
2022-03-07 11:06:07 +01:00