Commit Graph

638 Commits

Author SHA1 Message Date
Eric Brown
1f6a7d4796 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
old-commit-hash: 111b6438c6
2023-08-17 16:03:35 -07:00
Kacper Rączy
eb87a31bc5 Unpin numpy (#29421)
* Unpin numpy

* Update lock file

* leave acados comment

* Fix warnings

* Fix more paramsd warnings
old-commit-hash: 62a88e504d
2023-08-17 15:36:14 -07:00
Justin Newberry
d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e65924
2023-08-11 15:33:49 -07:00
Justin Newberry
715f028a0e 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
old-commit-hash: 8793cbff40
2023-08-10 18:58:22 -07:00
eFini
8ccdd58174 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>
old-commit-hash: 8ca7753c95
2023-08-09 15:17:19 -07:00
Justin Newberry
3ee0786de3 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
old-commit-hash: 7fdd9fc37c
2023-08-09 13:26:54 -07:00
Justin Newberry
7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Justin Newberry
ff96892511 Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b
2023-08-08 14:24:04 -07:00
Justin Newberry
99006365a3 CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
old-commit-hash: cb31a53d8a
2023-08-08 13:41:30 -07:00
Kacper Rączy
edc31db6df 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
old-commit-hash: c640429406
2023-08-01 16:18:46 -07:00
Lee Jong Mun
de51cfd9e5 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>
old-commit-hash: a61df2bdde
2023-07-31 22:56:47 -07:00
Adeeb Shihadeh
8bcaf1f942 increase min duration of steer saturated alert (#29191)
* increase min duration of steer saturated alert

* update refs
old-commit-hash: 3476205569
2023-07-31 12:48:11 -07:00
Maxime Desroches
06125f1309 Test scons multithreaded random build (#29082)
* random build

* name

* 2 pass

* clean after

* fail on this

* fix deps

* format

* var

* try without lfs
old-commit-hash: 97eec45d42
2023-07-21 21:57:27 -07:00
Harald Schäfer
8a48732784 radard: no clustering (#29010)
* First commit

* cleanup

* Update ref

* Doesnt deserve two files

* cleanup radard
old-commit-hash: ca699e3989
2023-07-19 20:31:40 -07:00
eFini
05181ed6b1 long_mpc: clean up get_T_FOLLOW() usage (#29033)
old-commit-hash: 7a5dbe6132
2023-07-19 02:07:01 -07:00
Shane Smiskol
f9c6c9e8c3 Revert "experimental mode: gate navigate on openpilot (#28883)" (#29005)
This reverts commit 929880496515e3f995634e561145802bf15a60ea.
old-commit-hash: b5b431c12d
2023-07-17 19:56:38 -07:00
Eric Brown
3ebff5c415 Events: debug script (#28898)
* Move to separate branch

* Fix mypy

* Better printout

* Fix spacing

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 22c413af6d
2023-07-16 16:59:27 -07:00
Shane Smiskol
296de39f48 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
old-commit-hash: f973d605b2
2023-07-14 05:26:59 -07:00
Adeeb Shihadeh
27b53b914b reduce startup alert duration (#28749)
* reduce startup alert duration

* update refs
old-commit-hash: 336b5f7324
2023-06-29 17:57:25 -07:00
Shane Smiskol
82eb958e41 desire helper: fix text flicker when changing direction (#28720)
* draft

* or this works

* or simply this
old-commit-hash: e8007950ae
2023-06-27 13:42:32 -07:00
Harald Schäfer
075dc34240 Test and fix cruise speed all personalities (#28658)
* Fix cruise speed in non-standard mode

* Test all personalities

* Test only critical speeds

* 35ms max
old-commit-hash: ae3681f2bb
2023-06-23 17:14:41 -07:00
Adeeb Shihadeh
826706dd30 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>
old-commit-hash: 4464383833
2023-06-23 17:12:01 -07:00
Dean Lee
1b3ba1c7ee ui: multilang offroad alerts (#28512)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 2b800cf2e7
2023-06-22 15:04:28 +01:00
Kacper Rączy
9917924ee5 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
old-commit-hash: 83d6552a15
2023-06-16 19:51:37 -07:00
Dean Lee
0f8ce1d31f handle conversion exception for LongitudinalPersonality (#28426)
* handle type conversion exception

* catch multiple exception
old-commit-hash: 48b507c0b4
2023-06-06 13:10:12 -07:00
Harald Schäfer
36aa81cdc3 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
old-commit-hash: 205c900742
2023-06-05 22:17:41 -07:00
Harald Schäfer
4477f8a3a3 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
old-commit-hash: a446c1fa56
2023-06-02 14:38:28 -07:00
Harald Schäfer
bb8eeb7873 Remove INDI controller (#28366)
old-commit-hash: dba437bc8d
2023-06-01 21:05:49 -07:00
Harald Schäfer
ef130058c6 Plannerd: higher upper bound cost for lateral planner (#28352)
20k not good upper bound for 10s
old-commit-hash: cbd3e5b946
2023-05-31 16:33:07 -07:00
Shane Smiskol
8bb530cec5 Deprecate brakeUnavailable event (#28351)
* bump cereal

* deprecate

* Update selfdrive/controls/lib/events.py
old-commit-hash: fc2bd16e72
2023-05-31 16:29:11 -07:00
Shane Smiskol
dc829240cd offroad alerts: change email reference to support page (#28311)
old-commit-hash: 79872db741
2023-05-26 11:07:22 -07:00
Kacper Rączy
40094396b4 lateral_planner: init missing variables (#28222)
Init missing variables in LateralPlanner constructor
old-commit-hash: 7b68a13048
2023-05-17 14:04:17 -07:00
Adeeb Shihadeh
b376a2dd63 calibrationd: add offroad alert when remount detected (#28073)
* calibrationd: add offroad alert for recalibration

* Update common/params.cc
old-commit-hash: c192c92a4e
2023-05-15 13:10:36 -07:00
Harald Schäfer
5ddceb553d Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 598343aad1
2023-05-15 09:29:57 -07:00
Shane Smiskol
298e7466f5 Ford: hybrids are unsupported (#28171)
* hybrid fords are dashcammed

* something like this?

* just do an alert

* good comment

* space

* bb

bb

* top

* Update selfdrive/car/ford/interface.py

* add a noEntry

* remove from release notes

* sad :(

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 344064d6bd
2023-05-11 23:35:07 -07:00
Vivek Aithal
4be83d0d57 Lateral Planner: Calibrate model speed with vEgo (#28049)
* calibrate speed in the lateral planner

* make speed err helper fn

* check if trans has values

* clip the vel_err

* update refs
old-commit-hash: a599890fed
2023-05-09 14:26:58 -07:00
Shane Smiskol
da12bfb021 Ford: add alert for steering wheel angle not ready (#28140)
* add event for steering angle calibrating

* how about this

how about this

* rename

* more openpilot-y

* add comment to code

* move to top

* better wording

* more general

* fix

* ?

* above

* bump cereal to master

* add more comms
old-commit-hash: fb29d0f3bf
2023-05-08 22:03:30 -07:00
Harald Schäfer
73e00a05ac Calibration remount detector: soft disable (#27993)
* Calibration remount detector: soft disable

* Update test_calibrationd.py
old-commit-hash: a979a54cf9
2023-04-22 00:27:20 +00:00
Vivek Aithal
b6909a65e7 Bolt EUV: Non-linear torque function (#27696)
* add erf based ff

* silly bug; diff of nonlinear != nonlinear of diff

* add sigmoid based ff, ensure slope at 0 > 1

* reduce steer down limit and increase driver allowance

* rebase panda

* atry without friction, and with tanh nonlinear

* finalize the nonlinear function

* do not disable friction compensation in the ff

* bump panda

* bump panda

* update refs

* update refs

* resolve comments

* Add type hints

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 15b880c0ea
2023-03-29 15:10:39 -07:00
Jason Young
6433154d5d remove accFaultedTemp, add steerTimeLimit (#27720)
* remove accFaultedTemp

* retry CI

* bump cereal

* grab the new steerTimeLimit Event

* bump cereal to updated master
old-commit-hash: 267974e002
2023-03-28 16:04:14 -07:00
Shane Smiskol
827c5678f0 uiPlan: add planned acceleration field (#27484)
* add accel

* bump cereal

* Update ref_commit

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 3ab8645d3a
2023-03-02 20:11:24 -08:00
Adeeb Shihadeh
70cfe29351 better main off alert (#27442)
old-commit-hash: 7a3b3e8b56
2023-02-23 15:01:10 -08:00
Adeeb Shihadeh
956918eb1d GM: revert custom Bolt torque tune (#27403)
* Revert "GM: cleanup torque feedforward function (#27347)"

This reverts commit cdd8f003e3571d4b33fc71c4bc23744cea02140c.

* Revert "Chevrolet Bolt: Non-linear torque tune (#27344)"

This reverts commit b6737ca5903ecaac3d6322b92112ccb67116b149.

* update refs
old-commit-hash: 2008332bd4
2023-02-21 15:27:48 -08:00
Adeeb Shihadeh
0a1ee30b15 add 'remount device' to permanent calibration invalid alert (#27407)
old-commit-hash: ea419c5764
2023-02-20 16:29:17 -08:00
Harald Schäfer
0ac73f2a81 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
old-commit-hash: eb8bdc0026
2023-02-17 19:58:30 -08:00
Harald Schäfer
73561f01e0 Expand lateral MPC to 10s (#27343)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* add new interp

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* Update sconscripts

* fix test

* fix test

* fix test

* Revert "Update sconscripts"

This reverts commit 6e23c69dcebd5ed003e37e01921f6af7c31de0db.

* Dont import drive helpers

* better compile deps

* fix compile

* comment

* update replay

* Update plannerd time
old-commit-hash: 04fe6c4ec7
2023-02-17 15:28:26 -08:00
Vivek Aithal
5edcf1380e Chevrolet Bolt: Non-linear torque tune (#27344)
* add non linear tune

* update refs

* rerun tests
old-commit-hash: e49748d571
2023-02-14 16:20:28 -08:00
Adeeb Shihadeh
37a1a0bc2c better min enable speed alert (#27317)
old-commit-hash: 5af5f02ba8
2023-02-14 13:29:23 -08:00
Shane Smiskol
47197d7009 events: reword ESP off alert (#27304)
* Rename event

* rename to Control

* rename to disabled
old-commit-hash: 4f2134468f
2023-02-10 23:46:48 -08:00
Adeeb Shihadeh
bc61a6b1fd controlsd: higher default set speed in experimental mode (#27279)
* controlsd: higher default set speed in experimental mode

* update tests

* update tests
old-commit-hash: 5ab2d35f7b
2023-02-09 19:27:51 -08:00