Commit Graph

4876 Commits

Author SHA1 Message Date
royjr
388ae5e59e UI: remove redundant condition (#23918)
old-commit-hash: 82bc052dc6
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: b9541d66c0
2022-03-07 13:13:00 +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: 492398826f
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: 37a8b09cad
2022-03-07 10:42:07 +01:00
Jason Young
dd644fcad6 VW MQB: Add FW for 2022 Volkswagen Tiguan (#23913)
old-commit-hash: 7fc1b7dc0a
2022-03-06 10:51:26 -08:00
Jason Young
3aad8f8a70 VW MQB: Add FW for 2020 Volkswagen Jetta (#23908)
old-commit-hash: ab8f3c4c12
2022-03-05 15:40:48 -08:00
Jason Young
71794f2f4a VW MQB: Add FW for 2018 Škoda Octavia (#23909)
old-commit-hash: 3d36c1c702
2022-03-05 15:40:37 -08:00
Jason Wen
99027db851 Remove KIA_NIRO_HEV_2021 from STEER_MAX = 255 blacklist (#23906)
old-commit-hash: 2928507f44
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: 274885fc4d
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: 7254db3906
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: ab371f888a
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: 1801baba68
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: 8d6f49aecf
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: 77fd64ee30
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: 52cd58068e
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: 8c971f24e3
2022-03-02 17:35:58 +01:00
Willem Melching
3c3db89b68 locationd: fix writing LastGPSPosition interval (#23895)
old-commit-hash: f4c822e8c6
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: aabd9a0dff
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: 7e6903b58f
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: 87849f93b1
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: 825c924c1c
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: 8eab496ce3
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: 47aa3f60ba
2022-02-28 18:39:36 -08:00
Jason Young
841db8a94a VW MQB: Add FW for 2017 Audi S3 (#23881)
old-commit-hash: 0502486c16
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: 8a19d9892e
2022-02-28 10:32:39 -08:00
Comma Device
ed59474387 THNEED_DEBUG env var support
old-commit-hash: 83159a09bf
2022-02-28 09:30:43 -08:00
Jason Wen
2df2e0d476 HKG: Add FW for 2022 Kia Niro HEV (#23863)
* HKG: Add FW for 2022 Kia Niro HEV

* Expand model year
old-commit-hash: 6a072886e9
2022-02-28 11:48:01 +01:00
sintman
4678cae5b6 Toyota: add Leuxs NX fingerprint (#23808)
old-commit-hash: 4f999b44c6
2022-02-27 22:01:55 -08:00
teknonut
ed1c3bb860 HKG: Add FW for 2021 Hyundai Santa Fe (#23858)
old-commit-hash: bfa854f31c
2022-02-27 22:01:01 -08:00
seven121-ym
156fe4f533 Subaru: add FW for 2019 Subaru Impreza (#23873)
* Update values.py

* Update selfdrive/car/subaru/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9a663214b9
2022-02-27 21:57:42 -08:00
Adeeb Shihadeh
9c5a470241 Hyundai: add FW versions for 2022 Elantra
old-commit-hash: 45a5297e77
2022-02-27 11:06:23 -08:00
Robbe Derks
1edd9bfb60 fix kF value for thermal PI controller (#23871)
old-commit-hash: f539d9c0bc
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: a1875ac6f0
2022-02-26 00:54:35 -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: d09dffb7cd
2022-02-25 14:16:44 -08:00
Willem Melching
7e12817e02 MacOS: ensure 1:1 rendering on HiDPI screens (#23860)
old-commit-hash: ca8d4e417e
2022-02-25 14:36:27 +01:00
Adeeb Shihadeh
89466907cb Subaru: add Ascent FW values (#23848)
old-commit-hash: 71cf938c51
2022-02-23 17:34:39 -08:00
martinl
2caf297f69 Remove unused MPC_COST_LONG class (#23843)
old-commit-hash: 160a8cfd58
2022-02-23 17:26:05 -08:00
Ross Fisher
aefdfa377e Toyota: remove outdated comment (#23844)
old-commit-hash: 49c42c3cd4
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: 04b2545ec0
2022-02-23 15:44:17 -08:00
Adeeb Shihadeh
11ca91fadc boardd: handle missing pandas
old-commit-hash: 767bc1aa3b
2022-02-23 13:35:56 -08:00
Robbe Derks
f767c1b930 this seems to about what my car converges to (#23836)
old-commit-hash: f4d91f71a5
2022-02-23 16:03:31 +01:00
Willem Melching
1597a03cec Fix watch3 on mac (#23834)
old-commit-hash: a03685c3f9
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: dc7de79dc9
2022-02-23 13:52:50 +01:00
Willem Melching
33a4fda7fd replay: use QCoreApplication (#23831)
old-commit-hash: df88280e0f
2022-02-23 13:34:31 +01:00
Adam Wallner
ab90df48fd Added (Ecu.eps) fingerprint for Hyundai Ioniq EV 2017 (#23823)
old-commit-hash: 52266b9cd1
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: c483a9724d
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: 3243d1a81e
2022-02-22 22:30:11 -08:00
Greg Hogan
ff7419bf32 script to clear DTCs
old-commit-hash: de178ea79c
2022-02-22 16:15:39 -08:00
Adeeb Shihadeh
30b63dc0d4 Toyota: fix flaky EV detection (#23825)
old-commit-hash: 0965155a5b
2022-02-22 16:15:09 -08:00
Adeeb Shihadeh
4ab3f4c5de adjust comma two model timing thresholds after bigmodel
old-commit-hash: c98d9791f0
2022-02-22 13:16:23 -08:00