Jason Wen
cfeba34d5d
Merge branch 'upstream/openpilot/master-20231016-sync' into master-20231016
...
# Conflicts:
# cereal
# panda
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/values.py
# selfdrive/controls/controlsd.py
# selfdrive/controls/plannerd.py
# selfdrive/monitoring/dmonitoringd.py
2023-10-16 11:03:27 -04:00
Jason Wen
c8debe77db
MSPA ( #217 )
...
* Cereal: Use custom reserved structs
* fix dmonitoring
* sync with upstream
* bump cereal
* bump cereal
* fix
* bump cereal
* fix
* unused
* check sm valid
2023-10-01 02:05:05 -04:00
Adeeb Shihadeh
a4aa801fbe
simplify sensor alert ( #29824 )
...
* simplify
* update proc replay
2023-09-26 16:47:21 -07: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
Shane Smiskol
7f073483bb
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
2023-09-21 18:25:15 -07: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
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
Jason Wen
7dbbc001eb
Upstream merge fixes
2023-09-06 01:05:01 -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
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
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
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
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
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
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
eFini
8ca7753c95
longitudinal_planner.py: cleaner variable assignment ( #29290 )
...
* cleaner variable assignment
* Update selfdrive/controls/lib/longitudinal_planner.py
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-08-09 15:17:19 -07:00
Justin Newberry
7fdd9fc37c
CI: Pylint to ruff ( #29294 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
* set line length
* pylint exclusions to ruff
* same excludes as old linter
* fix tools QA
* remove unrequired check
* revert linting third_party
* ignore e402
2023-08-09 13:26:54 -07:00
Justin Newberry
cf64b27168
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
2023-08-08 17:13:35 -07:00
Justin Newberry
a91764954b
Revert "CI: pylint to ruff ( #29276 )" ( #29284 )
...
This reverts commit cb31a53d8a .
2023-08-08 14:24:04 -07:00
Justin Newberry
cb31a53d8a
CI: pylint to ruff ( #29276 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
2023-08-08 13:41:30 -07:00
Jason Wen
8498b1a1c3
Merge branch 'upstream/openpilot/master'
2023-08-01 23:03:54 -04:00
Kacper Rączy
c640429406
aarch64: ubuntu build support ( #29171 )
...
* Add support for aarch64 pc linux
* Add new libyuv path to release files
* Add libyuv's x86_64 lib dir
* Move left-over platform specific dirs from files_common
* Remove libyuv/lib directory (duplicate)
* Fix mpc Sconscripts
* Remove acados lib path from mpc sources
* Fix typo
* Add watch3 exec on aarch64
2023-08-01 16:18:46 -07:00
Lee Jong Mun
a61df2bdde
controls: use common car interface acceleration limits ( #29184 )
...
* Duplicate Accel param
using interfaces accel param
* revert brand accel value
* import error
* sort
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2023-07-31 22:56:47 -07:00
Adeeb Shihadeh
3476205569
increase min duration of steer saturated alert ( #29191 )
...
* increase min duration of steer saturated alert
* update refs
2023-07-31 12:48:11 -07:00
Maxime Desroches
97eec45d42
Test scons multithreaded random build ( #29082 )
...
* random build
* name
* 2 pass
* clean after
* fail on this
* fix deps
* format
* var
* try without lfs
2023-07-21 21:57:27 -07:00
Harald Schäfer
ca699e3989
radard: no clustering ( #29010 )
...
* First commit
* cleanup
* Update ref
* Doesnt deserve two files
* cleanup radard
2023-07-19 20:31:40 -07:00
eFini
7a5dbe6132
long_mpc: clean up get_T_FOLLOW() usage ( #29033 )
2023-07-19 02:07:01 -07:00
Shane Smiskol
b5b431c12d
Revert "experimental mode: gate navigate on openpilot ( #28883 )" ( #29005 )
...
This reverts commit f973d605b2 .
2023-07-17 19:56:38 -07:00
Eric Brown
22c413af6d
Events: debug script ( #28898 )
...
* Move to separate branch
* Fix mypy
* Better printout
* Fix spacing
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-07-16 16:59:27 -07:00
Shane Smiskol
f973d605b2
experimental mode: gate navigate on openpilot ( #28883 )
...
* first draft copy, needs updates
* gate behind exp mode
* can be one line
* this is no longer true
* toggle isn't just e2e long now, rename
* don't enable/disable
* kinda works!
* remove old giant qstring
* comment clean up
* similar breakpoint
* more clean up
* fixup onroad
* preserve planner behavior, and we don't need to look at confirmed param if we're onroad
* update translations
* vanish translations
* use scene for op long
* lowercase!
* updated copy
* need to check longitudinal here now too
* clean up!
* here is better
* used
* no nav emoji
* don't check param if not valid
* revert this
revert this
* ed
2023-07-14 05:26:59 -07:00
Adeeb Shihadeh
336b5f7324
reduce startup alert duration ( #28749 )
...
* reduce startup alert duration
* update refs
2023-06-29 17:57:25 -07:00
Shane Smiskol
e8007950ae
desire helper: fix text flicker when changing direction ( #28720 )
...
* draft
* or this works
* or simply this
2023-06-27 13:42:32 -07:00
Harald Schäfer
ae3681f2bb
Test and fix cruise speed all personalities ( #28658 )
...
* Fix cruise speed in non-standard mode
* Test all personalities
* Test only critical speeds
* 35ms max
2023-06-23 17:14:41 -07:00
Adeeb Shihadeh
4464383833
thermald: show temp value in offroad alert ( #28664 )
...
* thermald: show temp value in offroad alert
* update
* better for multilang
* update translations
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-06-23 17:12:01 -07: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
Dean Lee
2b800cf2e7
ui: multilang offroad alerts ( #28512 )
...
Co-authored-by: Shane Smiskol <shane@smiskol.com >
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-06-22 15:04:28 +01:00
Kacper Rączy
83d6552a15
lateral_planner: expose solverState, solverCost in debug mode ( #28577 )
...
* Update cereal
* Add xs, ys, solverCost support in lat planner
* Update cereal
* Add support for debug mode. Add solverState
* Read debug mode from env
* Update cereal
2023-06-16 19:51:37 -07:00
Jason Wen
bf0411be00
Enhanced Speed Control: accelerator press state handling ( #170 )
...
Enhanced Speed Control: accelerator press state handling
2023-06-06 21:00:21 -04:00
Dean Lee
48b507c0b4
handle conversion exception for LongitudinalPersonality ( #28426 )
...
* handle type conversion exception
* catch multiple exception
2023-06-06 13:10:12 -07:00
Harald Schäfer
205c900742
Driving Personality setting (also changes follow distance) ( #24742 )
...
* Skeleton
* Adjustable follow parameter
* fix rebase
* long planner
* typo
* Add ui toggle
* Fix icon
* Improve text
* Better toggle position
* Im a UX engineer now
* add param reader
* CHange jerk to have same crash test performance
* Try reading param
* Unused comment
* translate ui text
* std stoi
* Parametrized buttons
* Empty strings are ints
* Move to generic
* Update translations
* Fix translation diffs
* Release notes
* update refs
* tweaks
* Misc fixes
* No param is standard
2023-06-05 22:17:41 -07:00
Harald Schäfer
a446c1fa56
Radard: just get relative speed from model ( #27493 )
...
* refactor radard
* Revert "refactor radard"
This reverts commit 4b3507ff58e753334969b6ba2c2f6b1b35a200cc.
* May work
* No radar for test
* check length
* no accel for now
* First accel
* Cleaner way
* Re-enable radar
* update proc replay
* This might cause oscillation
* Update ref commit
2023-06-02 14:38:28 -07:00
Harald Schäfer
dba437bc8d
Remove INDI controller ( #28366 )
2023-06-01 21:05:49 -07:00