Commit Graph

178 Commits

Author SHA1 Message Date
Adeeb Shihadeh
8068df0b2a alerts: escalate soft disable alert near disengagement (#23198)
* alerts: escalate soft disable alert if resulted in disengagement

* show 0.5s before disengagement
2021-12-11 17:07:37 -08:00
grekiki
6951b3271d Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

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

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-03 22:57:19 -08:00
Adeeb Shihadeh
e679d05d9e New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
2021-11-30 19:47:33 -08:00
grekiki
91f87e3675 Replace list by generator (#23077) 2021-11-30 14:15:42 +01:00
grekiki
68c1a666a0 replace list comprehensions with generators (#23037) 2021-11-25 15:53:11 -08:00
Adeeb Shihadeh
b51da61dc4 perfetto (#22998)
Co-authored-by: Comma Device <device@comma.ai>
2021-11-22 14:03:42 -08:00
Andrew
2a6816b893 Genesis G70 2020 port (#22692)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 20:45:32 -08:00
Dean Lee
6b20118fec set pandaType in debug scripts (#22897) 2021-11-13 11:54:29 -08:00
Adeeb Shihadeh
ed8e6f857c soundd: configure as persistent process (#22878)
* soundd: configure as persistent process

* update c2 test

* fix that

* little more

Co-authored-by: Comma Device <device@comma.ai>
2021-11-12 15:04:57 -08:00
Greg Hogan
caad4919ac profiling: replace pyflame with py-spy (#22864)
* py-spy

* remove pyflame

* find process by name
2021-11-10 23:27:10 -08:00
Willem Melching
6d6f989b7f RobustLogReader that can recover corrupted bz2 files (#22835)
* LogReader with bzip2 recovery

* only rlogs

* add comment

* plotjuggler should also use robust logreader
2021-11-10 16:41:00 +01:00
Jason Wen
257d2b447d hyundai_enable_radar_points: fix typo (#22724) 2021-10-28 19:09:22 +02:00
Adeeb Shihadeh
4b4efead89 count_events: handle missing logs 2021-10-25 10:25:23 -07:00
Adeeb Shihadeh
84de248fa7 tici: affine loggerd to efficiency cores (#22581) 2021-10-18 13:21:24 -07:00
Adeeb Shihadeh
112df19d38 add some docs for selfdrive/debug 2021-10-12 20:17:12 -07:00
Dean Lee
43a846843f c++ replay: support local routes (#22288)
* support local route

* kind of works

* works

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-12 00:51:22 -07:00
Adeeb Shihadeh
2f2b9116d4 set arg types 2021-10-11 20:41:28 -07:00
Adeeb Shihadeh
2456296858 fix decode errors in can printer 2021-10-11 20:06:00 -07:00
Adeeb Shihadeh
14a1441cbb show ascii in can printer 2021-10-11 20:03:35 -07:00
Adeeb Shihadeh
683ddeebc8 add arg parser to can printer 2021-10-11 19:47:49 -07:00
Robbe Derks
91987f38d4 Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
2021-10-08 17:54:34 +02:00
sshane
1e4b61b393 Show model leads with uiview (#22303) 2021-09-21 16:01:10 -07:00
Cruise Brantley
75730c28ca Radar tracks for Santa Fe (#22270)
* Radar tracks for Santa Fe

* add radar DBC

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-21 15:04:14 -07:00
Kyle Greenlaw
839147a333 Add Hyundai Sonata Hybrid Radar FW for OP Long support (#22259)
* add mondo dbc to Sonata Hybrid

* 2021 Sonata Hybrid radar FW

* Add Sonata Hybrid to openpilotLongitudinalControl

* Whoops... ,
2021-09-17 19:12:54 -07:00
Greg Hogan
9db5edae72 improve instructions for enabling hyundai radar tracks 2021-09-16 00:15:56 -07:00
Scott Adair
3be48c5cde Update FW Version for the 2020 Palisade (#22245)
Confirmed the FW version for my 2020 Palisade. Updated and executed the script without issue.
2021-09-15 20:27:33 -07:00
Willem Melching
6fd980c63e Hyundai radar parser (#22241)
* add radar parser for 0x5XX range

* fix speed

* enable based of fingerprint

* fix speed scale

* use proper signal names

* add to release files

* hyundai: script to enable radar points

* typo

* add comment

* fix tests

* cleanup

* add note about persistent

* Update selfdrive/car/hyundai/radar_interface.py

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

* fix bugs in hyundai enable radar points script

* accidentally removed comment

* add some other cars

* add cosine to dRel

* fw versions do not match openpilot

* bump opendbc

* include state 4

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-15 15:43:01 -07:00
Willem Melching
c4bac6bd68 Hyundai longitudinal prerequisites (#22121)
* panda

* bring over changes

* dont check car model

* remove comment

* fix typo

* more stuff gated behind long

* not

* not used

* gate that too

* try honda tuning

* clip accel values

* fix up merge

* fix stopping

* add retry logic around knockout

* increase timeout

* keep flipping lead bit

* true for now

* less tuning

* update comment

* 0.1 s is fine now

* merge honda and hyundai knockout

* more lead fields

* another obj bit

* increase timeout

* fix stopping flag

* only lag compensate for braking

* no lead

* less tuning

* only do knockout if not readonly

* try controlling using jerk

* tuning

* try higher stopping rate

* set stopping flag at higher speed

* clip upper jerk when stopping

* remove comments

* tester present 1hz

* use positive start accel

* 1.0 to maybe improve low speed stuff

* no point going over 0

* bump panda

* bump panda

* revert that change

* update ref
2021-09-13 22:03:08 -07:00
Adeeb Shihadeh
c4e9f4de99 fix live_cpu_and_temp.py for c3 2021-09-13 20:27:53 -07:00
Adeeb Shihadeh
a7cc34fd77 check_timings.py: start printing immediately 2021-09-13 20:08:43 -07:00
Adeeb Shihadeh
bd79e7f023 remove old can replay script 2021-09-02 16:56:13 -07:00
Willem Melching
3b13eb8c7d 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
2021-09-01 14:48:41 -07:00
Adeeb Shihadeh
3179c64f44 count valids 2021-08-23 12:02:08 -07:00
Adeeb Shihadeh
54a4eeb0fc Revert "tici: give loggerd rt priority (#21503)"
This reverts commit 7e2752c878.
2021-08-22 16:57:53 -07:00
Adeeb Shihadeh
7e2752c878 tici: give loggerd rt priority (#21503)
* give loggerd rt priority

* assert

* little more

Co-authored-by: Comma Device <device@comma.ai>
2021-08-20 21:27:31 -07:00
Adeeb Shihadeh
fd81a5556b fix up can replay script 2021-08-18 14:06:06 -07:00
Adeeb Shihadeh
511f5a7589 clpeak no print patch 2021-08-07 23:27:21 -07:00
HaraldSchafer
aa689176fc Cleaner lane change alerts (#21857)
* less is more

* small

* remove HUD warnings

* update ref

* safe

* update refs

* update again

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 14:23:27 -07:00
arfy slowy
d74def61f8 fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
sshane
7166f166c0 uiview.py update (#21859)
* clean up uiview and add pandastate for going onroad

* don't need radarState
2021-08-04 20:24:51 -07:00
Willem Melching
ee39e7ba18 qlog_size.py: print size 2021-07-15 12:36:03 +02:00
Adeeb Shihadeh
69160375c6 fixup timing script 2021-07-09 21:12:18 -07:00
Adeeb Shihadeh
d11b0c06bf debug script for checking timings 2021-07-09 21:08:16 -07:00
HaraldSchafer
6838e1c82c Refactor lateral lag compensation (#21334)
* add T_IDXS

* refactor

* fix test

* unused

* typo

* needs casting

* Update selfdrive/controls/lib/drive_helpers.py

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

* deprecate field

* regen all

* new segs

* add todo

* split back

* clean

* bad names

* do in controls

* add arg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-30 14:19:39 -07:00
Adeeb Shihadeh
4a1aec27ef segment regen (#21148)
* start seg regen

* send vipc

* fix up some paths

* set fp

* fix no entries

* engages

* seperate camera procs

* send real frames

* regen test routes

* nice argparser

* fix valgrind test

* move that

* fix that
2021-06-28 21:44:40 -07:00
Willem Melching
ba15fb4803 filter_log_message: print tracebacks 2021-06-17 17:14:57 +02:00
Willem Melching
08c1fa32c7 filter_log_message: use rlogs if available 2021-06-17 15:44:53 +02:00
Willem Melching
cbd03ea514 Script to print new bitflips on CAN (#21294)
* Script to print new bitflips on CAN

* also print falling edges
2021-06-16 15:46:34 +02:00
eFini
5c450026ef two minor bug fixes (#21134) 2021-06-04 21:20:02 -07:00
Adeeb Shihadeh
989ffa36e5 fix car params setter script 2021-06-01 20:59:03 -07:00