Jason Wen
808611e691
Upstream merge fixes
2023-09-05 21:20:52 -04:00
Jason Wen
9219b7966c
Merge branch 'master' into dev-priv/master-test
...
# Conflicts:
# panda
# release/build_release.sh
# selfdrive/car/car_helpers.py
# selfdrive/car/chrysler/carcontroller.py
# selfdrive/car/chrysler/carstate.py
# selfdrive/car/chrysler/interface.py
# selfdrive/car/ford/carstate.py
# selfdrive/car/ford/interface.py
# selfdrive/car/gm/carcontroller.py
# selfdrive/car/gm/carstate.py
# selfdrive/car/gm/interface.py
# selfdrive/car/honda/carcontroller.py
# selfdrive/car/honda/interface.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/interfaces.py
# selfdrive/car/mazda/carcontroller.py
# selfdrive/car/mazda/carstate.py
# selfdrive/car/mazda/interface.py
# selfdrive/car/nissan/carcontroller.py
# selfdrive/car/nissan/interface.py
# selfdrive/car/subaru/carstate.py
# selfdrive/car/subaru/interface.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/car/toyota/carcontroller.py
# selfdrive/car/toyota/carstate.py
# selfdrive/car/toyota/interface.py
# selfdrive/car/toyota/toyotacan.py
# selfdrive/car/volkswagen/carcontroller.py
# selfdrive/car/volkswagen/carstate.py
# selfdrive/car/volkswagen/interface.py
# selfdrive/controls/controlsd.py
# selfdrive/controls/lib/latcontrol_torque.py
# selfdrive/controls/lib/lateral_planner.py
# selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/locationd/paramsd.py
# selfdrive/manager/manager.py
# selfdrive/manager/process.py
# selfdrive/manager/process_config.py
# selfdrive/sentry.py
# selfdrive/ui/SConscript
# selfdrive/ui/qt/home.cc
# selfdrive/ui/qt/maps/map_settings.cc
# selfdrive/ui/qt/maps/map_settings.h
# selfdrive/ui/qt/offroad/settings.cc
# selfdrive/ui/qt/onroad.cc
# selfdrive/ui/qt/onroad.h
# selfdrive/ui/qt/util.cc
# selfdrive/ui/qt/util.h
# selfdrive/ui/soundd/sound.h
# selfdrive/ui/ui.h
# system/version.py
2023-09-05 20:17:19 -04:00
Jason Wen
9bc73b85ff
Merge remote-tracking branch 'commaai/openpilot/master'
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# .pre-commit-config.yaml
# README.md
# cereal
# common/version.h
# opendbc
# panda
# selfdrive/car/chrysler/carcontroller.py
# selfdrive/car/chrysler/carstate.py
# selfdrive/car/chrysler/interface.py
# selfdrive/car/gm/carstate.py
# selfdrive/car/honda/carstate.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/radar_interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/interfaces.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/carstate.py
# selfdrive/car/subaru/interface.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/car/torque_data/override.yaml
# selfdrive/car/toyota/carcontroller.py
# selfdrive/car/toyota/carstate.py
# selfdrive/car/toyota/interface.py
# selfdrive/car/toyota/toyotacan.py
# selfdrive/car/volkswagen/carstate.py
# selfdrive/controls/lib/desire_helper.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/thermald/power_monitoring.py
# system/loggerd/uploader.py
2023-09-05 11:50:47 -04:00
Adeeb Shihadeh
d013f2174a
manager: refactor process starting logic ( #29574 )
...
* refactor into sane api
* always set
* cleanup
* cleanup
* and there too
* fix order
* fail
* and ensure we test
* pass test
pass test
* order
* only diff not related
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2023-08-24 06:00:55 -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
Jason Wen
ec47a9e977
Manager: delay ui start ( #238 )
...
* remove unused
* start ui at the end
* Revert "remove unused"
This reverts commit f1cf4a597295da62bc93e4e858423cd50d439824.
2023-08-17 23:19:55 -04:00
Vivek Aithal
81322a4805
[commabody] setup and run live stream encoders ( #29087 )
...
* op changes needed for body
* remove logmessaged callback
* add newlines
* add stream arg
* add stream_encoder to config
* supersets, avoid two encoderd
* fix recursive exit error
* fix loggerd crash
* add stream_encoderd cpu usage to test
* Update system/loggerd/loggerd.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* resolve comments
* stream_encoderd onroad to false
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-08-11 15:34:25 -07:00
Vivek Aithal
e7d307ca1b
[commabody] Add new body teleop ui ( #29282 )
...
* Revert "Revert "[commabody] Add new body teleop ui (#29119 )" (#29249 )"
This reverts commit 623351e4ed .
* add to release files
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-08-08 14:12:51 -07:00
Harald Schäfer
623351e4ed
Revert "[commabody] Add new body teleop ui ( #29119 )" ( #29249 )
...
This reverts commit a7304d059c .
2023-08-05 07:15:35 -07:00
Vivek Aithal
a7304d059c
[commabody] Add new body teleop ui ( #29119 )
...
* add new ui
* move body tele op ui to new dir
* fix codespell errors
* resolve mediablackhole pylint error
* fix import error
* style fixes
* use logging, not print
* fix js styling
* resolve comments
2023-08-04 13:56:46 -07:00
Jason Wen
31b29bc094
Merge branch 'master' into dev-priv/master
2023-08-02 12:58:28 -04:00
Adeeb Shihadeh
bc0aa1c598
manager: remove old unkillable process handling ( #29209 )
2023-08-01 22:18:58 -07:00
Jason Wen
8498b1a1c3
Merge branch 'upstream/openpilot/master'
2023-08-01 23:03:54 -04:00
Jason Wen
0bfa681eb7
ui: enable always_watchdog ( #206 )
2023-07-09 01:28:40 -04:00
Adeeb Shihadeh
9ca96cc4b1
manager: write ublox param on change ( #28748 )
2023-06-29 16:05:00 -07:00
Jason Wen
6df086aa82
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/honda/interface.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/mazda/carstate.py
# selfdrive/car/nissan/nissancan.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/car/volkswagen/mqbcan.py
# selfdrive/car/volkswagen/pqcan.py
# selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/ui/SConscript
# selfdrive/ui/qt/offroad/settings.cc
# selfdrive/ui/qt/onroad.cc
# selfdrive/ui/translations/main_de.ts
# selfdrive/ui/translations/main_ja.ts
# selfdrive/ui/translations/main_ko.ts
# selfdrive/ui/translations/main_zh-CHS.ts
# selfdrive/ui/translations/main_zh-CHT.ts
2023-06-22 15:14:15 -04:00
Jason Wen
54c4dbd49b
Merge branch 'upstream/openpilot/master'
...
# Conflicts:
# cereal
# common/version.h
# opendbc
# panda
# selfdrive/car/honda/carstate.py
# selfdrive/car/honda/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/manager/manager.py
2023-06-22 14:52:51 -04:00
Mitchell Goff
aadd9ae269
Enable nav features in modeld ( #28448 )
...
* Enable nav features in modeld
* Enable mapsd/navmodeld
* Updated model_replay_ref_commit and added mapsd/navmodeld to test_onroad
* fixed process name
* always publish from mapsd
2023-06-16 21:27:35 -07:00
Mitchell Goff
6509cde41b
Rename map_renderer -> mapsd ( #28580 )
2023-06-16 20:12:50 -07:00
Jason Wen
f182323cf3
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# selfdrive/manager/process_config.py
2023-06-08 20:33:08 -04:00
Jason Wen
1dd4eb6fe0
Fleet Manager: rename process
2023-06-08 20:30:28 -04:00
Adeeb Shihadeh
3e3c8b7ddf
soundd: only run onroad ( #28449 )
2023-06-07 16:24:54 -07:00
Jason Wen
48c440f24d
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# selfdrive/manager/process_config.py
2023-06-07 17:22:21 -04:00
Jason Wen
462b20ac12
Dashcam Viewer ▶️ Fleet Manager ( #174 )
...
* Dashcam Viewer ▶️ Fleet Manager
* missed
* process
2023-06-07 13:56:36 -04:00
Jason Wen
c69e49c064
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# selfdrive/manager/process_config.py
2023-05-29 19:35:21 -04:00
Curtis Jenkins
13616ab771
Dashcam Viewer support ( #155 )
...
* add webserver + dashcam reviewer
* add offroad flag to webserver process
* fix process and rename tag in webpage
* add read me
* formatting & shadow names
* small cleanup
* +
* Force offroad only
Co-authored-by: Jason Wen <haibin.wen3@gmail.com >
* Update function name
change from "hello_world" to "index"
Co-authored-by: Jason Wen <haibin.wen3@gmail.com >
* Change webserver process name
now dashcam_viewer
* change process name to dashcam(_)viewer
* sort
* Update README.md
* Credit
* fix
* shadow
* name
* name
---------
Co-authored-by: Jason Wen <haibin.wen3@gmail.com >
2023-05-29 19:32:12 -04:00
Jason Wen
ee0dfacb93
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/car_helpers.py
# selfdrive/car/toyota/interface.py
# selfdrive/ui/ui.cc
2023-03-24 15:24:05 -04:00
Jason Wen
18a5cf0277
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# opendbc
# panda
# selfdrive/ui/ui.cc
2023-03-24 15:05:42 -04:00
Adeeb Shihadeh
39cf8c6694
only run rawgpsd without a ublox ( #27577 )
2023-03-14 13:31:49 -07:00
Jason Wen
27bd70f64b
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/gm/interface.py
# selfdrive/ui/translations/main_zh-CHT.ts
2023-03-12 14:59:46 -04:00
Jason Wen
b475e28087
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# panda
# selfdrive/car/hyundai/interface.py
# selfdrive/car/toyota/carcontroller.py
2023-03-12 14:52:12 -04:00
Adeeb Shihadeh
c97911dbad
ubloxd: move to system/ ( #27536 )
...
* ubloxd: move to system/
* more fixes
* add missing sconscript
* fix valgrind tests
* uncomment
2023-03-08 16:11:18 -08:00
Adeeb Shihadeh
94eb215980
loggerd: move to system/ ( #27534 )
2023-03-08 11:20:49 -08:00
Adeeb Shihadeh
6f40f0d442
sensord: move to system/ ( #27531 )
...
* sensord: move to system/
* add gitignore to releaes files
2023-03-08 10:56:54 -08:00
Jason Wen
828bbdc912
dragonpilot: otisserv ( #42 )
2023-02-20 01:02:35 -05:00
Jason Wen
bf659453aa
move-fast: mapd, Speed Limit Control, Vision & Map Turn Speed Control ( #111 )
...
* move-fast: Hands on wheel monitoring: Implementation according to r079r4e regulation
* move-fast: VisionTurnController Implementation & UI prerequisites
* move-fast: LiveMapData: Implementation & UI prerequisites
* add dependencies
* move-fast: SpeedLimitControl: Implementation & UI prerequisites
* move-fast: TurnSpeedController: Implementation & UI prerequisites
* move-fast: Debug: Tap on Ui to capture snapshot of debug data & UI prerequisites
* Debug UI: Toggle to display debug UI elements & UI prerequisites
2023-02-13 11:38:11 -05:00
Jason Wen
0790e4d9f7
gpxd ( #106 )
2023-02-05 19:58:26 -05:00
Adeeb Shihadeh
6861c99991
don't run ublox procs without ublox ( #26965 )
...
* pigeond: don't run if ublox missing
* same for ubloxd
Co-authored-by: Comma Device <device@comma.ai >
2023-01-14 23:06:09 -08:00
Mitchell Goff
bb8a38a050
navmodeld ( #26665 )
...
* Added navmodeld
* New nav model: 7c306685-5476-4bd4-ab65-105b01b6bca8/300, feats only
* little cleanup
* Remove NAV flag
* Moved to_kj_array_ptr to commonmodel.h
* Switch from decimation to last_frame_id check
* add to release files
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-12-02 13:14:30 -08:00
Cameron Clough
108ff15f5d
micd: scale sound volume with ambient noise level ( #26399 )
...
* test changing sound volume
* test changing sound volume
* create system/hardware/pc/hardware.h
* implement Hardware::set_volume using pactl
* soundd: use Hardware::set_volume
* add sounddevice dependency
* sounddevice example
* simple micd
* cleanup
* remove this
* fix process config
* add to release files
* hardware: get sound input device
* no more offroad
* debug
* calculate volume from all measurements since last update
* use microphone noise level to update sound volume
* fix scale
* mute microphone during alerts
* log raw noise level
* hardware: reduce tici min volume
* improve scale
* add package
* clear measurements on muted
* change default to min volume and respond quicker
* fixes
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* logarithmic scaling
* fix
* respond quicker
* fixes
* tweak scaling
* specify default device
* Revert "hardware: get sound input device"
This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.
* tuning
* forgot to update submaster
* tuning
* don't mute microphone, and clip measurement
* remove submaster
* fixes
* tuning
* implement Hardware::set_volume using pactl
* Revert "test changing sound volume"
This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.
* draft
* draft
* calculate sound pressure level in dB
* fix setting
* faster filter
* start at initial value
* don't run command in background
* pactl: use default sink
* use sound pressure db
* tuning
* bump up max volume threshold
* update filter slower
* fix divide by zero
* bump cereal
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2022-11-30 21:56:03 -08:00
Mitchell Goff
fcd6125deb
Compute zoom level and downsample image in map_renderer.cc ( #26315 )
...
* Automatically zoom to fixed scale in map_renderer.cc
* Always downsample in map_renderer
* Remove updateZoom function
* Added mapsd to process_config.py (commented out for now)
2022-11-01 19:16:37 -07:00
Adeeb Shihadeh
9935a65115
always enable rawgps on tici ( #25987 )
2022-10-06 13:47:09 -07:00
Vivek Aithal
4fa62f1464
Live torque ( #25456 )
...
* wip torqued
* add basic logic
* setup in manager
* check sanity and publish msg
* add first order filter to outputs
* wire up controlsd, and update gains
* rename intercept to offset
* add cloudlog, live values are not updated
* fix bugs, do not reset points for now
* fix crashes
* rename to main
* fix bugs, works offline
* fix float in cereal bug
* add latacc filter
* randomly choose points, approx for iid
* add variable decay
* local param to capnp instead of dict
* verify works in replay
* use torqued output in controlsd
* use in controlsd; use points from past routes
* controlsd bugfix
* filter before updating gains, needs to be replaced
* save all points to ensure smooth transition across routes, revert friction factor to 1.5
* add filters to prevent noisy low-speed data points; improve fit sanity
* add engaged buffer
* revert lat_acc thresh
* use paramsd realtime process config
* make latacc-to-torque generic, and overrideable
* move freq to 4Hz, avoid storing in np.array, don't publish points in the message
* float instead of np
* remove constant while storing pts
* rename slope, offset to lat_accet_factor, offset
* resolve issues
* use camelcase in all capnp params
* use camelcase everywhere
* reduce latacc threshold or sanity, add car_sane todo, save points properly
* add and check tag
* write param to disk at end of route
* remove args
* rebase op, cereal
* save on exit
* restore default handler
* cpu usage check
* add to process replay
* handle reset better, reduce unnecessary computation
* always publish raw values - useful for debug
* regen routes
* update refs
* checks on cache restore
* check tuning vals too
* clean that up
* reduce cpu usage
* reduce cpu usage by 75%
* cleanup
* optimize further
* handle reset condition better, don't put points in init, use only in corolla
* bump cereal after rebasing
* update refs
* Update common/params.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* remove unnecessary checks
* Update RELEASES.md
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-09-19 15:19:26 -07:00
Robbe Derks
13489d092e
Pigeond ( #25561 )
...
* split out pigeond from boardd
* also want to turn off power
* fix manager calls
* move to sensord folder
* release files:
* add assistnow code
* no bare except
* add test script to test TTFF
Co-authored-by: Comma Device <device@comma.ai >
2022-08-26 23:11:46 -07:00
Adeeb Shihadeh
96f8d3acd5
rawgps in CI ( #25473 )
2022-08-17 20:00:15 -07:00
Willem Melching
cdc7a6dbea
enable laikad ( #25013 )
...
* enable laikad
* increase logprint for onroad test
2022-07-01 08:26:41 -07:00
Adeeb Shihadeh
6123ab3d1c
Move camerad to system/ ( #24836 )
...
* mv camerad
* add hardware symlink
* fix unit tests
2022-06-19 14:43:49 -07:00
Gijs Koning
dc98511b7a
laikad: fixes to run on device ( #24879 )
...
* Always run laikad on device!
* Update laika
* Update laika
* Fix gps week and time of week in msg
* Reset kalman filter if pos_fix or last_known_position
* put behind file
* move pr parsing into common file
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2022-06-16 17:45:08 +02:00
Adeeb Shihadeh
0fce5d9045
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
1139fe507b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
2022-06-11 16:38:24 -07:00