Commit Graph

3680 Commits

Author SHA1 Message Date
Willem Melching
2e285bea20 Continuously update offset between TSS2 angle sensors (#21943)
* Continuously update offset between TSS2 angle sensors

* add comment

* less lines

* only when initialized

* init to None

* update ref
old-commit-hash: c15a616ac44e238e6c5866bc57b5c6b524c765d6
2021-09-01 15:00:52 -07:00
Willem Melching
503fe7421a Add script to rerun process on route and generate new logs (#22100)
* add script to rerun process on route and generate new logs

* cleanup

* move to root

* newline
old-commit-hash: 3b13eb8c7de713d2dcd18fb3a731a6529d66aa82
2021-09-01 14:48:41 -07:00
sshane
3150250f00 UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a38f8c89876fad3c221e95e8fc572ded.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6fad0055b464492d6457597116125f50155b74a3
2021-09-01 14:33:06 -07:00
Willem Melching
60e7e09127 Ensure that first segment starts with all cameras on the same frameId (#22096)
* test that segment starts with the same frame id

* improve test

* add sync logic

* atomic max

* review comments
old-commit-hash: a93271a518b466cd83699acd8598a0361ee9a02b
2021-09-01 14:28:50 -07:00
Dean Lee
45ea7cc5e4 driverview.cc: cleanup paintEvent (#21531)
old-commit-hash: 30ec2bc403b9741520b0f580f8b78752cd111d8b
2021-09-01 13:56:07 -07:00
grekiki
afe4df11dd Add angleError to pid_log (#21611)
* add angleError

* Log all the time

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 21fad4d1adcaea1fd802f8dcb80f267d6d5b19d3
2021-09-01 13:45:22 -07:00
Dean Lee
ae5c6aeae6 HomeWindow: cleanup mousePressEvent (#21683)
* cleanup mousePressEvent

* show/hide map in onroad

* merge master
old-commit-hash: 579fb8072a002dc0794fe8584ca0f0edc6682a35
2021-09-01 13:30:33 -07:00
Erich Moraga
06c7d5af32 Add missing COROLLA_TSS2 engine f/w (#22097)
`@webnz#4042` 2019 Toyota Corolla ICE DongleID/route 4468e4365edecd70|2021-08-31--22-07-53
old-commit-hash: f8052cb80adf9ea43f9517ddd1622da7ebb888f7
2021-08-31 23:10:07 -07:00
Felixowns
010d7cf7fe 2018 Sonata 2.0T Limited Fingerprint (#21823)
* Update values.py

* cleanup

* add 2nd tranmission FW

* Apply suggestions from code review

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 676fb6740b42f64a6d16f81a3a0fe415be3fa0fa
2021-08-31 16:28:37 -07:00
Dean Lee
4c17c06799 Handle EINTR for all syscalls that can return it (#21948)
old-commit-hash: f02c8d0e2c04e45ceeea9f2fe9851319d724a637
2021-08-31 16:22:56 -07:00
robbederks
f8085a47ef Smarter thermal controls for tici (#21923)
* dumb controller 'tuned' on a desk

* reduce Ki

* fix prev_time bug

* reset integral on going onroad

* cleanup thermal detection logic

* more minor tuning

* use controls' PI controller

* get rid of bat_temp

* change if once more

* cleanup

* cleanup import order

* add back bat temp in this PR

* move to constructor

* consistency

* add bp

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f539cd45c99034d379c797bb7faeb0e0dc44899e
2021-08-31 12:29:53 -07:00
Willem Melching
fe3e0532e2 Populate angle offset in carState for Toyota accurate angle sensor (#22091)
* populate angle offset in carstate for TSS2

* update ref
old-commit-hash: b8e4717f72ed8175e3c403711917c759ce2483c0
2021-08-31 11:34:00 -07:00
Jason Young
c47ef1dd39 HKG: Add FW for 2018 Hyundai Kona EV (#22051)
* HKG: Add FW for 2018 Hyundai Kona EV

* try to fix FCA error on engage

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: acabdf5866858796cbaecf7e99eae04f8ae8e23c
2021-08-31 11:25:12 -07:00
Adeeb Shihadeh
1244074094 add TSS2 replay route (#21953)
* add TSS2 replay route

* skip on sim

* do not set on import time

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 86f68ff22ed184dc40bfe58761a554aea1e3995e
2021-08-31 10:48:21 -07:00
robbederks
22fe4c0a12 Tesla radar interface (#21932)
* tesla radar interface

* add  tesla radar dbc to release

* rerun jenkins

* forgot to clear the message set

* trigger message

* raw data points

* cleanup

* rerun jenkins
old-commit-hash: 41934c9a9b5615d8dff6f061a1ca46455839f5e1
2021-08-31 07:30:51 -07:00
Dean Lee
f2d7b27cbd boardd: remove global panda (#21962)
old-commit-hash: 8008cf554771284fecf8794839601bc7afa7a7a2
2021-08-31 07:25:53 -07:00
Dean Lee
94d1866ccd camera_qcom2: new functions device_acquire & device_config (#22077)
* new function device_acquire & device_config

* add space

* apply reviews

* use the specified struct for each command

* fix typo

* apply review

* remove static

* revert device_control
old-commit-hash: 0d3eec385cb65b9f962f6fbbc05e0f62b751239f
2021-08-31 07:21:40 -07:00
Dean Lee
bdc758e769 ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
old-commit-hash: 1786416e3cefcd6562f18954aa81b759d0fcf2f4
2021-08-30 22:16:48 -07:00
Jafar Al-Gharaibeh
e6f91750cd Mazda 3/CX-5 FW (#22087)
* Mazda 3 2017 FW

dongle-id: 2f26dfe847d7c138

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* CX-5 fw

dongle id: 769d87694463b543

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
old-commit-hash: cb63a89dd026414b224ba204cd1378f46d638c9b
2021-08-30 22:14:49 -07:00
Adeeb Shihadeh
faee789b90 Update Honda HRV DBC (#22086)
* update honda hrv dbc

* fix release files
old-commit-hash: b4e9ab9343ff245aa3bbb2b05048092349fc0849
2021-08-30 22:14:35 -07:00
Dean Lee
5f64289206 camera_qcom2: use macros for link control operations (#22088)
old-commit-hash: ee5ef4dab25b638837fecae3fbb1c9acc615b65a
2021-08-30 22:10:18 -07:00
Adeeb Shihadeh
7611b94e51 fix boardd reconnect loop (#22081)
* fix boardd reconnect loop

* add that back
old-commit-hash: 0e3462e0510d6b8708a478b9a78855d5965777f1
2021-08-30 21:25:48 -07:00
Dean Lee
0b185aea54 dmonitoring: improve yuvframe2tensor (#21996)
* use Y,U,V

* use a pre-calculated table

* add variable use_snpe_model

* .dlc

* remove if
old-commit-hash: 784b3a2ac9725dbf1c8e2c32e4b54e248ec24120
2021-08-30 21:23:01 -07:00
Dean Lee
8869697c49 Params: faster atomic clearAll (#21973)
* faster clearAll

* use unlink

* fsync_dir if removed > 0

* remove macro ERR_NO_VALUE

* always fsync

* keep call to unlink

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 383ff35790705ec3bbc8d36215fe1c2dde5edef3
2021-08-30 19:47:47 -07:00
Dean Lee
ecf3ee7603 loggerd: create encoder threads from cameras_logged (#21875)
old-commit-hash: d9baaf7eb90f0815c4d635d33244975ad71876d2
2021-08-30 19:33:00 -07:00
Igor Biletskyy
2e1ea456f0 add function to list connected pandas to panda.cc (#21989)
* add list() to panda.cc

* std:size instead of sizeof

* refactor usb init

* change serial length to 26 to get null terminated

* safer char to string

* forgot variable

* initialize descriptor array

* ...

* move init usb out of class

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 603ad435bef2a1db28b294b36768fda5f53fc814
2021-08-30 19:20:50 -07:00
Dean Lee
7b9555df75 camera_qcom2: refactor open_v4l_by_name_and_index (#22067)
* refactor

* small cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: cf4ad99554ddbc7a96984f8876c733b4ee379656
2021-08-30 17:12:22 -07:00
Dean Lee
0fac38e34f LoggerState: test cases (#21855)
* test multiple threads writing to log

* fix typo

* use util::getenv

* check INIT_DATA and SENTINEL

* test END_OF_SEGMENT

* add comment

* test multiple threads logging and rotation

* cleanup

* update

* LoggerHandle:quick fix

* cleanup

* revert test_loggerd.py

* refactor test case

* check lock file

* check refcnt after close

* test_runner.cc

d

* int eixt_signal
old-commit-hash: 935cbd3139993eac84f7936dfdb191deb86114f1
2021-08-30 17:12:09 -07:00
Dean Lee
467348f803 Params::put: fixed the wrong call to Params::remove instead of global ::remove (#21974)
* fix bug

* use unlink
old-commit-hash: 6be8520a84f7d43d1df5bc529a75be40be5f805b
2021-08-30 16:31:27 -07:00
Willem Melching
33c50f5ea6 revert ioctl changes to thneed
old-commit-hash: 813ddb0c18464ff2e8a62357cb621415b7edab88
2021-08-30 16:30:50 -07:00
Dean Lee
073898d8fd retry ioctls while errno == EINTR (#22054)
old-commit-hash: 31230e5b60aac7a7968a80d14e96f0a6fc9a9222
2021-08-30 16:07:34 -07:00
Dean Lee
6d054a0012 camera_qcom2: remove req_mgr_session_info from CameraState (#22059)
* remove req_mgr_session_info from CameraState

* handle should be int32_t
old-commit-hash: 37dda3d6bf98e86304bf19e88530cff60204fa45
2021-08-30 15:32:31 -07:00
Dean Lee
92627760de camera_qcom2: fix memory leaks in camera_open (#22061)
old-commit-hash: 7a80bf7fcc05b6955dd26dbbc1f6b44721f90781
2021-08-30 14:59:04 -07:00
HaraldSchafer
39aa741c32 Treat ILX braking like other Nidec hondas (#22078)
old-commit-hash: 68066168bed76ee99e0adfea6881e528ebd9d8fe
2021-08-30 13:47:13 -07:00
HaraldSchafer
a73a820338 Change car controller interface from gas/brake to acceleration (#21911)
* retune civic

* seems smooth

* back to normal

* new ref

* fix conflict

* runs

* rm

* accel scale is 4

* toyota should be good

* more cleanup

* fixup

* better naming

* update ref

* deprecated

* sending brake when not enable causes a fault

* rm gas and brake

* unused

* update ref

* acura logic is no more

* wrong before

* revert tuning cleanup

* adress comments

* update ref

* already on master

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1ac89f14aa7c45c56049e8dbb0d6c5bb83a0fc6b
2021-08-30 09:32:52 -07:00
Dean Lee
75f686f728 camera_qcom2.cc : fix wrong LOGD order (#22072)
old-commit-hash: 862f93f7f13ea8d4a3fabf30f97f7f624358b22b
2021-08-30 09:21:35 -07:00
kingkwok444
95e913f994 Toyota Corolla 2021 FW versions (#22074)
old-commit-hash: d859e326315a3001b72405e7431fcca9dd0953c2
2021-08-30 09:20:59 -07:00
ambientocclusion
488f3b2624 Fixed build issues on macOS (#22075)
* Fixed deprecated enum value

* Changed to build Qt replay on macOS
old-commit-hash: ed271911c218e37eb4eac8bca4e0e7b3f8acce06
2021-08-30 09:18:14 -07:00
Adeeb Shihadeh
b3e3708dbc Revert 2021 Accord (#22063)
* bump panda

* Revert "Car Port: 2021 Accord 2.0 Touring & Hybrid Touring (#22007)"

This reverts commit b305a94049606c7a92aebf0e50dc21eda58aa017.

* revert release notes

* bump panda
old-commit-hash: 4be956f8861ecbb521ef9503a3c87b07c9d36721
2021-08-28 21:28:14 -07:00
Willem Melching
6f92abc815 Less open file permissions (#21922)
* Less open file permissions

* add test back

* remove params test for permissions

* remove umask

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dddab597bcee0a103895509b7909743f97cbdf83
2021-08-28 18:25:05 -07:00
Dean Lee
88878cc2cd qcom2/enqueue_buffer: use macro CAM_MEM_FLAG_HW_READ_WRITE (#22060)
old-commit-hash: 0f4227f42b2a3610d6e26d5ad4f249fbf77f7dda
2021-08-28 17:43:50 -07:00
Adeeb Shihadeh
d0dce9a166 don't check cpu usage in simulation mode
old-commit-hash: 9afa0eec6451a37a0dc0c39bf4837edd2ad53531
2021-08-28 14:55:12 -07:00
Dean Lee
2658ef5243 camera_qcom2.cc: use V4L_EVENT_CAM_REQ_MGR_EVENT (#22057)
old-commit-hash: ffb1dd019ecad9f2230cea501cec9007229ab102
2021-08-28 14:49:56 -07:00
Dean Lee
eb17b4403e camera_qcom2: remove unused variables from MultiCameraState (#22058)
old-commit-hash: df6432c8cda96b0fe2d8e7d81a23295552fbc482
2021-08-28 14:44:30 -07:00
Adeeb Shihadeh
8cbf48b550 add fit to widget option to camera view (#22056)
* add fit to widget option to camera view

* add clicked signal

* cleanup

* use release for driverview

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 86a73497de4618c7a83bfa5038fa2d27e0aadec2
2021-08-28 13:08:48 -07:00
Dean Lee
ea344bb52f panda_state_thread: replace stoi with atoi (#21981)
old-commit-hash: 3b0b20ba4bab2a32d28145000a4f260ad38ea402
2021-08-27 14:25:24 -07:00
jonjander
6c2ea83efe Add Kia Niro EV 2020 FW (#22047)
* Added esp fw for Kia Niro EV 2021

* Added Niro EV 2021 to README

* fixed end of line

* Update README.md

* Update README.md

Co-authored-by: Jon Jander <jon.jander@ptj.se>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e38844ab5039ce78ea6cfdecd2741081454cde6
2021-08-27 14:11:49 -07:00
Adeeb Shihadeh
9de66112fb remove deprecated mpc logging code
old-commit-hash: 9be7cf2cdaa4c274cc4fd55797ac5d6421fc9652
2021-08-26 13:33:43 -07:00
Adeeb Shihadeh
de3bb92025 installer: add cache path on userdata (#22045)
* installer: add cache path on userdata

* keep legacy as is

* only copy

* print cache path

* comment
old-commit-hash: 6c25b44369228915c825bbd1b178dc32f8505395
2021-08-26 10:43:47 -07:00
Adeeb Shihadeh
8a381a11db remove duplicate fw
old-commit-hash: 822e93af3af3d2de591624f4a6c73f102e4ef417
2021-08-25 22:42:07 -07:00