Commit Graph

112 Commits

Author SHA1 Message Date
Adeeb Shihadeh 6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Dean Lee 8f3b259f7c replay/camera: set frame id before send (#25591) 2022-08-29 11:56:18 -07:00
Dean Lee cd32f64d01 replay: add missing format specifier (#25590) 2022-08-29 11:53:11 -07:00
Dean Lee f95519cb44 replay/CameraServer: yuv_buf should not be null (#25545) 2022-08-24 11:03:54 -07:00
Cameron Clough b3cfe962cf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-22 21:47:09 -07:00
Nelson Chen 4fb318c5be Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
2022-08-04 15:06:36 -07:00
Dean Lee 91eb096ac9 replay: add support for reading from plain logs (#25053)
* read from plain log

* reduce memory copies

* cleanup

* fix test_replay
2022-07-15 10:53:10 -07:00
Willem Melching 356190f671 fix MacOS buid: replay frameworks (#25061)
* replay: fix macos build

* here too

* keep original frameworks
2022-07-07 16:13:05 +02:00
Dean Lee e0cd3bf5fc framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
2022-06-29 11:27:37 +02:00
Dean Lee fd5b3d7603 move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
2022-06-28 16:12:42 +02:00
Shane Smiskol 379dc24eca can replay: get logs in parallel (#24960)
* get can replay segs in parallel

* total not needed
2022-06-24 16:49:56 -07:00
Adeeb Shihadeh f05166ae26 ui.py: update for nv12 2022-06-13 13:58:22 -07:00
Adeeb Shihadeh 32a9ccfc37 visionipc python shim (#24660) 2022-05-25 20:49:56 -07:00
Willem Melching 2bdb2cb40a ui.py: use YUV stream 2022-05-25 17:37:21 +02:00
grekiki 17e33978cd Mypy fixes for --check-untyped-defs (#24372)
more type fixes
2022-05-12 14:08:11 +02:00
Ross Fisher 32e4dc3869 tools: add link to jungle repo (#24477) 2022-05-09 14:24:09 -07:00
Shane Smiskol 2fa5a59e3f Fix can replay Jungle warning (#24364) 2022-04-28 17:43:26 -07:00
Daniel c60ce2a770 Update can_replay.py (#24346)
Fixed typo from PandaJugnle to PandaJungle
2022-04-27 21:43:36 -07:00
Adeeb Shihadeh bfeaf35d6d fix panda_jungle static analysis 2022-04-27 15:45:00 -07:00
grekiki 049b163ea0 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>
2022-04-27 14:26:15 -07:00
grekiki b8b15d5cf1 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>
2022-04-21 18:27:45 +02:00
Gijs Koning 57b6fdc17a 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>
2022-03-14 14:03:54 -07:00
Adeeb Shihadeh 5c3f3e44bc break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
Willem Melching efc9084409 ui.py: fix model lead plotting 2022-02-21 11:56:20 +01:00
Ewout ter Hoeven 55390d273f 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>
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh b8393f7271 can_replay: warning & clone cmd if jungle lib is missing 2021-11-23 23:33:26 -08:00
Dean Lee 41e5e76596 replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
2021-11-01 11:06:00 +01:00
Willem Melching b816b5b644 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>
2021-10-28 15:14:37 +02:00
Willem Melching 59accdd814 do not run on import 2021-10-26 14:49:51 +02:00
Adeeb Shihadeh 7b5d915a68 can_replay: use segments without an FCW 2021-10-16 15:00:07 -07:00
Dean Lee f564eca51d tools/ui.py: support playing qcamera (#22571) 2021-10-16 11:32:24 -07:00
Adeeb Shihadeh cbac96f50c update replay readme 2021-10-12 21:19:36 -07:00
Adeeb Shihadeh 0d10c00026 remove old tools camera script 2021-10-10 16:07:11 -07:00
Greg Hogan 720e82eeef 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>
2021-10-07 11:18:45 +02:00
Willem Melching 1cfabc3388 ui.py: small plotting cleanup (#22441) 2021-10-05 16:27:29 +02:00
Dean Lee 2a8feb9eb9 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>
2021-10-05 15:14:38 +02:00
Willem Melching e233d59e03 replace unlogger.py with c++ replay (#22430) 2021-10-04 21:07:40 +02:00
Adeeb Shihadeh dd67dc6b34 update demo route (#22381) 2021-09-29 18:51:30 -07:00
Willem Melching 1e494a5224 unlogger.py: fix YUV replay (#22299) 2021-09-22 09:31:46 -07:00
sshane 535af87650 fix small typo in replay docs (#22305) 2021-09-21 18:55:46 -07:00
Adeeb Shihadeh 07d23a1db9 fix up replay docs 2021-09-16 17:01:45 -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
HaraldSchafer 74b6c87254 cleanup old nidec accel override logic (#22181)
* cleanup old nidec accel override logic

* add ref without deprecated fields

* no more override
2021-09-10 10:34:18 -07:00
HaraldSchafer 1ac89f14aa 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>
2021-08-30 09:32:52 -07:00
Comma Device 6a5940c562 can replay: flashing lock 2021-08-18 14:17:02 -07:00
Adeeb Shihadeh fd81a5556b fix up can replay script 2021-08-18 14:06:06 -07:00
speedking456 69da1a6e6e fix tools readme url typo (#21913) 2021-08-11 23:03:00 -07:00
Maxime Desroches d90188a14e tools: fix replay/camera.py crash (#21881)
* check array size before reshape

* revert

* check length directly
2021-08-09 09:43:11 +02:00
Adeeb Shihadeh deb170e0b2 my.comma.ai -> connect.comma.ai (#21702) 2021-07-26 13:53:49 -07:00
Willem Melching a85b5557ed fix ui.py after longitudinal refactor 2021-07-13 12:01:36 +02:00