Commit Graph

1212 Commits

Author SHA1 Message Date
Justin Newberry 1f8ceb4ca1
Simulator: fix port issues in devcontainer (#29977)
* fix sim devcontainer

* use host.docker.internal instead

* devcontainer supports jsonc
2023-09-20 16:34:29 -07:00
Justin Newberry e02519bb71
Simulator: add metadrive as optional simulator (#29935)
* Add metadrive sim

* use monotonic

* don't use cuda if it's not available

* Cleanup metadrive patches

* PR suggestions

* fix typo
2023-09-20 10:35:57 -07:00
Shane Smiskol 8b962479dc pj: fix CAN bus layout for test 2023-09-20 00:19:34 -07:00
Adeeb Shihadeh 165157748c can debug pj layout 2023-09-19 21:25:20 -07:00
Justin Newberry bee40de703
Simulator: fix controlsd mismatch (#29976)
fix controls mismatch
2023-09-19 12:51:54 -07:00
Harald Schäfer 4b55d90af9
setup README: Native on 20.04, WSL on windows, otherwise devcontainer (#29928)
* Main README: Webcam needs work, don't mention

* Update README.md

* Link to VSCode guide

* Update README.md

* Fix formatting

* Update README.md

* little more

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-18 19:01:32 -07:00
Dean Lee 50cca99e45
cabana/chart: add contex menu (#29957) 2023-09-18 16:14:54 -07:00
Dean Lee a450eff89f
cabana: fix QMenu leak (#29956)
fix qmenu leak
2023-09-18 11:25:35 -07:00
Dean Lee 6f9798745c
cabana: add button to skip to the end of stream (#29953) 2023-09-17 15:20:21 -07:00
Kacper Rączy f0b8ecd14f
macOS: add prompt about support in setup script (#29939)
* Add prompt about the state of macos support in mac_setup

* Change words

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-15 19:05:32 -07:00
Justin Newberry 7f6718a7cb
Simulator: cleanup in preparation for metadrive (#29903)
* sim bridge cleanup

* fix carla

* remove that exception

* pr cleanup

* update car in a thread

* more cleanup

* import sorting

* handle exits better
2023-09-15 14:02:09 -07:00
Dean Lee 6a72d53296
cabana/chart: fix value overflow (#29924)
fix value overflow
2023-09-15 03:20:27 -07:00
Dean Lee c4df40a04a
cabana: support ECU node names (#29897)
* support display&edit node name

* cleanup

* set validator for Node name

* modify validator to support multiple receivers

* set default to XXX in updateMsg

* add DEFAULT_NODE_NAME

* Update tools/cabana/commands.h

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-15 00:27:44 -07:00
YassineYousfi 880157f5a6
framereader: add cache_dir argument (#29904)
* framereader: add cache_dir argument

* make it an env var
2023-09-14 14:36:32 -07:00
Justin Newberry 6666413626
test_replay: speedup by preventing multiple downloads (#29901)
* Demo route fixture

* fix tests

* demo route download

* remove iostream
2023-09-13 19:19:06 -07:00
Dean Lee 82452ec66b
cabana: use QStaticText to boost rending performance (#29900)
use QStaticText to boost rending performance
2023-09-13 19:00:00 -07:00
Justin Newberry a95c896b5f
Simulator: launch simulator from any directory (#29910)
launch sim from any directory
2023-09-13 18:47:39 -07:00
Dean Lee 0bd9df3193
cabana: bug fixes (#29902)
* fix freq

* fix chart legend alignment issue
2023-09-13 12:52:56 -07:00
Dean Lee 34f5cad4e7
cabana/chart: use different colors to distinguish similar signals (#29890)
* Use different colors to distinguish similar signals

* check hueF value

* lighter
2023-09-13 03:03:16 -07:00
Dean Lee 587f6ce0dc
cabana: mark the undo stack as clean after save as (#29898)
Marks the undo stack as clean after save as
2023-09-13 01:14:12 -07:00
Dean Lee d9f107a2c9
cabana: improve precision of timeline (#29872) 2023-09-12 19:49:59 -07:00
Dean Lee f63dc51284
cabana: display warning if failed to write settings (#29873)
* display warning if failed to write_settings

* use Settings::filePath()
2023-09-12 13:13:59 -07:00
Greg Hogan 140a4ba558
importing auth_config.py should not have side effects (#29893)
import should not create directory
2023-09-12 18:00:18 +00:00
Dean Lee 11d157369b
cabana/chart: fix rubber band precision issue (#29887)
fix rubber band precision issue
2023-09-11 22:56:40 -07:00
Kacper Rączy 57f0c3b8d5
macos: link qt5 during setup (#29879)
* link qt5 or prompt user to unlink existing qt installation if needed

* change condition

* version detection fixes

* fix wording
2023-09-11 17:00:08 -07:00
Adeeb Shihadeh 2c1dfc2f34
use pytest for cpp tests (#29833)
* add pytest-cpp package (#29828)

* add pytest-cpp package

* disable for now

* use in ci

* use pytest cpp

* use my branch

* add missing tests

* that doesn't make sense

* it was merged upstream

* replace TEST_RLOG_URL with a publicly accessible url

* PR Cleanup

* assert instead

* update poetry lock

* add comment about  pytest-cpp

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: deanlee <deanlee3@gmail.com>
2023-09-11 14:01:50 -07:00
Dean Lee 5e1b5b36e4
cabana: use applicationPath for settings (#29875) 2023-09-11 13:18:40 -07:00
Angus Gratton 43210ca0e2
replay: Include cstdarg from util (#29871)
Fix compilation errors "use of undeclared identifier" for va_start & va_end.
2023-09-11 08:01:07 -07:00
royjr ece433f18e
macOS: install gcc@13 to match panda requirements (#29868) 2023-09-10 16:26:27 -07:00
Dean Lee ef4c963c60
cabana: add comparision operator for CanEvent (#29864) 2023-09-10 16:09:22 -07:00
Dean Lee e9c1cf3b5a
cabana/Sconscript: add back dependency on #opendbc (#29832)
add dep on #opendbc
2023-09-07 23:59:02 -07:00
Justin Newberry 73eda51a11
System: use paths for download folders too (#29818)
* use paths for download folders too

* trailing slash

* reset that
2023-09-07 12:49:03 -07:00
Dean Lee 74daab120d
cabana: speed up exit (#29813) 2023-09-07 11:30:53 -07:00
Dean Lee 0f942a228d
cabana: regenerate car_fingerprint_to_dbc when DBC files change (#29815) 2023-09-07 11:22:03 -07:00
Dean Lee 7f23e69cb1
cabana: fix stuck on exit (#29796)
fix ctrl+c can't exit when stream dialog displayed on startup
2023-09-06 10:34:15 -07:00
Dean Lee bbf133a2e5
replay: fix concurrency issues (#29797)
fix concurrency issues
2023-09-06 10:34:01 -07:00
Dean Lee 60593660e6
cabana: add empty check before insert events (#29798) 2023-09-06 10:24:58 -07:00
Dean Lee 0afcf12368
cabana: fix crash when no can events in the log (#29795)
fix crash when no events
2023-09-06 02:36:07 -07:00
Shane Smiskol 2c87cd24ce
PlotJuggler: add control gains to longitudinal layout (#29794)
* add longitudinal control gains to long layout

* needless changes

* needless changes

* needless changes
2023-09-06 01:33:52 -07:00
Justin Newberry 4e69937d0d
Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
2023-09-05 16:33:26 -07:00
Justin Newberry a774809fdb
Sim: fix openpilot directory (#29754)
fix simulator
2023-09-01 16:02:57 -07:00
Kacper Rączy 92a4c2f741
body: make mic optional (#29746)
Only request for media that is available
2023-08-31 20:07:56 -07:00
Justin Newberry 405d09714c
Tests: expand temporary directory helpers for more directories (#29735)
* create helpers for testing

* document it

* fix other tests
2023-08-31 14:00:31 -07:00
Justin Newberry 7a4eaeaf9f
bump submodules (#29705)
* bump submodules

* bump rednose

* fix dockerfiles
2023-08-29 17:02:38 -07:00
Kacper Rączy 39d2517d3d
macOS: generate .pyenvrc during setup (#29698)
* Create .pyenvrc if it does not exist

* Replace source zshrc with pyenvrc

* Remove unnecessary variables if pyenv wasn't installed

* Add check fo PYENV_SHELL

* source instead of eval

* printf instead of echo

* leave previous pyenvrc path to source

* Add newline

* Change shebang

* Dont source the file after setup

* eval virtualenv-init too

* modify comment

* Just unset broken function on macos
2023-08-29 16:01:04 -07:00
Justin Newberry 5dc7028f91
Tests: logmessaged reduce global state (#29680)
* reduce global state

* use a decorator here too

* use that one

* use base imports

* ipchandler in setup

* move to common dir

* move to helpers

* wip

* fix the decorator
2023-08-29 13:36:26 -07:00
Justin Newberry dd9b0231c6
Tests: test_caching reduce global state (#29681) 2023-08-29 10:06:32 -07:00
Adeeb Shihadeh 72e2e2c9ec
pytest: strict config (#29676)
* pytest: strict config

* collection works

* fixes
2023-08-28 10:26:19 -07:00
Justin Newberry 5716dfc9b5
CI: fix sim/docs scons cache invalidation (#29639)
* fix sim and docs images

* fix that

* that's a weird issue

* exists should work fine

* as little diff as possible
2023-08-27 19:52:38 -07:00
Dean Lee 4f915f4f1a
cabana/MessageListModel: replace `match |=` with `match = match ||` (#29667) 2023-08-27 17:56:49 +01:00