Commit Graph

198 Commits (master)

Author SHA1 Message Date
HaraldSchafer 0e49919ab9
Cleanup pathplanner (#19827)
* no divide by 0

* misc cleanup

* final fixes

* remove last polys

* new ref

* fix test

* update again
2021-01-19 00:02:53 -08:00
Comma Device 523a73774a replay improvements for testing closet 2021-01-16 01:03:10 +00:00
HaraldSchafer 158210cde8
Mpc rework2 (#19660)
* start again

* need that too

* this actually works

* not needed

* do properly

* still works

* still works

* still good

* all G without ll

* still works

* all still good

* cleanup building

* cleanup sconscript

* new lane planner

* how on earth is this silent too....

* update

* add rotation radius

* update

* pathplanner first pass

* misc fixes

* fix

* need deep_interp

* local again

* fix

* fix test

* very old

* new replay

* interp properly

* correct length

* another horrible silent bug

* like master

* fix that

* do doubles

* different delay compensation

* make robust to empty msg

* make pass with hack for now

* add some extra

* update ref for increased leg

* test cpu usage on this pr

* tiny bit faster

* purge numpy

* update ref

* not needed

* ready for merge

* try again after recompile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-14 18:43:50 -08:00
Adeeb Shihadeh 413e0fa40a fix import error 2021-01-14 18:02:13 -08:00
Adeeb Shihadeh e6478c6b35 better can replay script 2021-01-14 17:49:17 -08:00
Comma Device cf5b9a112f add prebuilt clpeak3 2021-01-14 04:18:01 +00:00
Adeeb Shihadeh 4cc99e5979 patch clpeak to run continuously 2021-01-13 20:13:14 -08:00
Adeeb Shihadeh a9c71a76f5 add clpeak to profiling tools 2021-01-13 19:41:56 -08:00
Adeeb Shihadeh a399ec530d
make android logcat exit cleanly (#19666)
* make android logcat exit cleanly

* clean up cpu usage script

Co-authored-by: Comma Device <device@comma.ai>
2021-01-05 15:10:55 -08:00
Adeeb Shihadeh 1669e4a5d1
external cleanup (#19647)
* remove external

* put back ffmpeg for now
2021-01-04 14:17:14 -08:00
Adeeb Shihadeh 4096f86e21
lgtm fixes (#19610)
* pass matrices by reference

* suppress that

* destructor

* that's wrong, suppress it
2020-12-28 20:36:23 -08:00
vanillagorillaa 98ca428844
Update script usage (#19571) 2020-12-21 13:11:59 -08:00
Adeeb Shihadeh 48306360a1 adb over smays 2020-12-12 19:21:45 -08:00
Adeeb Shihadeh b1a4ec8135 make fingerprint script nice 2020-12-08 13:39:22 -08:00
Shane Smiskol 460e4dc3b0
Fix toyota_eps_factor.py script (#2647)
* fix toyota_eps_factor.py script, don't use samples where wheel is touched

* caps mistake

* Hope this is correct, don't use CS.steeringPressed

* revert sorting now that we don't use CS
2020-11-28 22:36:51 -08:00
Willem Melching 6e476e0667 Add sonata firmware version 2020-11-18 12:48:21 +01:00
Jon Ander Oribe 887d67eb8d
Simple improvements for quality gate (#2517)
* Improvements for quality gate

* Update test_xattr.py

* Update test_mpc_wobble.py

* python

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-12 14:48:45 -08:00
Adeeb Shihadeh 47c21f10f5
grey panda is unsupported (#2458) 2020-11-03 19:56:25 -08:00
Adeeb Shihadeh 9a9e4ba45e fix fingerprint script 2020-10-29 13:56:58 -07:00
Willem Melching 47dfa52456
use iterator to loop over first 1000 entries (#2359) 2020-10-19 13:44:36 +02:00
Adeeb Shihadeh 6073610cb0 fix pylint import error 2020-10-18 16:12:39 -07:00
Adeeb Shihadeh 82c112dad0 quick toyota EPS scale factor script 2020-10-18 16:00:42 -07:00
Willem Melching 0365db20d8
Update 2020 Hyundai Palisade FW versions (#2322)
* add fw versions

* carParams is sometimes not in first segment

* Update can fingerprint
2020-10-12 15:57:06 +02:00
Adeeb Shihadeh 38a23a55ec add offroad to cpu usage script 2020-10-06 21:12:38 -07:00
Adeeb Shihadeh 9060d3c87b fix paths for waste3 debug script 2020-09-29 15:51:58 -07:00
Adeeb Shihadeh 98fedff6b1 add ECU disable script from #1459 2020-09-29 11:54:29 -07:00
Adeeb Shihadeh 4acc82604d quick lgtm fixes 2020-09-19 12:53:36 -07:00
Adeeb Shihadeh ebab660622
rt debug scripts (#2165)
* rt debug scripts

* bigger buffer

* cleanup

* move to internal

Co-authored-by: Comma Device <device@comma.ai>
2020-09-16 17:42:37 -07:00
Adeeb Shihadeh 33ad9d67ea add android procs to cpu usage sript 2020-09-16 15:47:44 -07:00
Adeeb Shihadeh 8e24939613 remove unused import in cycle_alerts 2020-09-10 15:24:09 -07:00
Adeeb Shihadeh acd1bde496
QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-09-09 19:04:28 +02:00
Shane Smiskol dfdbf6e416
Show lane lines and path while using uiview.py (#2104)
* add modeld and required calibd procs to uiview to display lane lines when debugging

* send radarState with empty message to show model path

* make uiview.py executable
2020-08-30 11:38:40 -07:00
Adeeb Shihadeh 520c2676b6
type hints for messaging (#2061)
* bump cereal

* fix bugs found by mypy

* bump cereal
2020-08-23 00:33:19 -07:00
Willem Melching 502cc665e0
Pigeon abstraction layer (#1977)
* pigeon abstraction layer

* Fix string literals

* more generic pigeon class

* add TTYpigon

* nicer tty error handling

* close tty fd on pigeon delete

* pigeon receive return std::string

* use sizeof

* max receive size to prevent infinite loop

* remove namespace

* add unistd include for usleep

* fix is pigeon

* Handle tty error in opening

* fix printing binary strings with dump.py

* fix pigeon build on macos

* Handle errors seperately

Co-authored-by: Comma Device <device@comma.ai>
2020-08-13 10:10:50 +02:00
Adeeb Shihadeh 4658df7a66 add locationd, paramsd, dmonitoringd to CPU usage script 2020-07-30 15:28:58 -07:00
Shane Smiskol 2e59349b2e
Add a minimal debugging tool to show the UI while device not in car (#1937)
* add a minimal uiview file with alias from selfdrive/ui

* make ui_debug executable

* minimize uiview.py; remove os and functions. the processes exit normally when ctrl+c'ing out of the loop

* violating E401 here, save 1 more line

* kill on exit

* forgot signal

* new record! 15 lines

* add comments and declare some common variables. don't need to redefine the messages every loop
2020-07-28 11:15:16 -07:00
Willem Melching 74f95b8b26 skip 1st segment in debug replay 2020-07-23 17:56:36 +02:00
Adeeb Shihadeh b17a6e8f31 default to a reasonable amount of segs in replay_drive_can.py 2020-07-10 17:58:04 -07:00
Adeeb Shihadeh 3ab0b49656
Boardd loopback test (#1840)
* start boardd loopback test

* let's try this in CI

* fix jenkinsfile

* remove old

* rename

* check msgs

* should be reliable now

* send more
2020-07-08 19:42:03 -07:00
Adeeb Shihadeh 491a02d5d6 bump submodules 2020-06-27 17:46:59 -07:00
Adeeb Shihadeh af22b282ff
Fix some alert sounds not repeating (#1763)
* fix sounds not repeating

* fix PC build

* 3 loop

Co-authored-by: Comma Device <device@comma.ai>
2020-06-22 19:22:02 -07:00
Comma Device d4e8785355 fix linter 2020-06-22 16:45:39 -07:00
Comma Device c3171e66b3 bring back cycle_alerts.py 2020-06-22 16:25:44 -07:00
Willem Melching 0681fc04ad
debug script to track droppped frames (#1749) 2020-06-19 16:56:56 -07:00
Willem Melching 66ae0854b4
Big batch of FW versions (#1682)
* wip big batch of fw versions

* Add the rest

* And two more
2020-06-11 16:37:45 -07:00
Adeeb 367155168a
Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
Willem Melching 2400417084
vehicle model types (#1631) 2020-06-03 13:47:47 -07:00
Willem Melching 843a64c72f
Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh ebed2d1dcc enable flake8 E251: unexpected spaces around keyword / parameter equals 2020-05-31 17:34:47 -07:00
Adeeb Shihadeh f3dcf861c7 enable flake8 E303: too many blank lines 2020-05-31 17:21:11 -07:00
Adeeb Shihadeh 27754a277c enable E261 in flake8: two spaces before inline comment 2020-05-31 14:07:29 -07:00
Adeeb Shihadeh efd5dffb1e enable flake8 E231: missing whitespace after comma 2020-05-31 12:49:11 -07:00
Adeeb 6051061ff8
Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
2020-05-31 00:48:47 -07:00
Willem Melching ba2ac1207a
Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
2020-05-28 15:40:48 -07:00
Willem Melching 3d08dcc3b2
Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
2020-05-28 15:05:04 -07:00
Willem Melching bee15f8abe make pre-commit pass without xx present 2020-05-28 13:20:28 -07:00
Willem Melching bd06434243
pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
2020-05-27 20:00:14 -07:00
Willem Melching e66c246f34 add simple script to print controlsd alive and valid 2020-05-14 20:16:24 -07:00
Jason Young 09d465013c
Fix hardcoded path in sensor test script (#1481)
* Fix hardcoded path to sensor test script

* Rename the other place too
2020-05-09 22:17:24 -07:00
Adeeb 008700a6b3
LGTM fixes (#1480) 2020-05-09 16:40:43 -07:00
George Hotz e568d3cadc
More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors

* fix more alerts, exclude mkvparse

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 20:00:41 -07:00
George Hotz 1295cfe06c
Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 12:07:34 -07:00
Willem Melching cbef7b3e71 remove more unused debug scripts 2020-04-24 14:21:41 -07:00
Willem Melching 2d944e4042 msgq is done, messaging bechmarks can go 2020-04-24 14:12:41 -07:00
Willem Melching ca690e6ff9 fake processes that are not used 2020-04-24 14:12:14 -07:00
Willem Melching aa84d05c6c We dont need toyota debug folder 2020-04-24 14:10:56 -07:00
Willem Melching 90eb7aadf2 move sensor bootloop script 2020-04-24 14:03:55 -07:00
Willem Melching 035d461fdf that is not a test 2020-04-24 14:02:35 -07:00
George Hotz abad49110e delete more unused, now under 40k lines of python. framereader needs to be ported to C++ 2020-04-24 13:45:34 -07:00
George Hotz 8b448a7c16 delete unused code 2020-04-24 12:10:35 -07:00
Willem Melching 8590969c1b Load all segments 2020-04-22 14:29:36 -07:00
Willem Melching 07e2d34ebb Use normal can sock 2020-04-22 14:24:24 -07:00
Willem Melching ec0d6ac579 Simple replay script 2020-04-22 14:23:10 -07:00
Harald Schafer 34f2c0da75 longitudinal e2e mpc 2020-03-26 17:43:11 -07:00
Willem Melching dd676f3236 Script to check for lags in message reception 2020-03-20 16:35:23 -07:00
Willem Melching 45410ee8a8 Fix linter and compiler 2020-03-20 16:28:14 -07:00
Willem Melching c818f1df37 rename event name instead of service 2020-03-20 16:11:27 -07:00
Willem Melching f468ad3298 Print prettier androidLog messages 2020-03-20 16:08:09 -07:00
Willem Melching d082cc6c6b Handle json decode error 2020-03-20 16:01:20 -07:00
Willem Melching 196b28e311 fix androidLogEntry socket name 2020-03-20 15:59:48 -07:00
Willem Melching ef73582a0f print boottime in filter_log_message.py 2020-03-17 16:35:09 -07:00
Willem Melching af742a8c15 live_cpu_and_temp flag to show cpu usgage per process 2020-03-12 16:40:30 -07:00
Shane Smiskol 6ff881f789
initialize all messages in 1 line (#1206) 2020-03-05 17:32:52 -08:00
Willem Melching c9ecab2139
Kalman filter to identify vehicle parameters (#1123)
* full vehicle model simulator

* Add vehicle model

* Model compiles

* Close enough

* Simulation works

* Add fast angle offset

* Tune fast angle offset learner

* Create live service for paramsd

* Better clamping

* Fix rotation matrix

* Cleanup before merge

* move debug script to debug/internal

* revert plannerd change

* switch vehicle model to corolla

* fix valid flag

* Bigger stiffness range

* Lower process noise on steer ratio

* Tuning

* Decimation

* No maha tests
2020-02-26 16:19:02 -08:00
Willem Melching a71f5823fa add argparser to test_fw_query script 2020-02-24 10:53:42 -08:00
Greg Hogan 57c44e3705
WIP: Honda Steering Improvements (#983)
* move honda steer params to CarParams

* use breakpoints/values from firmware

* remove comment

* civic fw mod max included deadzone

* civic bosch needs to be separate

* script to measure steering accuracy

* civic tuning

* update cr-v values

* cleanup

* averaging over 10 samples was silly

* update stock civic and cr-v tuning

* remove comment

* update replay expected results
2020-02-19 13:28:01 -08:00
Willem Melching 3fef70f0d5 add mem flag to live cpu and temp script 2020-02-13 15:07:03 -08:00
Willem Melching a2a44f4e4b Add CHR FW versions 2020-02-13 14:39:33 -08:00
Willem Melching e5f2ac6ffa 5 segments is plenty to get fingerprint 2020-02-12 09:56:53 -08:00
Willem Melching 7c94b36171 Add some more firmware fingerprints 2020-02-03 11:24:25 -08:00
Willem Melching df6fa7acbd move fw query debug script 2020-02-01 18:53:43 -08:00
Willem Melching bfa2d030d2 Add batch of firmware versions 2020-02-01 13:06:05 -08:00
ZwX1616 6322a275d6
dmonitoringd (#1016) 2020-01-30 19:12:44 -08:00
Willem Melching b7aeb5d64d
Cache FW query (#1025)
* split fw query and matching

* Read cached firmware versions

* add tests

* this works
2020-01-30 17:57:20 -08:00
Willem Melching 356f353489
FW fingerprint for Honda & Toyota (#961)
* add script to process logs

* Skip rav4 ESP

* Improve gathering script

* Update firmware versions for honda and toyota

* more firmware versions

* If FW query returns 1 candidate, use it

* Add FW versions

* Fix COROLLA_TSS2 two enigine addresses

* uncomment rav4h tss2

* add progress bar to test script

* Batch with more ecu versions
2020-01-30 14:32:26 -08:00
Willem Melching c9501cc164 Also show top 10 procs by RAM usage 2020-01-30 14:17:09 -08:00
Willem Melching 2571453a54 Add script to nicely print logMessages 2020-01-27 11:47:41 -08:00
George Hotz f467642a1c selfdrive/debug 2020-01-17 11:23:21 -08:00