Commit Graph

949 Commits

Author SHA1 Message Date
Greg Hogan 14e12980f5 simplify git remote is comma check (#31284)
* simplify git remote is comma check

* cast to str

* eliminate default and always return string

* add type annotation for cache decorator

* fix up default handling
old-commit-hash: 7affba06d89b366d98f42c4ea3a2f904e6ef3357
2024-02-02 21:23:32 -08:00
Vivek Aithal 80195f1432 LatControlTorque: Add more inputs (#31252)
* add history and state to the ff inputs

* add history

* resolve comments

* remove history, simplify

* don't compute lateral accel, roll comp always
old-commit-hash: 056b330e8bd1ffafdd0bd310782dd140c8f2174d
2024-02-01 04:12:48 -08:00
Justin Newberry 05204fbde3 Create message mocking tools (#31249)
* add mocking tools

* fix map renderer

* use for power draw

* fix those

* whitespace

* rename to services

* fix the rate

* remove
old-commit-hash: 086c509fde806bb03f89765800d9667f4de6a372
2024-01-31 18:47:49 -08:00
Harald Schäfer 215b346dc0 Los Angeles Model (#31037)
* 1c888f5b-c213-4c1c-9eba-c587afd047fc/700

* Move to action

* Updates

* Add steer delay

* Update curvature grep

* clip speed

* No car params for now

* Add delay back

* Update

* fix lint

* fix lint

* update model regf
old-commit-hash: 0067cf3eb1fce18a4d9c548a0c136027c87d43aa
2024-01-22 00:58:06 -08:00
Adeeb Shihadeh f8deefda02 fix test_startup (#31103)
* fix test_startup

* real fix
old-commit-hash: 139b0ae3b696c16056c065dec626c65ec8282622
2024-01-21 16:55:47 -08:00
Harald Schäfer 66dbadb029 Delete lat planner (#31089)
* Initial commit

* Fixup

* typo

* ignore lateral plan

* Update cereal

* Remove lateralPlan

* Fix release build

* Fix release build

* give car params

* Add carParams to include_all_types

* Write car param in powerdraw test

* add demo mode

* Update model regf

* proc replay ref commit

* Try

* Move enum definition

* Update cereal

* typo

* Write car param for modeld test

* Update ref

* Update model ref again

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: e6c97c384671b448f307a7ed91416886f2186d80
2024-01-21 12:09:48 -08:00
Adeeb Shihadeh 972650f0eb remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
old-commit-hash: 7cd9568423a2e78187d16018b70a78f56c02027d
2024-01-19 14:05:03 -08:00
Harald Schäfer f2106e0601 No curv rate for lateral control (#31042)
* No more Curvature rate for lat control

* Update cereal

* Update

* Fix lat control test
old-commit-hash: d36103791c9432155413e1044bcca2ac37bfa852
2024-01-17 16:00:50 -08:00
Adeeb Shihadeh bf6fc7a24f more unit test speedup (#30997)
* that's super slow

* fix startup test

* fix
old-commit-hash: fe6aff01311ca3c5a4a549b0eb5d081fa1740f86
2024-01-13 22:21:43 -08:00
YassineYousfi 01b079c75e longplanner: expose dt (#30941)
old-commit-hash: d6cece756cc1fd9c8e6ca6290bdc7b0fd6d69d5b
2024-01-08 19:46:13 -08:00
Adeeb Shihadeh 6315957cf4 remove common.profiler (#30927)
* remove common.profiler

* cleanup
old-commit-hash: f0ccb84ae3ed890fdf5610573a8b8882f4e29d3e
2024-01-06 16:20:28 -08:00
Adeeb Shihadeh 63b374bd89 Cython KF1D to Python (#30773)
* Cython KF1D to Python

* cleanup

* set x

* less nesting

* fix release

* Revert "fix release"

This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297396cf16e3d041506f156c1626ded50
2023-12-16 23:45:28 -08:00
Dean Lee 1d7d7b89b2 common/params: support nonblocking write (#29808)
* 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

* pass prefix to asywriter

* move to params

* assert(queue.empty())

* add comment

* add todo

* test_power_monitoring: remove patch

* rm laikad.py

* fix import

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3c4c4d1f7f22884f84f0f52ad45ab0412fab1eb5
2023-12-13 20:36:01 -08:00
Adeeb Shihadeh b48abb9511 read params in a thread
old-commit-hash: fe24bdc689f1e3b82e0bec92034a855fd5da78b2
2023-12-13 19:00:22 -08:00
Kacper Rączy 214b38bc69 controlsd: require joystick mode param for the body (#30680)
* Update joystick mode in step

* Stop putting the body in joystick mode by default

* Toggle JoystickDebugMode by default for notCars in process_replay

* Remove subsection about web joystick

* Update param only in non-cars

* Make joystickDebug non-static event, and add it in a loop

* Add comment
old-commit-hash: e62756596b82e4e40d02a30b34d3f3c9960bffe6
2023-12-12 14:14:51 -08:00
Kacper Rączy 9cf15f3c74 locationd: disable locationd temporary error alert on the body (#30608)
* Disable locationd temporary error alert on the body

* Disable locationd/paramsd/planner alerts on body with joystick mode

* joystick_enabled param not joystick_mode
old-commit-hash: 7f07f47302229bcc2694f7c53d1e5ed1236494c8
2023-12-07 10:53:33 -08:00
Adeeb Shihadeh 59eb2988de swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
old-commit-hash: 35f819c8239b8ac3a000087a0f791b91ccea5e5e
2023-12-06 17:27:51 -08:00
Shane Smiskol fd130642b6 joystick: bump max angle (#30602)
old-commit-hash: 09a9ba6de1603fbcda0f883d5298b3f80f8295e1
2023-12-04 21:16:33 -08:00
Adeeb Shihadeh f408eb207a remove unused last_actuators arg from lateral controllers (#30595)
old-commit-hash: ce4bac8218ebcc8d0480ed09e0c1c6467f705a65
2023-12-03 15:54:18 -08:00
Adeeb Shihadeh 3a3a41741e add carParams.passive (#30594)
old-commit-hash: bd0ab957b196694c57b125838622e9d0021ca9c0
2023-12-03 14:09:37 -08:00
Adeeb Shihadeh 1cc4f1a634 new msgs default to invalid (#30587)
* new msgs default to invalid

* fix lm

* set more valid

* update rest

* update refs

* fix logMessage

* more valids

* cleanup

* fix llk test

* pigeond is also valid

* more valids
old-commit-hash: a1d36961cf9fa0c6a9c41fe92d6504de5d36cbaa
2023-12-03 10:50:17 -08:00
Adeeb Shihadeh e7d7501670 longitudinal tests: cleanup old hacks (#30585)
old-commit-hash: 8971e2c177b6bd9ae1006e4dcbfa4246d6d8096a
2023-12-02 10:01:28 -08:00
Adeeb Shihadeh 4394116e5b clear non-release params on startup (#30583)
old-commit-hash: 531e62fc033b06b54f11c702dcbde5982bfe41e6
2023-12-01 23:57:54 -08:00
Adeeb Shihadeh f38648f84b rename carEvents -> onroadEvents (#30577)
* rename carEvents -> onroadEvents

* bump cereal

* bump cereal
old-commit-hash: b97e5b0e03a5e22ef0ae6d6f5c2523592ee25540
2023-12-01 22:48:29 -08:00
Adeeb Shihadeh 3d13288326 controlsd: remove old process replay sentinel (#30581)
old-commit-hash: 8e00ce672d78dcb2445b4bdfa1a9e557bb365233
2023-12-01 22:42:43 -08:00
Justin Newberry b28343e276 Revert "Pytest: run tests in random order" (#30469)
Revert "Pytest: run tests in random order (#30134)"

This reverts commit bdc0624d0320e75b521a8edcf4aebacb6ab96a75.
old-commit-hash: ba3067a560dca8d94ebf2c63b0d5fab7922c56e4
2023-11-15 10:41:11 -08:00
Justin Newberry 586fe682e4 Pytest: run tests in random order (#30134)
* enable random order

* logprint info

* revert that

* better logging

* go to dfu

* try to flash every panda if not up to date

* revert panda debugging
old-commit-hash: a5d99e0ebbfdad405ec86ca4907325926f3e0bfb
2023-11-15 10:16:51 -08:00
Vivek Aithal f8dce94688 params: Remove separate CarParams from each daemon (#30405)
* remove separate previous route carparams from each daemon and add centrally to controlsd

* extract out sigint handler

* make process replay work for torqued

* don't write param if None
old-commit-hash: 2eb487c9a5a905b502433db2e7c5e52a52224f39
2023-11-08 15:25:41 -08:00
Kacper Rączy 7bd8c5425b controlsd: reset axes in joystick mode if message is old (#30409)
Reset joystick if it wasnt received after 0.2 sec
old-commit-hash: c419376bbde634801d0bdf247d564a5b8ecff795
2023-11-07 15:48:13 -08:00
YassineYousfi 91751770a8 (New) Lemon Pie Model 🍋 (#30209)
* 6f6e3749-1b7c-42e8-a33b-03929b7fc476/700

* oops deleted too much

* 1b4308b7-a659-4ebd-b4c6-c81c1c3890f8/700

* 1be192f3-f407-4217-9757-78b9ad92750a/700

* remove some todos

* more cleanup in lat planner

* vego > min_speed

* regen and update process replay refs

* update model replay ref

* update model replay ref commit again

* Revert "update model replay ref commit again"

This reverts commit 922cb796b8dfe264b0cce7a18206bb898b18bcb3.

* update again

* bump cereal
old-commit-hash: 4c2bd853e4410db7f0d80e258291408e94c6c068
2023-11-02 14:01:00 -07:00
YassineYousfi d18f185115 modeld: parsing and publishing in python (#30273)
* WIP try modeld all in python

* fix plan

* add lane lines stds

* fix lane lines prob

* add lead prob

* add meta

* simplify plan parsing

* add hard brake pred

* add confidence

* fix desire state and desire pred

* check this file for now

* rm prints

* rm debug

* add todos

* add plan_t_idxs

* same as cpp

* removed cython

* add wfd width - rm cpp code

* add new files rm old files

* get metadata at compile time

* forgot this file

* now uses more CPU

* not used

* update readme

* lint

* copy this too

* simplify disengage probs

* update model replay ref commit

* update again

* confidence: remove if statemens

* use publish_state.enqueue

* Revert "use publish_state.enqueue"

This reverts commit d8807c8348338a1f773a8de00fd796abb8181404.

* confidence: better shape defs

* use ModelConstants class

* fix confidence

* Parser

* slightly more power too

* no inline ifs :(

* confidence: just use if statements
old-commit-hash: cad17b125595c4654bfd8299b041b94ccb3faf73
2023-10-19 14:23:51 -07:00
Shane Smiskol 962c20f9be events: fixup printing script (#30268)
* fix typing, no need for ordereddict, show priority name again

* just repr
old-commit-hash: ffeb99db54c5ff7c7c5cce82e87e15a766484ec9
2023-10-17 01:52:20 -07:00
Adeeb Shihadeh 4b78e52e34 cleanup old sm pm args (#30241)
* cleanup sm pm

* fix controlsd

* fix
old-commit-hash: b68cfbb332af7ae9182f2806bc7b8dc46e6c8bc0
2023-10-13 23:27:04 -07:00
Justin Newberry eb33a751f6 Revert "run unit tests in a random order (#29799)" (#30116)
This reverts commit 36bcfb117d12049be554ec0f82684827fc99f68a.
old-commit-hash: 2dd13c60ccdd513821cad4570fe140c9749d06f3
2023-09-30 17:23:38 -07:00
Adeeb Shihadeh f7d5a2b216 run unit tests in a random order (#29799)
* run unit tests in a random order by default

* bump panda

* fix startup

* re-add random order plugin

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: b483efe764c001454b0fe917ce0b1023bc08ab88
2023-09-30 15:56:23 -07:00
Adeeb Shihadeh 9c8de3e08b simplify sensor alert (#29824)
* simplify

* update proc replay
old-commit-hash: a4aa801fbe924ace2ebd493eeac7eb0c596f81b5
2023-09-26 16:47:21 -07:00
coffee-cake-isaac cf35d8eded joystick mode: add curvature control (#30010)
* Added curvature controls to joystick mode

* same line

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c43325fa17c270f9b5eef6c01edaf82cb360df29
2023-09-22 21:53:31 -07:00
Shane Smiskol 13381ed446 services: capitalize constant service list (#30005)
* rename

* bump

* Apply suggestions from code review
old-commit-hash: 7f073483bb2586053d6c5508ef3f420947941d90
2023-09-21 18:25:15 -07:00
Vivek Aithal 56f4c138cd 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>
old-commit-hash: 00d1c682b0a6e62652dbfe4686c674539fe82d8f
2023-09-11 16:28:42 -07:00
Lee Jong Mun 89e5ee45ca cleanup remnants of LQR and INDI tuning (#29860)
* not use 'indi' cleanup

* bump cereal

* rm more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 238f9d65dbc17613c2a045b5741483c3f9a7659d
2023-09-10 16:30:13 -07:00
Justin Newberry 759ab03b03 Ruff: disallow non-openpilot imports (#29841)
old-commit-hash: 110cfef1c2a56b333b684cd7ae98b321ae0e72eb
2023-09-08 10:43:02 -07:00
Justin Newberry 37e4b2cba9 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
old-commit-hash: dde225221e8fa0063bb52786232be33b8374dfcd
2023-09-07 16:29:36 -07:00
Kacper Rączy f0c3036ad1 radard: expose radarTrackId for radar leads (#29809)
* Add radarState track identifier for debugging purposes

* update process replay ref
old-commit-hash: 0267e0500c49ccbd00c58a8911e2446c7b8c614f
2023-09-07 11:24:54 -07:00
Vivek Aithal 43ce3d16df 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
old-commit-hash: dbada885acf6418edbf6d781dc79fb85dfa74117
2023-09-06 21:01:01 -07:00
Adeeb Shihadeh 0010c9a986 Revert "params: safe and efficient async writing parameters (#25912)"
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.

old-commit-hash: ec479322d3d8d789290bee68919d14b040481d53
2023-09-06 13:44:20 -07:00
Dean Lee 08e70aecb2 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>
old-commit-hash: 0d797f4e8b2552192669d0329c14849f0a970066
2023-09-06 08:50:28 -07:00
Justin Newberry 3b91610c0b Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
Adeeb Shihadeh 952ca664fa 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>
old-commit-hash: 9719b227611c880c76a60df223ef6c2f14f1a6ab
2023-08-31 15:00:13 -07:00
Justin Newberry 42966979db Tests: parameterize following distance test (#29734)
* split

* parameterize it
old-commit-hash: 4aff2621d340dbb188c845746cb1ffd1381b5306
2023-08-31 13:41:02 -07:00
Kacper Rączy b580f19448 scons: fix multithreaded builds (#29716)
* common_python export

* Single scons call

* transformations_python
old-commit-hash: d138a358ebd0e67302a409a346777fc15aeb5b66
2023-08-31 00:01:03 +02:00