Commit Graph

6596 Commits

Author SHA1 Message Date
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
Willem Melching 47aec23fb3 modeld: sync based on frame timestamp (#23901)
* sync based on frame ts

* log extra frame id

* ints only

* update ref

* no rounding errors
old-commit-hash: 492398826f26b707ea9922045ef8a134a1d0cc0c
2022-03-07 10:46:15 +01:00
Willem Melching debaf85830 lower model FCW + stock longitudinal threshold to -1.25m/s^2 (#23915)
old-commit-hash: 37a8b09cad8a1040bb6f426e04c76da3d5364f98
2022-03-07 10:42:07 +01:00
Jason Young dd644fcad6 VW MQB: Add FW for 2022 Volkswagen Tiguan (#23913)
old-commit-hash: 7fc1b7dc0a5be75a3ae5d7217b9e887b34947c91
2022-03-06 10:51:26 -08:00
Jason Young 3aad8f8a70 VW MQB: Add FW for 2020 Volkswagen Jetta (#23908)
old-commit-hash: ab8f3c4c12bafbeb90e738d392bc40652c1ee56b
2022-03-05 15:40:48 -08:00
Jason Young 71794f2f4a VW MQB: Add FW for 2018 Škoda Octavia (#23909)
old-commit-hash: 3d36c1c702be5814e417e924a1137fd71799ac5f
2022-03-05 15:40:37 -08:00
Adeeb Shihadeh ce42e116c9 mac setup: add catch2
old-commit-hash: c65ca6ab1d609ac291f4b57eb3414236bd648999
2022-03-05 15:29:06 -08:00
Jason Wen 99027db851 Remove KIA_NIRO_HEV_2021 from STEER_MAX = 255 blacklist (#23906)
old-commit-hash: 2928507f447c6b4564e0fa87e567694596f26b15
2022-03-03 21:10:03 -08:00
Shane Smiskol 6303d97278 controlsd: fix vCruise jumping on pcmCruise cars (#23388)
* clean up v_cruise_kph

fix

fix

* Revert "clean up v_cruise_kph"

This reverts commit 211b5c3dbe073414ef5c39b19d6d2c6e8de2cf0b.

* always update vCruise and don't init if pcmCruise

* revert change

* update refs
old-commit-hash: 274885fc4d6b1bffafa2b78e628f4fb3005ed52e
2022-03-03 05:23:14 -08:00
Shane Smiskol 83e26d674f LongControl: fix control state oscillation (#23333)
* check if plan is to accelerate or not

* remove comment

* needed to see it

needed to see it

* test logic with Toyota TSS2

* hackily log conditions

* Revert "hackily log conditions"

This reverts commit 7a6b5691e2b982c7a1e3911d980fb7530647affd.

Revert "test logic with Toyota TSS2"

This reverts commit e583d6e3caaa5f5b896165cd7949dfc1caabfd9a.

order

* revert

* fix
old-commit-hash: 7254db3906eedf06da9e6e6947233848599a7862
2022-03-03 03:27:24 -08:00
Jonathan Frey 0d5d9a43d3 Longitudinal MPC set qp tolerance to 1e-3 (#23899)
* initialize solverExecutionTime longitudinal_planner

* test_onroad: improve timing evaluation

* longitudinal MPC: set qp_tol to 1e-3

* update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: ab371f888a8ee0d309130bd56aba04ab84820921
2022-03-02 21:38:40 -08:00
Jonathan Frey aa549592f7 remove trivial terminal constraint and associated CasADi generated functions (#23898)
* remove trivial terminal constraint and associated CasADi generated functions

* Update refs

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: 1801baba68c752ee424338cf56bd36ba3ccf1565
2022-03-02 20:53:21 -08:00
George Hotz 6b52bc6c13 model: mse err from 0.02-> 0.000056 (#23891)
* mse err from 0.028070712 -> 5.8073703e-05

* build with weights fixup

* need thneed lib also

* don't break for binaries

* static analysis says i need init

* check the bias

* load_dlc_weights

* nicer scons

* tested scons

* fix static

* pylint issue

* new ref

* a few more asserts

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: 8d6f49aecf3c83574a80c8eed42bc304a088c32c
2022-03-02 20:52:17 -08:00
Shane Smiskol c5753ccf8f Move 2020 Lexus NX 300 fw fingerprints to TSS2 (#23893)
* Revert "Toyota: add Leuxs NX fingerprint (#23808)"

This reverts commit abf08f70eec2cd6f6bb55fdf3d9e7cf71d5c3c5d.

* Add engine and fwRadar fw
old-commit-hash: 77fd64ee30da2c1a41a7df915651a7c1778b32db
2022-03-02 13:31:51 -08:00
Adeeb Shihadeh a8fec54e7b thermald: use latest modem temps (#23878)
* thermald: use latest modem temps

* move that
old-commit-hash: 52cd58068e6412cdbd2d483b864c14fb942542ee
2022-03-02 11:01:06 -08:00
Robbe Derks 98caf30f9b Fan controller cleanup + testing (#23886)
* clean up fan controllers in preparation for testing

* add fan controller to release

* add some unit tests around the fan controller

* subclass ABC
old-commit-hash: 8c971f24e37024a89ab7e7c49c001f2ea0423ded
2022-03-02 17:35:58 +01:00
Willem Melching 3c3db89b68 locationd: fix writing LastGPSPosition interval (#23895)
old-commit-hash: f4c822e8c658df69589601bdd3e2095cd9e54e66
2022-03-02 15:16:19 +01:00
Willem Melching dfd521325d camerad: log debayer + yuv processing time (#23894)
* camerad: log debayer + yuv processing time

* bump cereal
old-commit-hash: aabd9a0dff9240fdf2beb2b83b9b35ec0d1bb0b6
2022-03-02 13:56:00 +01:00
Vivek Aithal 5bad0f4400 locationd, paramsd: Check conditions before updating kalman filters (#23789)
* update filters only when all messages are alivbe and valid

* update message valid and fix unit test

* update refs

* move check outside loop

* modify fake message fn in test

* deprecate inputsOK and resolve PR comments

* avoid double looped list comprehension

* follow import conventions

* modify paramsd valid to only be invalid in case of commIssue

* update refs
old-commit-hash: 7e6903b58f141b94d645f25c5e0ce15825b60075
2022-03-02 01:01:29 -08:00
Adeeb Shihadeh 63bbcd7279 better steer fault names (#23890)
* better steer fault names

* bump cereal
old-commit-hash: 87849f93b165507ad980dbefdcf9c376d5165a18
2022-03-01 22:53:55 -08:00
George Hotz c975d35f49 minor cleanups, fix non binary compile (#23882)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 825c924c1cf63cc915f94e9e46cf0e3228451e18
2022-03-01 16:05:44 -08:00
Shane Smiskol 79d5f584d8 Update Santa Fe 2019 route (#23888)
* new santa fe route, mid-drive to parking lot

* bump
old-commit-hash: 8eab496ce3d6e3f81e833e42b2af1bb264bd00a4
2022-03-01 13:47:53 -08:00
Jason Wen 10b5e4ecd1 Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid (#23862)
* Add car port: Hyundai Ioniq Plug-in Hybrid 2022

* minSteerSpeed is 0

* Remove from crc8 checksum

* Add test route

* Revert "Add test route"

This reverts commit a76ddca8889ba1b94a0475c4e5bd4da664c22ddb.

* Revert "Remove from crc8 checksum"

This reverts commit eb2be0a20ca1f7159a671a2b3eebefae3071a77c.

* Revert "minSteerSpeed is 0"

This reverts commit 3f40eba611cf5aeacfcc66b2f77da04a25f7ebdb.

* Revert "Add car port: Hyundai Ioniq Plug-in Hybrid 2022"

This reverts commit f4084989d00733aec039ee04dab4b4246deca542.

* Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid

* Remove IONIQ_PHEV from STEER_MAX = 255

* Add additional FW version
old-commit-hash: 47aa3f60ba415eb5d25c9e82daba9fc5c63c37e0
2022-02-28 18:39:36 -08:00
Jason Young 841db8a94a VW MQB: Add FW for 2017 Audi S3 (#23881)
old-commit-hash: 0502486c16ded0af30e0e1f569683b1b4420bde6
2022-02-28 14:27:22 -08:00
Adeeb Shihadeh 2e91f016bb modeld: remove support for small model (#23803)
* modeld: remove support for small model

* use extra
old-commit-hash: 8a19d9892efacc7078f1dbbddf45afedd8afe2ec
2022-02-28 10:32:39 -08:00