Jason Wen
fb6acf9ff1
ui: New ButtomParamControl design
2023-10-04 16:59:33 +00:00
Jason Wen
62e6d6392d
V-TSC: Parse lane lines calculation fix ( #326 )
2023-10-02 22:54:01 -04:00
Jason Wen
48d7faf48f
Dynamic Longitudinal Control ( #218 )
...
* Dynamic End to End Longitudinal
* Revert "Dynamic End to End Longitudinal"
This reverts commit cec0fa8ad23b8473b27c58f6d20ba6d4d58e726e.
* Dynamic Longitudinal Controller
* Update CHANGELOGS.md
* add to builds
* Name change
* Toggle at wrong place :p
* oops take this out for now
* ZeroDivisionError
* add mpc mode to cereal
* add mpc mode to cereal
* Add UI button, replace MEMORY with DLC status in dev UI
* small change
* Higher stop counts
* add blinker logic
* initial set normally if DLC is on
* Update CHANGELOGS.md
* Fix
* fixes
* add dlc to Feature Status
* catch AttributeError
* fix
* add btn
* Dynamic Longitudinal Control (DLC) -> Dynamic Experimental Control (DEC)
* Capitalization on ACC and Blended
* add here
* sync
* sync
* Update CHANGELOGS.md
* cleanup
* more cleanup
2023-10-01 23:59:27 -04:00
Jason Wen
d0e58efaf6
Hyundai CAN Longitudinal: Only use vision-based yRel for Hyundai camera-based SCC platforms ( #320 )
2023-10-01 21:43:00 -04:00
Jason Wen
cc47228363
Cereal: Use custom reserved structs (aka MSPA) ( #316 )
...
* Cereal: Use custom reserved structs
* bump cereal
* fix dmonitoring
* pandaStateSP & controlsStateSP
* LongitudinalPlanSP
* LateralPlanSP
* LiveMapDataSP
* E2eLongStateSP
* fixup! LongitudinalPlanSP
* fix
* LongitudinalPersonality fix
* sync with upstream
* bump cereal
* LongitudinalPersonalitySP fixed
* LongitudinalPlanSP fix
* no need
* bump cereal
* bump panda
* no longer logs controlsAllowedLong
* bump cereal
* bump cereal
* fix
* LiveMapDataSP fix
* MSPA (#217 )
* Cereal: Use custom reserved structs
* fix dmonitoring
* sync with upstream
* bump cereal
* bump cereal
* fix
* bump cereal
* fix
* unused
* check sm valid
* bump cereal
* MSPA: Unused service (#218 )
* bump panda
* bump panda
* bump panda
2023-10-01 03:13:14 -04:00
Jason Wen
823e82ec0a
MADS: Remove controlsAllowedLong pandaStates to sync with stock cereal ( #315 )
...
* MADS: Remove controlsAllowedLong pandaStates to sync with stock cereal
* bump panda
* bump panda
2023-10-01 02:27:52 -04:00
Jason Wen
d6a768c96f
Hyundai CAN Longitudinal: Parse lead info for camera-based SCC platforms ( #299 )
...
* Hyundai CAN Longitudinal: Parse lead info for camera-based SCC platforms
* typo
* another typo
* camera SCC has them flipped
* disable `radarUnavailble`
* Missing on these platforms
* parse lateral position of lead car from vision model output
* fix CP init
2023-09-30 01:20:13 -04:00
Jason Wen
613d5b4aba
Torque Lateral Control: Refactor settings ( #300 )
...
* Torque Lateral Control: Refactor settings
* don't need this
* only offroad allowed
* Don't need this
* allow when offroad
* gate them
* flipped
* handle them better
* cleaner
* remove duplicate
* toggle checks cleanup
* 2.5 second check
* trigger refresh when going offroad
* cleanup
* move toggle
* update title and description
* fix ampersand
* update live torque toggle
* live torqued every 2.5 second
2023-09-29 02:36:55 -04:00
Jason Wen
c49b5c8e35
Lateral Planner: Fix Custom Offsets and Path Offset in all modes ( #309 )
...
* Lateral Planner: Fix Custom Offsets and Path Offset in all modes
* Update init values
2023-09-29 00:39:49 -04:00
Jason Wen
31c56ca708
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/controls/controlsd.py
# selfdrive/manager/custom_dep.py
2023-09-23 00:06:34 -04:00
Jason Wen
eb2a58185d
Merge branch 'upstream/openpilot/master'
...
# Conflicts:
# .pre-commit-config.yaml
# README.md
# cereal
# opendbc
# panda
# selfdrive/car/torque_data/override.yaml
2023-09-22 23:49:13 -04:00
Jason Wen
b868339f7a
Gap Adjust Cruise: Merge with Driving Personality ( #263 )
...
* Merge Gap Adjust Cruise with Driving Personality
* last bit
2023-09-14 03:15:43 -04:00
Vivek Aithal
00d1c682b0
Alerts: More understandable locationd, paramsd alerts ( #29831 )
...
* add locationd paramsd alerts
* remove more additions, just renames
* update refs
* Update selfdrive/controls/lib/events.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/controls/lib/events.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* resolve comemnts
* update cereal
* update refs
* remove nosensor in new alerts
* bump cereal
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-09-11 16:28:42 -07:00
Lee Jong Mun
238f9d65db
cleanup remnants of LQR and INDI tuning ( #29860 )
...
* not use 'indi' cleanup
* bump cereal
* rm more
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-09-10 16:30:13 -07:00
Justin Newberry
110cfef1c2
Ruff: disallow non-openpilot imports ( #29841 )
2023-09-08 10:43:02 -07:00
Justin Newberry
dde225221e
CI: run unittests in parallel with xdist ( #29756 )
...
* parallel tests
* review suggesions
* add to pyproject
* add a bit more buffer on that
* fix rare athena issue
* remove from pypoetry
2023-09-07 16:29:36 -07:00
Kacper Rączy
0267e0500c
radard: expose radarTrackId for radar leads ( #29809 )
...
* Add radarState track identifier for debugging purposes
* update process replay ref
2023-09-07 11:24:54 -07:00
Jason Wen
e50f3baa45
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/nissan/interface.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/car/toyota/interface.py
2023-09-07 00:05:25 -04:00
Vivek Aithal
dbada885ac
locationd: Add camera-IMU cross-checks ( #29727 )
...
* camera-gyro cross checks, but one way
* increase factor to account for gyro noise (potholes, bad roads etc
* increase factor to reduce FP with device taps, bad roads, etc
* factor to 30
* add inputsok to sensoir data invalid alert
* bugfix
* move the sensors check
* add localizer catchall alert
* update refcommit
* remove permanent alert
* revert sensorDataInvalid alert change, split into new PR
2023-09-06 21:01:01 -07:00
Jason Wen
ebfe40b76a
Merge remote-tracking branch 'commaai/openpilot/master'
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# .pre-commit-config.yaml
# cereal
# opendbc
# panda
2023-09-06 23:58:35 -04:00
Adeeb Shihadeh
ec479322d3
Revert "params: safe and efficient async writing parameters ( #25912 )"
...
This reverts commit 0d797f4e8b .
2023-09-06 13:44:20 -07:00
Dean Lee
0d797f4e8b
params: safe and efficient async writing parameters ( #25912 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-09-06 08:50:28 -07:00
Jason Wen
7dbbc001eb
Upstream merge fixes
2023-09-06 01:05:01 -04:00
Jason Wen
92abd64efd
Upstream merge fixes
2023-09-05 22:30:15 -04:00
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
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
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
Jason Wen
e362198880
MADS: allow Disengage on Accelerator ( #243 )
...
* MADS: allow Disengage on Accelerator
* make sure to disable in interfaces
2023-09-04 19:28:25 -04:00
Adeeb Shihadeh
9719b22761
Update Python packages and pre-commit hooks ( #29739 )
...
* Update Python packages and pre-commit hooks
* fix linter
---------
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com >
2023-08-31 15:00:13 -07:00
Justin Newberry
4aff2621d3
Tests: parameterize following distance test ( #29734 )
...
* split
* parameterize it
2023-08-31 13:41:02 -07:00
Kacper Rączy
d138a358eb
scons: fix multithreaded builds ( #29716 )
...
* common_python export
* Single scons call
* transformations_python
2023-08-31 00:01:03 +02:00
Kacper Rączy
97865d751f
radard: radar fault test ( #29673 )
...
* Radar fault test
* Remove i
* Add radar fault case for car interfaces
* Removed empty whitespace
* Fix typo
2023-08-28 22:34:47 -07:00
Kacper Rączy
517499294a
mpc_lib: fix dependencies ( #29621 )
...
* Remove common dependency of lateral mpc
* Replace cereal dir dependency with cereal lib in long mpc
* Add missing files to generated sources
* Typo fix
* messaging_python dep
2023-08-25 16:51:57 -07:00
Justin Newberry
1ee6ed4b16
Linter: remove pylint ( #29611 )
...
remove pylint
2023-08-24 16:30:54 -07:00
Cameron Clough
74b9a6af9e
add missing openpilot prefix to imports
2023-08-24 15:46:56 +01:00
Dean Lee
55cca6ed26
scons: remove missing MPC headers ( #29485 )
...
* remove invalid files
* Update selfdrive/controls/lib/lateral_mpc_lib/SConscript
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* Apply suggestions from code review
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2023-08-23 15:43:27 -07:00
Justin Newberry
979c96167d
CI: enable missing tests ( #29538 )
2023-08-22 16:48:02 -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
Adeeb Shihadeh
d61f86d339
replace custom clock helpers with time module ( #29499 )
...
* replace custom clock stuff wtih time module
* fix double
* fix release
* bump cereal
* update type
* fix one more
2023-08-20 18:50:58 -07:00
Shane Smiskol
1a08c2986e
Revert "radard: tie radard frequency to modelV2 vol. 2 ( #29240 )" ( #29474 )
...
* Revert "static analysis fixes"
This reverts commit a1e85f3661 .
* Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240 )"
This reverts commit 460f5c8e0b .
* update refs
2023-08-18 22:56:43 -07:00
Eric Brown
111b6438c6
Swap belowSteerSpeed and resumeRequired alert priorities ( #28795 )
...
* GM: Don't send belowSteerSpeed when resumeRequired
* Set belowSteerSpeed alert to LOW priority, resumeRequired to MID
* Add script to output all events and their priorities by type
* Set CP, CS, sm
* Subscribe to same messages as controlsd
* Create callable alerts
* Remove event print script
* Remove sng check
2023-08-17 16:03:35 -07:00
Kacper Rączy
62a88e504d
Unpin numpy ( #29421 )
...
* Unpin numpy
* Update lock file
* leave acados comment
* Fix warnings
* Fix more paramsd warnings
2023-08-17 15:36:14 -07:00
Jason Wen
9a6653bf4c
dcam: detect and ignore errors for unofficial devices ( #237 )
...
* dcam: detect and ignore errors for unofficial devices
* must be a registered device
2023-08-17 12:31:40 -04:00
Jason Wen
0c3e99f83f
controlsd: ignore nonessential processes ( #234 )
2023-08-16 22:37:38 -04:00
Adeeb Shihadeh
00a11a1a2b
remove fastcluster ( #29352 )
...
* remove fastcluster
* lock
* rm there
* and from release files
2023-08-11 21:08:49 -07:00
Shane Smiskol
a1e85f3661
static analysis fixes
2023-08-11 18:22:42 -07:00
Kacper Rączy
460f5c8e0b
radard: tie radard frequency to modelV2 vol. 2 ( #29240 )
...
* radard: tie radard frequency to modelV2
Accumulate parsed messages until state is updated (toyota)
Same for honda
Rename rr to something more descriptive
* Change _update method name, since signature has changed
* Update ref commit
* Some renames
* Check for number of cans
2023-08-11 18:07:06 -07:00
Justin Newberry
62c1e65924
Ruff: enable most of bugbear ( #29320 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
2023-08-11 15:33:49 -07:00
Justin Newberry
8793cbff40
Ruff: enable flake8-builtins ( #29315 )
...
* enable flake8-builtins
* replace any with contains
* fix typo in pack
* fix type
* format is from the parent module, has to be enabled
* item_id
* fix item_id
* disable for id since that's what the remote server returns
2023-08-10 18:58:22 -07:00