Commit Graph

5100 Commits

Author SHA1 Message Date
Robbe Derks a6e6667a3a Thermald thermal state cleanup (#21959)
* 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

* cleanup thermal status logic

* use offroad danger temp

* revert that

* use ordered dict for prev/next bands

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: 86bceed57da78ff6b182d6dae46556958df28494
2021-09-03 17:19:11 -07:00
Adeeb Shihadeh 9e973a2059 Revert "bump panda"
This reverts commit 6dea7b67f43ea769e56285fd60add9ce2316d884.

old-commit-hash: 2b62b5a117eba80c683c3dd6113c22bd5357f284
2021-09-03 16:56:31 -07:00
martinl bd7c90f233 Subaru: replace stock LKAS alerts with openpilot's (#21993)
* Add stock LKAS alert filters and openpilot LKAS state indicator

* Update ES_LKAS_State signals

* bump opendbc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d32b1f703ce9606c46177ba70e4de5082d588d06
2021-09-03 16:53:49 -07:00
Willem Melching 23fd959269 bump panda
old-commit-hash: 924a30350e1b7c5b7c75352e4a3d88cfd3ef1b90
2021-09-03 16:15:49 -07:00
Adeeb Shihadeh 4a499114b2 only toggle sidebar visibility when clicking on the onroad widget
old-commit-hash: ee7682ae4a53d8b85872cf1f06e614c740edf9c9
2021-09-03 15:45:02 -07:00
Harald Schafer b7b349529a need to add gas here
old-commit-hash: 054c912b9a7169645f1f45dd95b73bf3876a78ad
2021-09-03 14:01:24 -07:00
John Belmonte 03f3b49f1e Honda CarState: clean up unnecessary instance attributes (#22117)
old-commit-hash: e7c49929009d3d9f443ec1c36f4551b42187c85e
2021-09-03 09:43:30 -07:00
Adeeb Shihadeh 63bd138cd8 update aarch64 acados libs (#22113)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 308a584defcb4128efcace0212cea48cfae5a108
2021-09-02 17:49:20 -07:00
Adeeb Shihadeh ffb5cc5882 remove old can replay script
old-commit-hash: bd79e7f023889b080cc513ef5dda80c04c1a2ced
2021-09-02 16:56:13 -07:00
Adam Boeglin 841091d6d7 Added fingerprint for 2018 Jeep Trackhawk (#21976)
* Added fingerprint for 2018 Jeep Trackhawk

When connecting the Comma3 to my Trackhawk with the latest jvePilot beta, it showed the error "Car Unrecognized: Dashcam Mode".

Obtaining this fingerprint resolved the issue. I don't know if it works with any other model years.

* merge fingerprints

* add missing vals

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b5daca388199b8d295f086a769dcaded471d4252
2021-09-02 15:12:43 -07:00
martinl c3d2766744 Subaru: universal signal for ACC speed units (#21995)
* Change ACC Speed Units signals for Global and Pre-Global

* Use Dash_State UNITS signal for Preglobal

* Change Subaru Preglobal to use Dash_State2 UNITS signal

* bump opendbc

* cleanup

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d3113fe01a16a25ec0c32b00cd53c08d98277dac
2021-09-02 14:21:35 -07:00
Dean Lee a02ecc02c4 ONNXModel: use the actual model file name (#22084)
* use the actual file name

* use macro

* fix typo

* continue

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7db04ab0c5e1876f6c6bfe6c407a19c4df80158b
2021-09-02 14:21:15 -07:00
HaraldSchafer 1b98341932 Prevent PID windup on Honda NIDEC (#22112)
* add higher set speed

* freeze when close to cruise

* dont bias this

* higher set speed

* start high

* 2mph might be needed

* better condition

* limit accel windup like this

* wrong name
old-commit-hash: ebf2a2279d837feb3ce55a7bc44c7f0053e77f27
2021-09-02 14:16:44 -07:00
John Belmonte 259d3554dd Honda HR-V: set standstill (#22009)
* fix apparent Honda HR-V bugs

  * CarState.standstill was not set
  * CarState.gas was not derived from GAS_PEDAL/CAR_GAS

* revert gas change

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 44c546c92a533f48fc6a41e817d5efa2932c9116
2021-09-02 14:05:00 -07:00
Adeeb Shihadeh d9cbac72db fetch all branches on internal installer
old-commit-hash: 145fd88debceea1b16a30ef0f234ab84f4157ad5
2021-09-02 12:09:42 -07:00
HaraldSchafer 0551450068 no more old nidec (#22104)
old-commit-hash: c93f3b10f725ee581884faa764407866fb69733c
2021-09-02 12:05:03 -07:00
Jason Young 3d5930950b VW MQB: Mechanical sort of UDS FW values (#22111)
old-commit-hash: 619beb3942eeb950a391a31ee24da2acad89bd3d
2021-09-02 10:26:48 -07:00
Jason Young b15db1cb4c VW MQB: Add FW for 2017 Volkswagen Golf (#22110)
old-commit-hash: d9e2ecb01ce5e1f6b742adc7e986f85d6f48f9d6
2021-09-02 09:10:21 -07:00
Willem Melching e49dd50f98 Disable encoder sync logic if only one rotate camera present (#22107)
* disable sync logic if only one rotate camera

* consistent brackets
old-commit-hash: 48035e9535ba362e382d01282a1475b4ace2778a
2021-09-01 23:08:06 -07:00
Harald Schafer 4e7cca187c unused
old-commit-hash: a4ae99a489911bcaa0fe86633b7c6e21ae2a09fe
2021-09-01 16:46:17 -07:00
Erich Moraga 9f54856d27 Add missing CAR.HIGHLANDER_TSS2 engine f/w (#22102)
`@gusguz#5296` 2021 Toyota Highlander   DongleID|route 6519c1e9abaf1ddf|2021-09-01--17-18-47
old-commit-hash: 959202e55568acab8851bcb8568cee7bccdb1063
2021-09-01 16:37:55 -07:00
HaraldSchafer 5a18dbec0c More acados libs (#22101)
* not everything should be called acados

* add libs
old-commit-hash: 17f066e2fe7c1c4b6a541def7a8c75cdafdd4786
2021-09-01 16:06:08 -07:00
Willem Melching a06ffc48c1 Smarter longitudinal lag compensations (#22094)
* smarter lag compensations

* need to use speed from plan

* update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: edae2218d76e3fb81839eabab344c9dabc852fe9
2021-09-01 15:28:16 -07:00
Dean Lee 48b7754ab5 fix: util::read_files_in_dir does not always return a correct result (#21883)
* fix bug

* use de->d_type==DT_REG

* Revert "use de->d_type==DT_REG"

This reverts commit ecb38c82305ea23bfec84284aa77be5b5c64957a.
old-commit-hash: 83710b14ee8cf043576dba8f3707fc585067167e
2021-09-01 15:10:59 -07:00
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