Jason Wen
9e63be9ba2
Sync: commaai/opendbc:master into sunnypilot/opendbc:master
...
Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2024-06-12 21:09:05 -04:00
commaci-public
71063d66cd
[bot] Update Python packages and pre-commit hooks ( #32682 )
...
* Update Python packages and pre-commit hooks
* fix linter
* poetry lock
---------
Co-authored-by: Vehicle Researcher <user@comma.ai >
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com >
2024-06-10 17:19:01 -07:00
Jason Wen
1ffc59f65a
Merge branch 'upstream/openpilot/master' into sync-20240608
...
# Conflicts:
# cereal
# opendbc
# panda
# release/files_common
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/ui/translations/main_zh-CHS.ts
# selfdrive/ui/translations/main_zh-CHT.ts
2024-06-08 23:08:33 -04:00
Harald Schäfer
e71ec4e8d7
Split cereal into cereal/msgq ( #32631 )
...
* squash
* fix doc
* compile device
* compile device
* Update ref
* add msgq to precommit exclusions
* No service ports
* fix compile
* address comments
* More comments
* Delete logger
* Update opendbc
* Linting
* bump msgq
2024-06-06 14:31:56 -07:00
Adeeb Shihadeh
34e329649d
boardd is pandad ( #32628 )
...
* boardd is pandad
* rename tests
2024-06-04 19:16:55 -07:00
Hoang Bui
630e152900
Simulator: standardize queue messages ( #32313 )
...
* standardize queue messages
* update control_command_gen
* fix
* fix logic
* update closing type
* qmessagetype -> enum
* update type hint
* old close() makes more sense
* cleanup
* fix
* revert that
* revert that
* better name
* actually this is better
2024-05-17 19:51:07 -07:00
Jason Wen
a48a909997
Revert "cleanup pedal crc"
...
This reverts commit 23e8ad7397 .
2024-05-04 23:51:38 -04:00
Jason Wen
dc37a6f9b2
Revert "simulator: Remove comma pedal sensor ( #32030 )"
...
This reverts commit 1637265ad3 .
2024-05-04 23:51:35 -04:00
Michel Le Bihan
44129ad0df
simulator: Change car to Honda Civic 2022 ( #32087 )
...
* simulator: Change car to Honda Civic 2022
* simulator: Enable experimental longitudinal control
2024-04-02 10:28:19 -07:00
Michel Le Bihan
1637265ad3
simulator: Remove comma pedal sensor ( #32030 )
2024-03-27 09:47:29 -07:00
Adeeb Shihadeh
23e8ad7397
cleanup pedal crc
2024-03-20 10:35:33 -07:00
Adeeb Shihadeh
fa12a67228
remove pedal ( #31903 )
...
* remove pedal
* bump panda
* fix
* update refs
2024-03-17 22:42:49 -07:00
Michel Le Bihan
b4c8e0834d
Simulator: Add world status reporting ( #31740 )
2024-03-06 19:16:21 -08:00
Michel Le Bihan
32fb58656a
Only print keyboard help on poll start and unknown command ( #31710 )
2024-03-05 10:36:01 -08:00
Michel Le Bihan
87a9445d56
Add simple MetaDrive scenario ( #31686 )
2024-03-04 08:54:08 -08:00
Harald Schäfer
85eb221e4c
GpsLocation: Rename accuracy to horizontal accuracy ( #31629 )
...
* Rename accuracy to horizontal accuracy
* typo in cereal
2024-02-28 19:55:57 -08:00
Cameron Clough
995250ae49
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
2024-02-24 16:41:23 -08:00
Justin Newberry
a51ef41cf8
Simulator: simulate the obd enabled/changed dance ( #31519 )
...
obd dance
2024-02-20 12:11:42 -08:00
Justin Newberry
a6b17fb1f6
Simulator: fix keyboard ctrl messing with pytest ( #30827 )
...
fix
2023-12-20 15:10:11 -08:00
Justin Newberry
8017c25f0b
Simulator: only send camera frames at rate that they are generated ( #30802 )
...
only send frames at rate that they are generated
2023-12-19 10:45:07 -08:00
Justin Newberry
977dd033c4
Simulator: fix safety param ( #30738 )
...
fix param
2023-12-14 19:34:06 -08:00
Kacper Rączy
43e1409fd2
metadrive: fix wasd steer signs ( #30623 )
...
* Swap AD signs
* Fix type annotation
* fix user torque
---------
Co-authored-by: Justin Newberry <justin@comma.ai >
2023-12-12 14:09:07 -08:00
Justin Newberry
11ec5bf25e
Simulator: remove carla ( #30690 )
...
* no carla
* no arg and stylize metadrive
2023-12-11 20:38:37 -08:00
Shane Smiskol
97da129e11
ruff: check newline ( #30668 )
...
* check newline
* nothing catches this
2023-12-09 13:24:18 -08:00
Justin Newberry
bb9dda9764
simulator: set valid flags ( #30656 )
...
sim set valid
2023-12-08 16:31:30 -08:00
Logan Lasiter
5b2bcf6bf2
adding --local-partial-types mypy opt ( #30491 )
2023-11-18 22:47:11 -08:00
Justin Newberry
ba90bdf7d9
Simulator: blinkers and lane changes ( #30107 )
...
blinkers and lane changes
2023-09-29 16:32:45 -07:00
Justin Newberry
84609f365b
Simulator: update documentation for metadrive ( #30002 )
...
* update sim docs
* update docs
2023-09-29 12:44:12 -07:00
Justin Newberry
9d3dbd245a
Metadrive: move to a separate process ( #30103 )
...
* split bridge into two files
* fix metadrive
* wip
* fix tests too
* separate process
* sepeprate process
* finish moving to another process
* remove spammy output
2023-09-29 11:45:14 -07:00
Justin Newberry
2792e5f2db
Simulation: engage on startup, print help message ( #30044 )
2023-09-27 07:21:46 -07:00
Justin Newberry
0857f4bb85
Simulator: add reset hotkey ( #29995 )
...
add sim reset
2023-09-20 17:28:41 -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
Justin Newberry
bee40de703
Simulator: fix controlsd mismatch ( #29976 )
...
fix controls mismatch
2023-09-19 12:51:54 -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
Justin Newberry
1ee6ed4b16
Linter: remove pylint ( #29611 )
...
remove pylint
2023-08-24 16:30:54 -07:00
Adeeb Shihadeh
a9626f95b6
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
2023-08-20 20:49:55 -07:00
Shane Smiskol
84fbf1c2e9
simulator: fix CANParser input args ( #29343 )
...
* we weren't testing?
* fix
2023-08-11 14:12:33 -07:00
Harald Schäfer
c5c9d5b921
Fix CARLA simulation ( #28541 )
...
* logmessaged conflicts with onnxrunner
* More fixes, now engages
* Fix can properly
* Otherwise it faults
* Put check back
* remove more hacks
* remove more hacks
* Not relevant anymore
* Narrow camera default
2023-06-13 22:54:37 -07:00
Adeeb Shihadeh
49044b5399
remove old tools script
2022-08-07 17:10:14 -07:00
Adeeb Shihadeh
0ca62bf7df
let can packer handle counter ( #25240 )
...
* let can packer handle counter
* diff is expected
* update refs
* clean that up
* bump opendbc
* fix sim
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh
569a39ff76
CANParser: invalid until valid ( #24945 )
...
* CANParser: invalid until valid
* bump opendbc
* bump opendbc
* fix counter in sim
2022-06-22 15:38:38 -07:00
Maxime Desroches
5add0c6159
simulator: run simulator test in ci ( #24691 )
...
* run simulator test in ci
* block navd process
* block ui
* fix jenkins
* build docker
* remove tty
* remove tty for carla
* detach carla_sim
* more retries
* only build once
* add more time for bridge
* cleanup
* use qt offscreen
* expose to docker
* block ui
* use new dockerimage
* fix
* from ubuntu20.04
* install curl
* add ssh
* add locales
* noninteractive
* syntax
* use base
* smaller image
* add git + git lfs
* kill carla
* run in parallel
* fix missing agents
* default agent?
* little cleanup
* default doesn't work
* not in ci
* fix path
* fix path
* new msg
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-06-11 15:32:12 -07:00
Gijs Koning
ee433dfa57
Simulator: Fix CI and set low_quality default ( #24354 )
...
* Change low_quality argument and fix closing carla bridge
* Some fixes
* Change carla process in test
* Change fov to 120, higher doesn't look good
* Update readme and remove redundant test
* update
* Add folder description
2022-04-29 07:15:05 -07:00
Adeeb Shihadeh
bb36a1c8b2
sim: add ignition toggling ( #24043 )
2022-03-25 14:17:45 -07:00
Adeeb Shihadeh
8af20af66d
pylint: enforce indentation (W0311) ( #24039 )
...
* pylint: enforce indentation (W0311)
* few more
2022-03-24 23:23:29 -07:00
Adeeb Shihadeh
36a3ec04be
sim: fix bridge after default values removed from CANParser
2022-01-29 18:22:14 -08: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
jimw
a58d272ae4
CARLA: send YUV and RGB over visionipc from bridge.py ( #23012 )
...
* CARLA: send YUV and RGB over visionipc
* CARLA: send YUV and RGB over visionipc-fix pipfile
* CARLA: send YUV and RGB over visionipc-Camerad class
* relock pipfile
* small bridge cleanup
* use tici camera resolution
* update vof
* HUD_SETTING has no counter
* no loggerd
Co-authored-by: jwolffe <wolffja@gmail.com >
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2021-11-26 16:58:25 +01:00
Adeeb Shihadeh
45ced84acf
sim: fix CAN error and block loggerd
2021-11-13 12:21:24 -08:00
Adeeb Shihadeh
e556d3d3d3
sim: set fingerprint with environment variable ( #22679 )
2021-10-24 21:59:50 -07:00