Adeeb Shihadeh
3e8625e50b
visionipc python shim ( #24660 )
...
old-commit-hash: 32a9ccfc37d97e6692435153ac9f0fe72feb1e9f
2022-05-25 20:49:56 -07:00
Willem Melching
7d5546452c
ui.py: use YUV stream
...
old-commit-hash: 2bdb2cb40af1bd159e165f9f475a2dc79f9d3c42
2022-05-25 17:37:21 +02:00
grekiki
7cd23af9b1
Mypy fixes for --check-untyped-defs ( #24372 )
...
more type fixes
old-commit-hash: 17e33978cdd9322918e9d5d388f7fa47aa30e9b7
2022-05-12 14:08:11 +02:00
Ross Fisher
a36e28f2a9
tools: add link to jungle repo ( #24477 )
...
old-commit-hash: 32e4dc3869bd83f1a978d4a6dfab0238285f31a6
2022-05-09 14:24:09 -07:00
Shane Smiskol
66454c000e
Fix can replay Jungle warning ( #24364 )
...
old-commit-hash: 2fa5a59e3faf30c2d4bb45056f20ec2408dcb3f4
2022-04-28 17:43:26 -07:00
Daniel
2201cf91a6
Update can_replay.py ( #24346 )
...
Fixed typo from PandaJugnle to PandaJungle
old-commit-hash: c60ce2a770e32a228f5dc234df7a37d2c77c37d1
2022-04-27 21:43:36 -07:00
Adeeb Shihadeh
2130eae8b1
fix panda_jungle static analysis
...
old-commit-hash: bfeaf35d6dd2c29c65b80a70ccafd9948056731a
2022-04-27 15:45:00 -07:00
grekiki
77d6d9a083
mypy: enable --warn-unused-ignores ( #24287 )
...
* this is the easy part to check
* Not sure what this fixes, https://github.com/commaai/openpilot/pull/24282/commits/8aaf00c6a41ac4c9c5e56f8a2dfed8591f153b67
* bump laika
* works here
* cleanup
* add types-certifi
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 049b163ea0494a21956d89d4cb2a527dcbd62c0c
2022-04-27 14:26:15 -07:00
grekiki
cc943ac9a5
mypy: enable --warn-unreachable ( #24282 )
...
* Optional solves mypy assuming None is always None
* oops
* spaces
* Update registration.py
* fix local error
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: b8b15d5cf1d2507c89bbe0e3b1de1ff043d9078e
2022-04-21 18:27:45 +02:00
Gijs Koning
cedd8abc05
Rename RGB vision streams to match YUV streams ( #23961 )
...
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 57b6fdc17a1f84ec922647c044da5df3cafc0ddc
2022-03-14 14:03:54 -07:00
Adeeb Shihadeh
ec47e0fef0
break up selfdrive.config ( #23959 )
...
* break up selfdrive.config
* add to release files
* fix import order
old-commit-hash: 5c3f3e44bc7b25c9ce502419bcd0261c12ec2b0d
2022-03-13 21:42:39 -07:00
Willem Melching
cc65efe7b0
ui.py: fix model lead plotting
...
old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163
2022-02-21 11:56:20 +01:00
Ewout ter Hoeven
a962365292
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
5aebf5466a
can_replay: warning & clone cmd if jungle lib is missing
...
old-commit-hash: b8393f7271c3b1845e7ad49e35db8688c01770cc
2021-11-23 23:33:26 -08:00
Dean Lee
15ed1a50a3
replay: fixed the alignment issue when replaying from C3 qcamera ( #22734 )
...
* fix qcamera replay
* fix alignment in replay
* upscale yuv if needed
* remove space
old-commit-hash: 41e5e76596eed1b6391cb5770df2c628c3125023
2021-11-01 11:06:00 +01:00
Willem Melching
67f41f32f1
Sphinx docs generation ( #22697 )
...
* add sphinx
* switch theme
* Experiment: sphinx docs generation updated (#22708 )
* moved build to root gitignore, added .gitkeep
* Improved makefile doc build process
- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
during build process so they can be easily referenced while writing
docs (see examples in index.md)
- Wrote basic starter index.md file
TODO: Add new dependencies to Pipfile [dev-packages]
* Revert accidental modification to Pipfile
* fix command substitution
* exclude xx
* improve docs
* dont include all docs in release build
* Add dockerfile
* update title
* include normal readme
* build container in CI
* use buildkit
* add login
Co-authored-by: Chad Bailey <chadbailey904@gmail.com >
old-commit-hash: b816b5b6442c21e63a09108c70986eeedb0372b2
2021-10-28 15:14:37 +02:00
Willem Melching
116ae68bdb
do not run on import
...
old-commit-hash: 59accdd814398b884167c0f41dbf46dcccf0c29c
2021-10-26 14:49:51 +02:00
Adeeb Shihadeh
39099120a5
can_replay: use segments without an FCW
...
old-commit-hash: 7b5d915a6827be907c4abfc40afe5c287201674e
2021-10-16 15:00:07 -07:00
Dean Lee
09a378d1eb
tools/ui.py: support playing qcamera ( #22571 )
...
old-commit-hash: f564eca51d72c00ba379fc7d891982bef4c92791
2021-10-16 11:32:24 -07:00
Adeeb Shihadeh
61e3458852
update replay readme
...
old-commit-hash: cbac96f50cbd959841e8fb24e33d95bd11a89b91
2021-10-12 21:19:36 -07:00
Adeeb Shihadeh
86d84599dd
remove old tools camera script
...
old-commit-hash: 0d10c000260262c11c58452d41be845b96134d40
2021-10-10 16:07:11 -07:00
Greg Hogan
ce1c24a0df
replay: do not clear ui image when paused ( #22467 )
...
* replay: do not clear ui image when paused
* also stop plots
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 720e82eeef7be15d234ac2ea1fe42e43063ec5f8
2021-10-07 11:18:45 +02:00
Willem Melching
af467b7b6d
ui.py: small plotting cleanup ( #22441 )
...
old-commit-hash: 1cfabc3388443a5480310930e12331d508c92bdd
2021-10-05 16:27:29 +02:00
Dean Lee
1240e4a673
replay/ui.py: get image from vipc ( #22433 )
...
* get image from vipc
* cleanup import
* if not None
* lgtm
* bump cereal&do reconnect
* bump cereal
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 2a8feb9eb91dad1c17d907543a33367aae109093
2021-10-05 15:14:38 +02:00
Willem Melching
d0d63b7fb9
replace unlogger.py with c++ replay ( #22430 )
...
old-commit-hash: e233d59e03683b829884a0fea8ec119c9c5a8378
2021-10-04 21:07:40 +02:00
Adeeb Shihadeh
4852437483
update demo route ( #22381 )
...
old-commit-hash: dd67dc6b34e4b70af6f7ef13b2a701aad2512174
2021-09-29 18:51:30 -07:00
Willem Melching
c8990cb174
unlogger.py: fix YUV replay ( #22299 )
...
old-commit-hash: 1e494a52248daa71c66ed92c59af3b2e822edc4b
2021-09-22 09:31:46 -07:00
sshane
147823fc6b
fix small typo in replay docs ( #22305 )
...
old-commit-hash: 535af876509441654e6f80688a81073fe3dfcddf
2021-09-21 18:55:46 -07:00
Adeeb Shihadeh
9b50379537
fix up replay docs
...
old-commit-hash: 07d23a1db949adf41c0fdc5711d7d436f323141a
2021-09-16 17:01:45 -07:00
Willem Melching
4e529f843b
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 >
old-commit-hash: 6fd980c63e803b433c25e75e423193cef9287f9c
2021-09-15 15:43:01 -07:00
HaraldSchafer
cb1cd01bdf
cleanup old nidec accel override logic ( #22181 )
...
* cleanup old nidec accel override logic
* add ref without deprecated fields
* no more override
old-commit-hash: 74b6c872545ac64055a914789a89ccc173168d8b
2021-09-10 10:34:18 -07:00
HaraldSchafer
a73a820338
Change car controller interface from gas/brake to acceleration ( #21911 )
...
* retune civic
* seems smooth
* back to normal
* new ref
* fix conflict
* runs
* rm
* accel scale is 4
* toyota should be good
* more cleanup
* fixup
* better naming
* update ref
* deprecated
* sending brake when not enable causes a fault
* rm gas and brake
* unused
* update ref
* acura logic is no more
* wrong before
* revert tuning cleanup
* adress comments
* update ref
* already on master
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 1ac89f14aa7c45c56049e8dbb0d6c5bb83a0fc6b
2021-08-30 09:32:52 -07:00
Comma Device
b9ffdc8a3d
can replay: flashing lock
...
old-commit-hash: 6a5940c56242374dcb6f24a521a75dce2641b1b1
2021-08-18 14:17:02 -07:00
Adeeb Shihadeh
f0fcb68bb9
fix up can replay script
...
old-commit-hash: fd81a5556ba918dbd3079edd955a1512aac0f6d6
2021-08-18 14:06:06 -07:00
speedking456
4895422c90
fix tools readme url typo ( #21913 )
...
old-commit-hash: 69da1a6e6e11c3d382570607739330745638bc17
2021-08-11 23:03:00 -07:00
Maxime Desroches
202af3bb4e
tools: fix replay/camera.py crash ( #21881 )
...
* check array size before reshape
* revert
* check length directly
old-commit-hash: d90188a14e7f9a8e07850b4577cdaca037aa4903
2021-08-09 09:43:11 +02:00
Adeeb Shihadeh
e513b1eb43
my.comma.ai -> connect.comma.ai ( #21702 )
...
old-commit-hash: deb170e0b2801867ff726e5703f0adea8242b22c
2021-07-26 13:53:49 -07:00
Willem Melching
6e5af4de8a
fix ui.py after longitudinal refactor
...
old-commit-hash: a85b5557edca861974896e3d832a424af8fd33b7
2021-07-13 12:01:36 +02:00
HaraldSchafer
7e87930a20
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 >
old-commit-hash: 6838e1c82c5abb9f347228006219d96744b3fbb5
2021-06-30 14:19:39 -07:00
Adeeb Shihadeh
0c1c0ddcb1
unlogger: put YUV vipc send behind flag
...
old-commit-hash: 4b6ec3bca645c2bc675d512dd20a5af76ffe3912
2021-06-03 21:53:16 -07:00
Josh Smith
2cae3a3799
Add type hints, small cleanups ( #21080 )
...
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl
* unpack more efficiently
* minor improvements
* agnos.py match spec better
* manual_ctrl test missing queue arg
* fix incorrect type annotation
* queues are generic
* varname reuse resulting in incorrect type inference
* bytes().hex() rather than bytes.hex(bytes())
* a bit of type hinting stuff
old-commit-hash: 77321dbac4ebfedf9cb5e9085e16055346299749
2021-06-03 12:21:04 +02:00
Adeeb Shihadeh
c7c49e8e35
fix up model tests + tools ( #21071 )
...
* unlogger: send yuv stream
* fix up model test tools
* fix unlogger
* rename model replay
* bump cereal
* test in actions
* no ci for now
old-commit-hash: cf6d133638caac0d974209f92be9c200cdbcbf3f
2021-05-28 23:08:08 -07:00
ShaneSmiskol
0d45e6885a
Deprecate brakeLights field ( #20954 )
...
* remove all references to CS.brakeLights
* unused red
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 551091bcfa46e50ef60dac3f3bdff299dba95f35
2021-05-18 17:48:02 -07:00
Willem Melching
bdd5cd2bce
fix unlog_segment.py
...
old-commit-hash: 679919ab1f4ec99fe56b6179e3ba35173a97cc34
2021-05-18 11:14:42 +02:00
Willem Melching
4bd1929d2b
LateralPlanner should only compute curvature ( #20289 )
...
* get curvature from planner
* no need to check active
* remove that
* remove self
* liveParams not needed
* cast
* fix test bug
* fixes
* fix ui.py
* fix radians
* update refs
* update refs
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: c23ec9f75389c9ad86400e9a9d23ee6bc5b648a2
2021-03-11 21:08:51 -08:00
iejMac
7780426434
improving tools readme ( #20305 )
...
* rough draft
* plotjuggler and carla description
* testing someting
* this is cool
* very short replay and debug desc
* small change
* small change 2
* better word
* low quality mode
* better word
* fixes
* changes
* minor fixes
* ubuntu_setup fix + README changes
* Update tools/README.md
* Update README.md
* Update README.md
* Update README.md
* changes
* Update tools/sim/README.md
* final changes
* final change
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: c4031750f366905371565e3f9c80033534040647
2021-03-11 15:28:37 -08:00
Willem Melching
a07446efe8
ui.py: draw lines on radarState leads
...
old-commit-hash: 7c8fcad602b93dd6b11930d7dc3eee38caa1c00c
2021-03-03 13:05:41 +01:00
Willem Melching
5df5262f3b
fix ui and unlogger after cereal cleanup
...
old-commit-hash: dfa10ed184968d893b4bce36871931bbee5e6432
2021-02-18 17:34:09 +01:00
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
af95c26b26
remove gpsd ( #20027 )
...
old-commit-hash: fe7f3f0ec6b66e42b26451e180e3cde241e749bb
2021-02-10 16:39:39 -08:00