Commit Graph

860 Commits

Author SHA1 Message Date
Adeeb Shihadeh 27b53b914b reduce startup alert duration (#28749)
* reduce startup alert duration

* update refs
old-commit-hash: 336b5f732490b0f9ad5b3276a22c1629934e25c0
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: e8007950ae710a95e89075a9d456e2e000fa5f22
2023-06-27 13:42:32 -07:00
Adeeb Shihadeh 59064a4f6a sim: fix paramsd error (#28685)
old-commit-hash: 4662a0de82e4a69e8a61d0c91dbe7c20f73ca216
2023-06-24 20:46:03 -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: ae3681f2bbe013ae18ddd40b5c5b31eb00bdfd1d
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: 44643838333fbc8d60bbaacc10a2d24378b6af70
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: 2b800cf2e79048bbccb821135d1cf03ec7a580b0
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: 83d6552a15d188c9368a66aae9c17e3599cc50cf
2023-06-16 19:51:37 -07:00
Adeeb Shihadeh ee363d69e3 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
old-commit-hash: 111b4eee30d3a8f79d082b78e9158cbe262f1a14
2023-06-16 13:22:30 -07:00
Kacper Rączy 8aa845a1c8 modeld: use any available stream as main, if there's only one (#28514)
* Use whatever stream is available as main, if there's only one

* Move logw somewhere else

* Add wideRoadCameraState to ignore_alive if its not available
old-commit-hash: 4eb3d541492f7695227f4d8a83127cbd0d32ff79
2023-06-12 20:13:56 -07:00
Dean Lee eddc84d104 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
old-commit-hash: 4ae0378f639826df5cc1518574842b61b118f371
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh d2ec950790 test onroad: explicit memory leak check (#28502)
old-commit-hash: 2f117e88b775a0b53a3ae99ae943caaa66f952f2
2023-06-11 14:43:25 -07:00
Adeeb Shihadeh 678825e10f cloudlog process not running (#28472)
* cloudlog process not running

* error
old-commit-hash: a412cd07b105807a3fcd5fdc8b9caae0e227cf06
2023-06-09 15:36:15 -07:00
Dean Lee 0f8ce1d31f handle conversion exception for LongitudinalPersonality (#28426)
* handle type conversion exception

* catch multiple exception
old-commit-hash: 48b507c0b4508171c1439e05344e6cb0f8672d12
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: 205c900742a18ca4662f4535a1a4008624c05995
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: a446c1fa5665086d690a017f453cad3a4c38f00a
2023-06-02 14:38:28 -07:00
Harald Schäfer bb8eeb7873 Remove INDI controller (#28366)
old-commit-hash: dba437bc8d9219287e90bc3903cd5eed72b3218d
2023-06-01 21:05:49 -07:00
Adeeb Shihadeh 7e64d60f4b test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid

* not for all ci
old-commit-hash: cd57b340c1974c52146015b0211bd6ec50388c7e
2023-06-01 10:26:08 -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: cbd3e5b94685220f78297786e6a121e1165946b1
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: fc2bd16e72a89feb270f99468cfd8d14ccbab4fd
2023-05-31 16:29:11 -07:00
Shane Smiskol 0189b3fbe6 controls: write recalibrating offroad alert once (#28312)
* only write once

* rm read

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 715f44ff455e1d5cf03ed6e0b0a2dae526229f84
2023-05-26 13:07:35 -07:00
Shane Smiskol dc829240cd offroad alerts: change email reference to support page (#28311)
old-commit-hash: 79872db74137a4d3ae8c4b85609d15fa9556bfd6
2023-05-26 11:07:22 -07:00
Adeeb Shihadeh b820990639 controlsd: check longitudinalPlan avg freq (#28200)
old-commit-hash: dee7ced00ee7e8cdec883989958f43d94c01e4bb
2023-05-24 20:46:44 -07:00
Kacper Rączy a48b67f720 process_replay: universal replay mechanism using cereal fake sockets (#28115)
* replay_process_with_fake_sockets implementation

* add missing polled_pubs to configs

* drained_pubs field

* updated cereal

* Remove python/native variations of process replay. Replace with universal one using cereal fake sockets

* Replace old py FakeSocket with DummySocket

* Invalidate and deregister fake sockets after replay is done

* Remove unused import

* Set up new prefix for each replay

* Fixes for radard

* Refactor ReplayContext and ProcessConfig

* Minor fixes

* Reimplement controlsd fingerprinting callback

* time.sleep for sockets to safely reconnect

* Fix fingerprinting for controlsd

* Fixes for regen to work

* Fix replay loop to respect submaster frames

* Fix profiler to use new ProcessConfig fields

* Remove tqdm

* Refactor tests to use new ProcessConfig

* Add FrequencyBasedRcvCallback

* Make tolerance None by default

* Update cereal

* Add get_process_config utility func

* Update cereal. Simplify sync procedure

* Chain context managers

* New sub-socket reconnection procedure

* Fix linter issues

* Revert chaining of context managers

* Init controlsState only when replaying controlsd. Update cereal

* Update cereal

* Update process_replay to use new cereal API

* Update cereal

* Update cereal

* Update cereal

* Simplify radard recv callback

* Update release/files_common
old-commit-hash: e6ac6320ace377657446a1a16ccccd75091f5453
2023-05-23 17:24:16 -07:00
Kacper Rączy 40094396b4 lateral_planner: init missing variables (#28222)
Init missing variables in LateralPlanner constructor
old-commit-hash: 7b68a13048df675c0d3b5686d478c6c3f469d631
2023-05-17 14:04:17 -07:00
Adeeb Shihadeh b9e0c2936b controlsd: check for self lagging in radar alert
old-commit-hash: e889e09513f5c241dcc53c936966b22e3fe7d9e7
2023-05-15 13:57:11 -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: c192c92a4e838b9d5b8b80bc86fb35a0f236f2b2
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: 598343aad18a7896c6b65ff6e19f9e27ba19cc10
2023-05-15 09:29:57 -07:00
Kacper Rączy 2d107da5cf controlsd: disable controlsdLagging event during process replay (#28177)
Disable controlsdLagging event during process replay
old-commit-hash: e08952acc8613d697e7ef3198dc186688629427b
2023-05-12 11:33:48 -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: 344064d6bd45b6d0f54e1eedfc73b87a856efe3e
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: a599890feda4fd57bed1bfff947d7092198fd0b7
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: fb29d0f3bfe69c83f73e3af09235bd4c8287aaac
2023-05-08 22:03:30 -07:00
Adeeb Shihadeh 7e73e412ee gate no gps alert on valid localizer inputs (#28135)
old-commit-hash: 154a42dcbd8b1b15c8ace508e40283a704a2f682
2023-05-08 15:09:00 -07:00
Adeeb Shihadeh 4e87efb78c controlsd: remove procs from ignore list (#26848)
* trim list

* check for file
old-commit-hash: c4501e4bc1cb7a242207e910c0b61af20c3c677d
2023-05-07 15:43:45 -07:00
Shane Smiskol 6f0efe4ea0 Lane Departure Warning: fix desire index bug (#28119)
don't subtract 1
old-commit-hash: 4e951e4524e2035d8382d08ab6028c4bc326ab6a
2023-05-06 03:03:28 -07:00
Harald Schäfer 73e00a05ac Calibration remount detector: soft disable (#27993)
* Calibration remount detector: soft disable

* Update test_calibrationd.py
old-commit-hash: a979a54cf9ce02610cc0999a52a9fbed2f7d4cbb
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: 15b880c0ea6fb306e916a2ec015b5f03cec22b20
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: 267974e00200324805c76ef2e8ae279efa7757a1
2023-03-28 16:04:14 -07:00
Shane Smiskol cdcf06e9e2 boardd: ability to switch between ELM safety params (#27656)
* indecisive

* rename to generic FW query

* remove code and update comment

* we need this to start off, unless we set multiplexing immediately

* draft

* draft 2

* try that

* can't do this either, boardd might read Enabled after removing, but before setting new Request param

* this should work

* use one less param

* fix params

* match behavior (set all pandas to safety param of 1, disabling multiplexing for fingerprinting

* clean up (some tests may temp break)

* fix param name and sort

* time it

* yes it does matter

* add to hyundai's bus 5 query

* remove hyundai for now

* this should work

* clean up

* clean up

* flip argument around, clean up

* fix test_startup

* some clean up

* rm line

* comment makes more sense

* required typing

* clean up common type

* comments

* Update selfdrive/car/car_helpers.py

* line

* whoops, need to set before vin!

* fix debug

* annoying

* more debugging

* bug fix (needs both keys always)

* debuGG

debuGG

* Revert "debuGG"

This reverts commit 55b2f429324c0b92d5cfb2cabf8b20db1e166248.

* Revert "more debugging"

This reverts commit 02934c3403ad5270f03093508b704c151d1ccb2a.

* Revert "annoying"

This reverts commit 8b4e5e09989f9a0217e3ec1c0ba68735929b7366.

* clean that up

* bumpback

* bumpback

* every second write param

* flip

* stuff

* move up?

* fix timing out in CI

* rm
old-commit-hash: 42449b482d46565242341ca2d7e3a7255572f6a2
2023-03-23 00:14:31 -07:00
Adeeb Shihadeh e2acf6ab14 plannerd: add frameId to uiPlan (#27573)
* plannerd: add frameId to uiPlan

* update refs
old-commit-hash: 17b71b477e596529d36dc7f95e3fa42697adfadc
2023-03-13 15:30:38 -07:00
Shane Smiskol 71fed2384d Remove dashcam override param (#27509)
* remove dashcam override

* sort

* remove ford from segments
old-commit-hash: e729f5b763a98f4156c1761f1511135cc32121d3
2023-03-06 15:36:39 -08: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: 3ab8645d3af948a35ac410ad7f841ab670091e32
2023-03-02 20:11:24 -08:00
Adeeb Shihadeh 70cfe29351 better main off alert (#27442)
old-commit-hash: 7a3b3e8b567ea476088e6f3d7344c7220e35e398
2023-02-23 15:01:10 -08:00
Adeeb Shihadeh 0691c6b6de improved fan malfunction detection (#27405)
old-commit-hash: 9d64fb2d1abeb35d0b716b9e54169d473222ab21
2023-02-22 14:11:29 -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: 2008332bd42528ae56d937a2ec0e9a1dd244b2ea
2023-02-21 15:27:48 -08:00
Adeeb Shihadeh 0a1ee30b15 add 'remount device' to permanent calibration invalid alert (#27407)
old-commit-hash: ea419c5764739555673d5545f16cff7c05f9e6c0
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: eb8bdc0026b49de2fc5107746baeadbd42f58550
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: 04fe6c4ec72dfcf89456a484d03f85502c237701
2023-02-17 15:28:26 -08:00
Shane Smiskol cc456ad691 Honda Bosch: gather available ECUs from camera (#27180)
* add flag

* actually use in fw_versions.py

* simpler

* not here

* Comment

* better name

* add param and block

* keys

keys

* block

* with a value

with a value

* add query for bosch PT bus

* different name

* fix

* .

* fix test

fix test

* add cloulogs

* mark as logging
old-commit-hash: c4b84783a003479bc105e2f7a93d5e71c2e1c38f
2023-02-14 17:55:41 -08:00
Vivek Aithal 5edcf1380e Chevrolet Bolt: Non-linear torque tune (#27344)
* add non linear tune

* update refs

* rerun tests
old-commit-hash: e49748d571d06a65a4361dde1f2f63c7294da13a
2023-02-14 16:20:28 -08:00
Adeeb Shihadeh 37a1a0bc2c better min enable speed alert (#27317)
old-commit-hash: 5af5f02ba82a0094c7f721ad8dd6138f503455d8
2023-02-14 13:29:23 -08:00