Commit Graph

637 Commits

Author SHA1 Message Date
Harald Schäfer
47d5601d8a long control: new API (#32706)
* Simplify long control

* Seperate

* Rename

* Try new api for toyota

* rm v_pid everywhere

* No speed in reset

* 0 is better default

* unassigned variable

* Update other cars

* Update gm

* SIMPLIFY

* simplify more

* fix API boundry

* Fix stopping bug

* Small fixes

* Update ref
old-commit-hash: bc303df6a0a4a9d52a2e92e5976b6c7aa5138b95
2024-06-14 00:08:58 -07:00
Shane Smiskol
272216b2a8 remove uiPlan (#32721)
* remove uiPlan from ui

* remove publishing

* Update log.capnp

* Update services.py

* no uiPlan here

* Update ref_commit
old-commit-hash: 684209e077d77da0c3a12e8fda528649c5fe9edc
2024-06-11 21:31:10 -07:00
Harald Schäfer
a5aa89fe69 Update cereal README.md
old-commit-hash: 05669df1027fbb296884772b15876aff1191f61e
2024-06-11 16:17:25 -07:00
Harald Schäfer
d9fb61da16 Long control: Double delay is super complicated (#32694)
* Double delay is super complicated

* No more upper bound

* DEAD

* Update ref
old-commit-hash: 965415135ac7db4c67ea248ac52535eac537f3bf
2024-06-10 22:29:17 -07:00
Harald Schäfer
05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

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

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a452e7c045d9a207f3680d846406ef789
2024-06-09 17:44:34 -07:00
Adeeb Shihadeh
97bfed714c card: remove old canRcvtimeout field (#32650)
* card: remove old canRcvtimeout field

* deprecate
old-commit-hash: b42b156fcd8d98adee9e6b5384558cfabd4f2165
2024-06-07 17:03:17 -07:00
Harald Schäfer
d7dae4db72 More cereal cleanups (#32644)
* rm generate_javascript.sh

* Unused
old-commit-hash: e6caaf40fb16e7c27221e1353d0e903d5c805918
2024-06-06 23:35:13 -07:00
Harald Schäfer
9fcd3fe73b Msgq cleanups (#32643)
* Dead cereal stuff

* Dead code

* also dead

* More cleanup
old-commit-hash: 83209e0860f61aa383fbe1cc569ace996edcd13d
2024-06-06 15:03:19 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7e39a56235f590227e7cb361cd8b79d
2024-06-06 14:31:56 -07:00
commaci-public
cb04f7502a [bot] Bump submodules (#32602)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 544b554c6997e2e02e99ab5275fc49e02ad0a5bc
2024-06-03 13:24:03 -07:00
ZwX1616
bd0cabd88d Update process replay refs with updated submaster alive behavior (#32508)
* add cereal

* update cereal

* cereal master

* lol really

* ref com

* ref
old-commit-hash: 749455c91dc27ed876d1b194c1d84bd481eefb00
2024-05-22 15:47:11 -07:00
Shane Smiskol
ee03d13529 card: process that abstracts car interface and CAN (#32380)
* format card

* standalone process

* no class member CS, there's no point

also can be confusing; what else could be using this?

* rename CoS

* Update selfdrive/controls/controlsd.py

* never works first time :D

* canRcvTimeout is bool

* hack

* add cpu

* see what testing closet comes up with

* first

* some clean up

* support passable CI, fix test models

* fix startup alert

* process replay changes

* test_fuzzy

* gate carOutput valid on carControl valid

* we should publish after we update carOutput

* controlsd was using actuatorsOutput from 2 frames ago for torque, not the most up to date

* check all checks for carControl in case controlsd dies

* log more timestamps

* more generic latency logger; needs some clean up

latency_logger.py was difficult to understand and modify

* card polls on can and carControl to get latest carControl possible

* temp try to send earlier

* add log

* remove latencylogger

* no mpld3!

* old loop

* detect first event

* normal send

* revert "card polls on can and carControl to get latest carControl possible"

how it was is best

* sheesh! update should be first

* first timestamp

* temp comment ( timestamp is slow :( )

* more final ordering, and make polling on/off test repeatable

* Received can

* new plot timestamps

* clean up

* no poll

* add controllers (draft)

* Revert "add controllers (draft)"

This reverts commit e2c3f01b2fadcff74347bac90c8a5cc1ef4e27b3.

* fix that

* conventions

* just use CS

* consider controlsd state machine in card: not fully done

* hmm it's just becoming controlsd

* rm debugging

* Revert "hmm it's just becoming controlsd"

This reverts commit 534a357ee95bec4ed070667186af55d59421bbc7.

* Revert "just use CS"

This reverts commit 9fa7406f30c86200f20457f7b9ff95e731201bf9.

* add vCruise

* migrate car state

* Revert "migrate car state"

This reverts commit 4ae86ca163c6920070f410f608f7644ab632850b.

* Revert "add vCruise"

This reverts commit af247a8da41c3626ada4231b98042da1a1ae4633.

* simple state machine in card (doesn't work as is)

* Revert "simple state machine in card (doesn't work as is)"

This reverts commit b4af8a9b0a2e17fdfc89d344c64678ef51305c24.

* poll carState without conflate

* bump

* remove state transition

* fix

* update refs

* ignore cumLagMs and don't ignore valid

* fix controls mismatch; controlsd used to set alt exp

* controlsd_config_callback not needed for card

* revert ref temp

* update refs

* no poll

* not builder!

* test fix

* need to migrate initialized

* CC will be a reader

* more as_reader!

* fix None

* init after publish like before - no real difference

* controlsd clean up

* remove redundant check and check passive for init

* stash

* flip

* migrate missing carOutput for controlsd

* Update ref_commit

* bump cereal

* comment

* no class params

* no class

* Revert "no class"

This reverts commit 5499b83c2dcb5462070626f8523e3aec6f4c209d.

* add todo

* regen and update refs

* fix

* update refs

* and fix that

* should be controlsstate

* remove controlsState migration

CoS.initialized isn't needed yet

* fix

* flip!

* bump

* fix that

* update refs

* fix

* if canValid goes false, controlsd would still send

* bump

* rm diff

* need to be very careful with initializing

* update refs
old-commit-hash: 71f5c441fe32184d94a9f26565a36c661e2ccf28
2024-05-21 01:18:10 -07:00
Dean Lee
46183bc11b encoderd: publish i-frame as thumbnail (#32202)
* pusblish i-frame as thumbnail

* generic

* disable for now

* fix

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b742776bffb3e49649c17b54197a993e9d547403
2024-05-18 17:46:34 -07:00
commaci-public
44ced20226 [bot] Bump submodules (#32410)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: acd84e0f9ceba9315f08fa8d6221130b8a7f03f8
2024-05-13 08:39:34 -07:00
Adeeb Shihadeh
da105b759c bump cereal (#32403)
old-commit-hash: 07aad1799391e080ef9592441cae69a000ad60a4
2024-05-11 13:43:16 -07:00
commaci-public
ca9d039f14 [bot] Bump submodules (#32344)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 7b5923a5eb9d45d6fbdd458b20d4a0e9c57c160b
2024-05-03 14:34:37 -07:00
Adeeb Shihadeh
a6faeb03ce adjust gps alert
old-commit-hash: 6ef95f7a91b33f7f554c0d41353c7f77fb2eb6b4
2024-05-01 11:35:20 -07:00
Adeeb Shihadeh
9e593c5eda bump submodules - ubuntu 24.04 (#32312)
old-commit-hash: 3e1617deaacc3a03e5b79dc9b432dddb877edc61
2024-04-28 14:14:55 -07:00
YassineYousfi
75a69e12b3 disable navigate on openpilot (#32106)
* 2eedcd90-b7db-46cb-86be-740f48ded7ab/700

* noop ciao

* here too

* mapsd too

* update translations

* disable mapsd test from test onroad

* disable mapRenderState test from timings

* lint

* fix exp mode toggle panel

* update tr

* french done

* dont build mapd

* only no nav

* just comment

* deprecate nav fields

* rm not comment

* dont deprecate too much

* remove from services

* merge cereal
old-commit-hash: 754dd45ffa82bf3d7f2d3413c4132eb65551ebd5
2024-04-09 10:40:38 -07:00
Adeeb Shihadeh
819d8a4d9a [bot] Bump submodules (#32069)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: c2f593f69ae558eec5d46056468e9e1a99c062d2
2024-04-01 10:03:04 -07:00
Adeeb Shihadeh
46031df463 remove rest of GMLAN (#31960)
old-commit-hash: db9aec2a3b79ae24c6cc7c2b657ba4bf4a8cb620
2024-03-21 14:00:45 -07:00
Shane Smiskol
f3414250a3 Move personality to controlsState (#31855)
* start at param

* start by sending personality

* change to personality

* POC: button changes personality

* what's wrong with this?

* fix

* not really possible but fuzzy test catches this

* there's always a typo

* dang, we're dropping messages

* clean up

* no comment

* bump

* rename

* not all cars yet

* works but at what cost

* clean up

* inside settings

* write param so we save the distance button changes

* setChecked activates buttonToggled and already writes param!

* don't need this, we update from longitudinalPlan on changes

* some clean up

* more

* ui

* allow some time for ui to receive and write param

* plannerd: only track changes in case no ui

* Revert "plannerd: only track changes in case no ui"

This reverts commit 2b081aa6ceb92c67a621b74592b2292756d29871.

* write in plannerd as well, I assume this is atomic?

* don't write when setting checked (only user clicks)

* better nane

* more

* Update selfdrive/controls/lib/longitudinal_planner.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* doesn't write param now

* ParamWatcher is nice

* no debug

* Update translations

* fix

* odd drain sock proc replay behavior

* vanish

* Revert "odd drain sock proc replay behavior"

This reverts commit 29b70b39413e1852bb512155af6b6a94a5bd9454.

* add GM

* only if OP long

* move personality to controlsState, since eventually it won't be exclusive to long planner

more

bump

* diff without translations

* fix

* put nonblocking

* CS should start at up to date personality always (no ui flicker)

* update toggle on cereal message change

* fix

* fix that

* ubmp

* mypy doesn't know this is an int :(

* update translations

* fix the tests

* revert ui

* not here

* migrate controlsState

* Revert "migrate controlsState" - i see no reason we need to test with
any specific personality

This reverts commit 6063508f2df1a5623f113cda34dcd59a1f4b2ac9.

* Update ref_commit

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 29e55f99a54d95215aa79ecf94a22363f82913a6
2024-03-13 00:57:57 -07:00
Adeeb Shihadeh
2f491dce07 thermald: add deviceType to logs (#31819)
* thermald: add deviceType to logs

* fix
old-commit-hash: f6665f8488b9d407a710dda3dce7344acebf5e67
2024-03-10 14:29:50 -07:00
Adeeb Shihadeh
050662fdd0 cgpsd: use a real source
old-commit-hash: 4d1b1001526970012364b843cbbb997bfd983842
2024-03-09 23:33:24 -08:00
Adeeb Shihadeh
6bf5c62155 add hasFix field to gpsLocation (#31778)
* add hasFix field to gpsLocation

* migration

* update refs for ubloxd

* cereal master
old-commit-hash: a0389d7120624b35fb169d680889ae56e1adb10a
2024-03-08 11:32:38 -08:00
Justin Newberry
412d143ff3 bump cereal
old-commit-hash: 82acb87fae3e2972eb9d3942767c2dcc84c601a7
2024-03-04 10:11:13 -08:00
Justin Newberry
891b9a1ab4 card: prepare for separate process (#31660)
* Card

* update ref

* bump cpu

* sub to caroutput

* update ref
old-commit-hash: 8ec0d87de06c265dcb0526b9a3bce8a397248dc9
2024-03-04 09:53:42 -08:00
Adeeb Shihadeh
9713edb8d9 bump cereal
old-commit-hash: e4e9243f8d25711627bb4490ebb5255770e5f92c
2024-02-28 20:23:40 -08:00
Harald Schäfer
add26a5d1f GpsLocation: Rename accuracy to horizontal accuracy (#31629)
* Rename accuracy to horizontal accuracy

* typo in cereal
old-commit-hash: 85eb221e4c9344a5c135789691e8e0500aa51482
2024-02-28 19:55:57 -08:00
Justin Newberry
73e5810eae scons: move cereal library exports to cereal submodule (#31617)
* cleanup-cereal

* bump
old-commit-hash: f293f7bad4d6675b70a97d303f1321fb6cfc9182
2024-02-27 13:17:56 -08:00
Adeeb Shihadeh
05ff64ba7a [bot] Bump submodules (#31594)
* bump submodules

* bump opendbc

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 5c0bbc7dda74f4e354b5e670185abf29d2d49488
2024-02-26 11:20:42 -08:00
Adeeb Shihadeh
5e81beb77e remove deviceState.ambientTempC (#31533)
old-commit-hash: 0b4d08fab8e35a264bc7383e878538f8083c33e5
2024-02-21 13:57:49 -08:00
Adeeb Shihadeh
df6154b591 log git commit date (#31490)
* log git commit date

* unix ts

* fix

* bump cereal

* cleanup
old-commit-hash: 0723c2bc5f22a079685c1643fa2d72f70eeff087
2024-02-16 13:19:10 -08:00
Adeeb Shihadeh
3632dad8bb bump cereal (#31469)
* bump cereal

* bump cereal
old-commit-hash: 2f15c878d0365f4a48dc36344e5fa313bd22cb5b
2024-02-14 15:01:02 -08:00
Adeeb Shihadeh
9fab120968 timed: publish clocks periodically (#31434)
* timed: publish clocks periodically

* simplify

* Apply suggestions from code review
old-commit-hash: c5739651a241788f9c84ebf705325de57aabfc39
2024-02-13 14:22:46 -08:00
Adeeb Shihadeh
b302e61dcc Revert "radard: enable avg input service frequency checks (#31404)"
This reverts commit d979307c058c4ae67a0731f46b7a1a721f890f89.

old-commit-hash: 7f7f1fd21b293901fa003dce8656db89e15726aa
2024-02-13 13:23:27 -08:00
Adeeb Shihadeh
63d5b15a3a radard: enable avg input service frequency checks (#31404)
* radard: enable avg frequency checks

* freq

* update cpu

* fix diff
old-commit-hash: 4b004d59f3441f59cc78e6f8494e1e70451cf33e
2024-02-12 15:00:01 -08:00
Adeeb Shihadeh
adcac1f207 SubMaster: improve service aliveness checks (#31391)
* bump cereal

* fix

* fixes

* single poll

* bump

* bump

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 279d2c3b2319bab73bbc9ed103911b6df3b0dc02
2024-02-12 10:11:37 -08:00
Adeeb Shihadeh
b4c03185d4 bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
old-commit-hash: daceb171bde5aef4ea483e8054456187772afe92
2024-02-09 21:44:23 -08:00
Justin Newberry
e5f220b547 Revert "make vipc and msgq prefix paths easier to cleanup" (#31380)
Revert "make vipc and msgq  prefix paths easier to cleanup (#31378)"

This reverts commit 82544724c55db5d44458a61619841b4b3d7d4988.
old-commit-hash: 32f049c2800d6d9a889e128ea102a6eedec4a058
2024-02-08 13:38:41 -08:00
Justin Newberry
4e79e68a46 make vipc and msgq prefix paths easier to cleanup (#31378)
* ensure order

* cleanup cleaner

* cleaner

* this needs prefix

* rm vipc

* bump

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e87135727d54fc497fa556984bd879023bf0fa9a
2024-02-08 13:36:14 -08:00
Adeeb Shihadeh
ea7b42bc06 [bot] Bump submodules (#31299)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: 7fe375f158f6d0ed4fdf27c449b90b9d0257ceea
2024-02-06 11:11:58 -08:00
Adeeb Shihadeh
2632a41c1e encoderd: get frame size over vipc (#31276)
* encoderd: get frame size over vipc

* bump cereal

* fix ffmpeg

* no print
old-commit-hash: a5766e27967707d51c4e7181a3509c78b3671d16
2024-02-02 12:53:12 -08:00
Adeeb Shihadeh
d8b2dd3e62 [bot] Bump submodules (#31207)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: ed7cfc23430eb9e9c7cdfb6ec3a6dc86c3be0709
2024-01-29 12:37:35 -08:00
Harald Schäfer
43e44ef3ac Deprecate lat planner (#31097)
* Deprecate lat planner

* Bump cereal
old-commit-hash: 7ebd841a0b227da03c7a68d2914e06e4e4364247
2024-01-21 17:10:49 -08:00
Bruce Wayne
13896fad3d Bump cereal
old-commit-hash: ec72cdca00840ecc653fb9c3f5813c66d73de2e4
2024-01-21 12:10:55 -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
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
cef8286550 camerad: log request id (#30935)
* camerad: log request id

* bump cereal

* bump cereal
old-commit-hash: 91c5c5eca765c990ff185a4a0bda7207eb55787d
2024-01-08 09:16:50 -08:00
Adeeb Shihadeh
8c9ca9c7be Bump submodules (#30881)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: d3cdd837fa1061761021236c4fa9053f5c617bd8
2024-01-01 14:28:34 -08:00