Commit Graph

1045 Commits

Author SHA1 Message Date
Adeeb Shihadeh f68770eb3a test onroad: update dmonitoringd cpu usage
old-commit-hash: 62bb70ef2987647e9a9bb93af21f5424c617bafe
2022-08-21 14:29:52 -07:00
Jason Wen 79dfc5293a Hyundai: Car Port for Tucson Hybrid 2022 (#25276)
* Hyundai: Car Port for Tucson Hybrid 2022

* Update RELEASES.md

* Init gear_msg at the top

* FW versions from script

* Button send attempt

* start with some cleanup

* Send button fixed bits

* Define all bytes and only send PAUSE/RESUME

* Use CRUISE_INFO to cancel cruise and resume

* 8-bit counter

* Cleanup ish

* 8 bit counter

* Send at 20ms

* Disengage bits

* Revert bump submodules

* Allow tx on 0x1a0

* Fix byte counts

* Send LFA and HDA icons based on engageability

* Send cruise buttons only on HDA2 cars for now

* Add comments

* Add FLAG_HYUNDAI_CANFD_HDA2 flag

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Bump submodules

* Bump panda

* Bump opendbc

* Allow tx with CRUISE_INACTIVE

* GEAR has 24 bytes only

* Generate car docs

* Fix CRUISE_INFO copy

* Remove unused class

* Add CAN-FD busses to unit test

* Bump opendbc

* Revert "Add CAN-FD busses to unit test"

This reverts commit 2f751640408a7f73a9100947cbd95ea13fbb8a48.

* Remove duplicate

* New tune based on data

* Panda safety cleanup

* Include bus 0 in rx checks

* Missed one

* bus 6 check

* Remove redundant check

* Add comments

* Bump opendbc

* Sync with DBC

* Hide LFA icon when disengaged

* Little endian

* fix comment

* more conditions in carcontroller

* update pedal signal

* update tuning

* cleanup carcontroller

* bump panda

* fix mismatch

* alt buttons

* little more cleanup

* update refs for EV6 new safety param

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bd5e28909f4576699717f8a2f6751f0d9fdfecc0
2022-08-19 20:14:30 -07:00
Shane Smiskol 70682e04cf Toyota: remove STEERING_LKA frequency check (#25490)
* remove STEERING_LKA frequency check

* bump to master

* Update ref_commit
old-commit-hash: e5bb55ccd69fa42777fcd4d836adc777feff9cb1
2022-08-18 22:23:39 -07:00
Shane Smiskol 2bd8ee0974 controls: block resume if cruise not previously engaged (#25402)
* see if this works at all

* can revert this

* think adding a no entry conditionally is nicer

* then we can revert this

* 0 makes more sense

* Revert "0 makes more sense"

This reverts commit efc89e8a2389ef58fbc0cec0a2872d24db524867.

* gm CC uses > 70

* bump cereal

* comment

* test on Honda

* whoops

* works

* add exception with todo

* moved button enable events to controlsd

* get rid of that

get rid of that

* different values for now

* car interfaces add enable event, controlsd can block it

* Regen and update refs

* delete if not set

* One place

one place

* regen routes are uninitialized first few frames

* Trim start of segment so it's like original segment

* stash

* regen

* not working

* clean up

* more cleanup

* revert

* bump ceral

* actually check resume button

* whoops

* pcmCruise cars don't use setSpeed, so we're good

* engage correctly in sim

* Update ref_commit

* Update refs
old-commit-hash: 5ed587ebeff24bacf70c44879616c51756730bba
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh 15e9bc319b Chrysler: ensure control bit is high before torque cmd (#25465)
* Chrysler: ensure control bit is high before torque cmd

* move that & update refs

* check control bit too
old-commit-hash: e0e0aad144f1e47486faa8c06d54d29c3dd94c79
2022-08-17 15:20:18 -07:00
Shane Smiskol 28a60fb42e process replay: initialize controlsState with original route (#25461)
* push

* do process replay

* commit

* update refs

* clean up

* clean up controlsd

* clean up controlsd

* Add assert

* debubuggier param name

* can be peristent

* Revert "can be peristent"

This reverts commit 6e6d3f6423c26a202623cef728e038259e9e46cd.

* Update selfdrive/test/process_replay/process_replay.py
old-commit-hash: 87ca42e993f1cc96cc313e33b3c538143e0a737c
2022-08-16 22:02:03 -07:00
Shane Smiskol 5e393a41a4 process replay: show errors when updating refs (#25460)
* Update test_processes.py

* Apply suggestions from code review
old-commit-hash: d7095d0d4368f0168433455f16236151a91ef83c
2022-08-16 19:39:11 -07:00
Shane Smiskol 1b59eba31e regen: initialize once (#25458)
regen: init once
old-commit-hash: b3dc7bb3cb75661993c068b993712a3a9f5238a2
2022-08-16 18:40:30 -07:00
Jason Young b1590ae851 VW PQ: Volkswagen Passat NMS (#24768)
* VW PQ: Volkswagen Passat NMS

* regen CARS.md

* vEgo from Bremse_1 vehicle speed

* sync opendbc to master

* handle checksums and counters in opendbc

* LDW HUD message handling

* GRA_Neu_Zaehler -> COUNTER

* bump opendbc

* stub in till we find platform ACC standstill

* bump opendbc

* bump opendbc

* placeholder lateral accel data

* regen CARS.md

* counters now directly supported in opendbc

* additional door-open signals

* add trunk lid state

* add doors and trunk lid to signals list

* LDW_Status updates and passthrough

* bump opendbc for typo fix

* update AWV comment

* another comment update

* regen CARS.md with PQ in dashcam only

* don't show NMS footnotes while still in dashcam

* polish

* add stubbed-out dashcamOnly prep

* VW MQB: Cleanup stock ACC button handling

* bump opendbc and panda

* use controls resume output as trigger

* these can wait until taco bell

* bump opendbc

* pass through of previously fixed value

* retry CI

* checks already done in carcontroller

* don't need these anymore

* reduce diff for now

* slightly better abstraction

* more engine and trans FW

* turn signal is instantaneous stalk position

* weak sauce :(

* better clarity

* try torque tune

* add test route references

* bump opendbc and panda for OP long

* don't show steering faults for 3 seconds after start

* longitudinal control senders

* a little more torque

* test hax to torque control

* test a little more delay

* allow use of manufacturer ramp-up rate

* soften wheel-touch threshold

* Revert "test hax to torque control"

This reverts commit d1af459c29e36264aae406f72b8fcbc9ef22b9e0.

* punch it Chewie

* better ACC state and mainswitch handling

* a little more

* tweak max accel gradient

* oops

* also oops

* stuff

* srsly

* that's not how this works

* regen CARS.md

* footnotes now properly excluded for dashcam cars

* this wasn't a problem

* update network location detection

* bump submodules for ACC main switch

* clean up DBC references and long flag

* bump one more time

* one more time

* follow CANPacker counter refactor

* bump opendbc

* sync opendbc to master

* bump panda to fix Subaru tests

* DBC handling cleanup

* fix

* model-year stretch

* cleanup and rate bugfixes

* better abstractions

* simplify create_lka_hud_control

* volkswagencan -> mqbcan

* bump panda

* fix doc data bug, regen CARS.md

* style updates; diff reduction

* use common button enable logic

* not needed anymore

* refactor TSK and HUD enum values

* make common button events function

* consistency

* bump panda

* bump panda

* dashcam only

* don't need process_replay yet

* regen CARS.md with Passat NMS in dashcam

* can't handle dashcam-orphaned footnotes yet

* remove outdated standstill handling

* editor tried to be too helpful at some point

* don't need to import this anymore

* Apply suggestions from code review

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

* follow parkingBrake refactor

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c27d7913f2db43ec668dd068199bc568802dd809
2022-08-16 14:32:59 -07:00
Shane Smiskol 64195b3c99 process replay: print correct ref path (#25448)
* fix log paths ref printing in process replay

* rm that

* this is easier to read

* fix model_replay
old-commit-hash: 4602e5a8f9e23f173635e9e00a60ab3b73deb254
2022-08-16 00:32:42 -07:00
Chris Souers 179b0d1a81 Lateral planner: Don't prompt/initiate lane changes if lateral control is not active (#25436)
* Don't set lane change events if we're not able to steer.

* more specific variable name

* update process replay socket config

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5b1ba4f1357ac7f385ee47c78b38cfb81bef42ab
2022-08-15 11:37:24 -07:00
Shane Smiskol 40189c8d3f GM: move set speed scaling to DBC (#25422)
* Move scaling into DBC for GM cruise setpoint

* bump opendbc

* no int

* Update refs

* Update ref_commit
old-commit-hash: f341df006a002a47034787673893f930caa81b53
2022-08-15 02:13:09 -07:00
Jason Young 7560dd6973 VW: Additional PQ / long control prep (#25427)
* VW: Longitudinal support prep

* minimize diffs

* make common button events function

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1f0a435763d6a3aa3fa6b7307450f73379de1185
2022-08-13 11:45:23 -07:00
Robbe Derks a353cc8627 Use steeringAngleDeg for angle control saturation warnings (#25404)
* use steeringAngleDeg for angle control cars

* update refs
old-commit-hash: 24645c92dadebaf69e1115d0ccd44edba4148b65
2022-08-12 11:30:19 +02:00
HaraldSchafer 48522500ea Falcon Punch Model: turn cutting improvements (#25413)
* simplified change to mpc dynamics

* add jerk pts

* increase jerk cost

* increase jerk pts multipler to master value

* Add final commit

* 1456d261-d232-4654-8885-4d9fde883894/440 ac1a6744-85b0-4ec6-8ba7-608d0717b8f1/750

* some copies are useful

* update model replay ref

* less frames in model replay onnx cpu

* 1456d261-d232-4654-8885-4d9fde883894/440 264b67f5-3f52-4b58-b11f-58dd8aaf08bf/950

* 1456d261-d232-4654-8885-4d9fde883894/440 236fc556-fba3-4255-8ccf-684b22637160/950

* c9d10c64-bea4-41ec-8ca3-d8c886fda172/440 26d73dd2-862a-44ae-bbdd-32cc4f397ad7/900

* Fix couple tests

* Update ref

* Unused for now

* Add lateral factor comment

* Unused variable

Co-authored-by: nuwandavek <vivekaithal44@gmail.com>
Co-authored-by: Bruce Wayne <yassine@comma.ai>
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
Co-authored-by: Bruce Wayne <batman@gpu06.internal>
old-commit-hash: 041458f632f197de3c954ed4a08650fbcb24690a
2022-08-12 00:47:59 -07:00
YassineYousfi 6709805020 Model file too big: Revert "New model: minor fixes" (#25390)
Revert "New model: minor fixes (#25368)"

This reverts commit 4e69dfab07507510eb52f532e7038b01f83471b7.
old-commit-hash: 3afe7464dfc6a356f8eed4b30e3c79a2c32a5cf0
2022-08-08 12:42:46 -07:00
HaraldSchafer f8a05617a3 New model: minor fixes (#25368)
* 1456d261-d232-4654-8885-4d9fde883894/440 ac1a6744-85b0-4ec6-8ba7-608d0717b8f1/750

* some copies are useful

* update model replay ref

* less frames in model replay onnx cpu

Co-authored-by: Bruce Wayne <yassine@comma.ai>
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
old-commit-hash: 55bf9385047ec876643cdebc197fba4f05cc4695
2022-08-05 17:28:15 -07:00
Adeeb Shihadeh bbad107007 test onroad: more robust CPU usage test (#25375)
* test onroad: more robust CPU usage test

* fix linter

* remove debug print

* Revert "remove debug print"

This reverts commit 172cb655fe3558abeb0ec6432ff24b90c0aab183.

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 80cbcafb5f10f474efd86a085032705c994bab15
2022-08-05 16:12:32 -07:00
cydia2020 63cd100780 Toyota: Send ACC_HUD immediately on fcw (#25348)
* Send ACC_HUD immediately on fcw

* update refs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 88e034a2a30cc0dfd46f41b85ddfe9497fb11d0e
2022-08-04 23:24:20 -07:00
HaraldSchafer f7d1aad21e Update model replay commit for calib change (#25357)
* Update model replay commit for calib test

* more reliable baseline

* update docker login

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9fbbefbc94f8c672e0b1c79333e34366e19f96cf
2022-08-03 22:35:03 -07:00
Jason Shuler 57961d8364 GM: parse low and manumatic gears (#24764)
* Switch to ECMPRDNL2 for GM gear

* Removing manumatic gear #

* formatting

* update refs

* update refs

* line

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4bfbd7ced822e3bb52fe7f6f446fad65bcb215f4
2022-08-03 15:52:12 -07:00
HaraldSchafer e5589e572f Cleanup calibration code (#25119)
* First attempt

* worksish

* tests pass

* cleanup

* get rid of garbahe

* fix name

* Still used in xx

* add debug functions

* used

* Revert "used"

This reverts commit 276e8ebab06d2d4f0e9927ba32b7d8aca2bf88c3.

* Update ref
old-commit-hash: 772b748689cff4d6dc6aab6a8a20247b29a86056
2022-08-01 20:35:14 -07:00
Adeeb Shihadeh 3c275a5b26 Subaru: set cruiseState.standstill (#25320)
* Subaru: set cruiseState.standstill

* only global
old-commit-hash: 9eb27259c7b9bf267671b16d17ae9a21b43105f3
2022-08-01 09:48:03 -07:00
Adeeb Shihadeh b34f0129e2 Subaru: 2020 Outback support (#25248)
* Subaru: 2020 Outback support

* bump panda

* bump panda

* update refs

* update refs
old-commit-hash: efa326e20856ff3a8ecff6f53d75a132ee0e4e1e
2022-07-31 12:43:27 -07:00
ZwX1616 6e5393367d Remove RHD toggle: determine by driver side instead (#24802)
* driverview

* auto choose

* useless

* remove

* modeld not use toggle

* remove from params

* should have commissue anyway

* delete icon file

* deal with init more elegantly and prohibit switching when engaged

* nonblock save when not unstable

* filter very low speeds

* a few more secs dont harm

* draw icon

* match

* radius

* use const

* ref commit

* new transs

* put_bool_nonblocking

* 5k route tune

* ref comm

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 22408781f7d7df5ff0395f80c1b15d6407acd0ff
2022-07-29 13:52:24 -07:00
Adeeb Shihadeh 9dc723b322 Subaru: log EPS torque (#25304)
* Subaru: log EPS torque

* update refs
old-commit-hash: 7fee45ad6c5d78c36137db44ae6503c1e57669ba
2022-07-28 16:42:42 -07:00
Adeeb Shihadeh 8037edf789 Chrylser: some Ram 1500 can steer to 0 (#25279)
old-commit-hash: 5101a7cf8889750e1ed8269f0e456a29f9f444eb
2022-07-25 15:21:58 -07:00
Adeeb Shihadeh 1b33f98d81 Mazda: use torque controller (#25265)
* Mazda: use torque controller

* update refs

* update refs
old-commit-hash: 347455325e5cd67e0697708ac980782aec2c3b33
2022-07-25 15:16:38 -07:00
Adeeb Shihadeh 35f6a6d632 Chrysler: increase steering angle resolution (#25278)
old-commit-hash: 49bd53549d3e4ee16d9fcfc9f7a3fa27957d8ddb
2022-07-25 14:46:21 -07:00
Jason Young 2c1184d7c8 VW MQB: Cleanup stock ACC button handling (#25168)
* VW MQB: Cleanup stock ACC button handling

* use controls resume output as trigger

* these can wait until taco bell

* pass through of previously fixed value

* retry CI

* checks already done in carcontroller

* don't need these anymore

* reduce diff for now

* remove parenthesis

* update refs

* fix packer exception

* update refs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 0574b8504f85132bfbe5d8a41913e37ad030401e
2022-07-25 14:15:14 -07:00
Adeeb Shihadeh e53cd5ac1f model_replay: update format_diff call
old-commit-hash: ef00bf76c1db2ac85f8033e48e89213f1f846d44
2022-07-25 00:08:30 -07:00
Adeeb Shihadeh 5263356958 remove CS.steeringRateLimited (#25251)
* remove CS.steeringRateLimited

* bump cereal

* update refs
old-commit-hash: d462a08056d54a957084d594286626a2509c94aa
2022-07-24 14:56:55 -07:00
Willem Melching 46b28bc680 Nissan: cleanup set speed (#25233)
* Nissan: cleanup set speed

* update ref
old-commit-hash: f0d494b7522bb1aa398ff1665a1a878bcd03b315
2022-07-22 16:25:06 +02:00
Adeeb Shihadeh 04af978260 let can packer handle counter (#25240)
* let can packer handle counter

* diff is expected

* update refs

* clean that up

* bump opendbc

* fix sim
old-commit-hash: 0ca62bf7df0fe81829c744fd8689c9b97cb6a36b
2022-07-21 20:54:53 -07:00
Willem Melching 95fb15aa5f prereq for matching speeds shown on cars dash (#25222)
* prereq for matching speeds shown on cars dash

* also handle fallback in the ui for replay

* update translations

* update ref
old-commit-hash: c3e95d5e194be9d445f54661d0ae0f0612db6a62
2022-07-21 14:48:08 +02:00
Adeeb Shihadeh 6335d6d624 jenkins: patch sshd config in continue.sh
old-commit-hash: 2de0af2aa5ae88c4bb5db50d713400bce096f29a
2022-07-19 13:37:03 -07:00
Adeeb Shihadeh b73f02bf45 controlsd: handle radar missing + cleanup system error handling (#25179)
* controlsd: handle radar missing + cleanup system erorr handling

* fix carla

* update refs
old-commit-hash: 505bbce29d45c246be177d81e618f9289e78aa16
2022-07-14 19:55:18 -07:00
Adeeb Shihadeh c7507bba29 Chrysler: never drop control bit on older models (#25159)
* Chrysler: never drop control bit on older models

* update refs
old-commit-hash: d5719913a97f7cf3c3fc171d0aa562c7d9cafb15
2022-07-13 13:22:30 -07:00
Adeeb Shihadeh 9d1f2d9b8e Chrysler: send LKAS control bit while above minSteerSpeed (#25150)
* Chrysler: send LKAS control bit while above minSteerSpeed

* update refs

* rework that a bit

* little more

* update refs
old-commit-hash: 97d7ee369b9b8193fe1580fbaa00e65a26235432
2022-07-12 23:11:55 -07:00
Adeeb Shihadeh a68aa10b73 EV6: reject fake cruise engagements (#25143)
* EV6: reject fake cruise engagements

* bump panda

* raise to 8

* update refs

* bump panda

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 44c6ca7eb4c9ea83aca18d4f648764cabdad8861
2022-07-12 18:23:48 -07:00
Adeeb Shihadeh ef758e24b6 process replay: fix string failures after #25127
old-commit-hash: 780c60324bf19762e9b72da38be0a9f09d624efd
2022-07-12 11:12:35 -07:00
Gijs Koning 7de5c548c4 Replay: Fix --upload-only (#25127)
Add checking for list back
old-commit-hash: f0b5ff5c1addff7932fe86a2874a23d87b5eb5f3
2022-07-12 05:03:35 -07:00
Gijs Koning a1143bafc8 Replay: tolerances per field (#25116)
* tolerances per field in replay

* refactor

* Remove laikad parameters

* Small comment change
old-commit-hash: 4d7b7483d70a61cf0fb938107df55c24f27da1b0
2022-07-12 03:36:57 -07:00
Adeeb Shihadeh 2e200db8fe Chrysler: limit buttons to 20Hz (#25125)
* Chrysler: limit buttons to 10Hz

* cleanup

* 20hz
old-commit-hash: 614b3a01f89eabfa9ea26ed2a367592939f78e11
2022-07-11 22:10:06 -07:00
Adeeb Shihadeh 966713810b Chrysler: increase Ram torque rate limit
old-commit-hash: 29c8e5d227eacae36dbc4357bf5328f22668d5ef
2022-07-11 17:26:59 -07:00
Adeeb Shihadeh f3ddb32649 process replay: ensure enabled for significant amount of time (#25121)
* process replay: ensure enabled for significant amount of time

* update refs

* 10s is reasonable
old-commit-hash: 2ae52e9b2218c23d4c80b36fb0b50387b6ecdd8f
2022-07-11 17:20:56 -07:00
HaraldSchafer be57ba1b0f Ram 1500 torque tune (#25117)
* torque control again

* 3mss per s

* no bad sensors

* tweaks

* Need more checks before we can do this

* update refs

* only ram for now

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bdfaa1d1eee77d1f9fb5b9b2632c9988caba02e3
2022-07-11 15:19:55 -07:00
Adeeb Shihadeh 2f7b2ce4d0 Ship EV6 (#25095)
* Ship EV6

* bump opendbc
old-commit-hash: d08a23177495c778fe628dc97728f5bbfee8b0f1
2022-07-08 22:46:20 -07:00
Gijs Koning 954559f01d Laikad: Fix getting covariances for pos and velocity (#25084)
* Fix getting covariances for pos and velocity

* ref commit
old-commit-hash: cf862b6576a8b3f66e26d38080a1c8eec00f0793
2022-07-08 10:03:42 -07:00
Willem Melching 1c8af02e54 laikad: add residual threshold for pos_fix (#25082)
* laikad: add residual threshold for pos_fix

* update ref

* update test
old-commit-hash: 7a4c33795a12eefff4c3e5c311f40eae2cf3506b
2022-07-08 09:20:16 -07:00