Commit Graph

576 Commits

Author SHA1 Message Date
Shane Smiskol
684209e077 remove uiPlan (#32721)
* remove uiPlan from ui

* remove publishing

* Update log.capnp

* Update services.py

* no uiPlan here

* Update ref_commit
2024-06-11 21:31:10 -07:00
Harald Schäfer
05669df102 Update cereal README.md 2024-06-11 16:17:25 -07:00
Harald Schäfer
965415135a Long control: Double delay is super complicated (#32694)
* Double delay is super complicated

* No more upper bound

* DEAD

* Update ref
2024-06-10 22:29:17 -07:00
Harald Schäfer
e70dc90a45 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>
2024-06-09 17:44:34 -07:00
Adeeb Shihadeh
b42b156fcd card: remove old canRcvtimeout field (#32650)
* card: remove old canRcvtimeout field

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

* Unused
2024-06-06 23:35:13 -07:00
Harald Schäfer
83209e0860 Msgq cleanups (#32643)
* Dead cereal stuff

* Dead code

* also dead

* More cleanup
2024-06-06 15:03:19 -07:00
Harald Schäfer
e71ec4e8d7 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
2024-06-06 14:31:56 -07:00
commaci-public
544b554c69 [bot] Bump submodules (#32602)
bump submodules

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

* update cereal

* cereal master

* lol really

* ref com

* ref
2024-05-22 15:47:11 -07:00
Shane Smiskol
71f5c441fe 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
2024-05-21 01:18:10 -07:00
Dean Lee
b742776bff 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>
2024-05-18 17:46:34 -07:00
commaci-public
acd84e0f9c [bot] Bump submodules (#32410)
bump submodules

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

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-05-03 14:34:37 -07:00
Adeeb Shihadeh
6ef95f7a91 adjust gps alert 2024-05-01 11:35:20 -07:00
Adeeb Shihadeh
3e1617deaa bump submodules - ubuntu 24.04 (#32312) 2024-04-28 14:14:55 -07:00
YassineYousfi
754dd45ffa 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
2024-04-09 10:40:38 -07:00
Adeeb Shihadeh
c2f593f69a [bot] Bump submodules (#32069)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-04-01 10:03:04 -07:00
Adeeb Shihadeh
db9aec2a3b remove rest of GMLAN (#31960) 2024-03-21 14:00:45 -07:00
Shane Smiskol
29e55f99a5 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>
2024-03-13 00:57:57 -07:00
Adeeb Shihadeh
f6665f8488 thermald: add deviceType to logs (#31819)
* thermald: add deviceType to logs

* fix
2024-03-10 14:29:50 -07:00
Adeeb Shihadeh
4d1b100152 cgpsd: use a real source 2024-03-09 23:33:24 -08:00
Adeeb Shihadeh
a0389d7120 add hasFix field to gpsLocation (#31778)
* add hasFix field to gpsLocation

* migration

* update refs for ubloxd

* cereal master
2024-03-08 11:32:38 -08:00
Justin Newberry
82acb87fae bump cereal 2024-03-04 10:11:13 -08:00
Justin Newberry
8ec0d87de0 card: prepare for separate process (#31660)
* Card

* update ref

* bump cpu

* sub to caroutput

* update ref
2024-03-04 09:53:42 -08:00
Adeeb Shihadeh
e4e9243f8d bump cereal 2024-02-28 20:23:40 -08:00
Harald Schäfer
85eb221e4c GpsLocation: Rename accuracy to horizontal accuracy (#31629)
* Rename accuracy to horizontal accuracy

* typo in cereal
2024-02-28 19:55:57 -08:00
Justin Newberry
f293f7bad4 scons: move cereal library exports to cereal submodule (#31617)
* cleanup-cereal

* bump
2024-02-27 13:17:56 -08:00
Adeeb Shihadeh
5c0bbc7dda [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>
2024-02-26 11:20:42 -08:00
Adeeb Shihadeh
0b4d08fab8 remove deviceState.ambientTempC (#31533) 2024-02-21 13:57:49 -08:00
Adeeb Shihadeh
0723c2bc5f log git commit date (#31490)
* log git commit date

* unix ts

* fix

* bump cereal

* cleanup
2024-02-16 13:19:10 -08:00
Adeeb Shihadeh
2f15c878d0 bump cereal (#31469)
* bump cereal

* bump cereal
2024-02-14 15:01:02 -08:00
Adeeb Shihadeh
c5739651a2 timed: publish clocks periodically (#31434)
* timed: publish clocks periodically

* simplify

* Apply suggestions from code review
2024-02-13 14:22:46 -08:00
Adeeb Shihadeh
7f7f1fd21b Revert "radard: enable avg input service frequency checks (#31404)"
This reverts commit 4b004d59f3.
2024-02-13 13:23:27 -08:00
Adeeb Shihadeh
4b004d59f3 radard: enable avg input service frequency checks (#31404)
* radard: enable avg frequency checks

* freq

* update cpu

* fix diff
2024-02-12 15:00:01 -08:00
Adeeb Shihadeh
279d2c3b23 SubMaster: improve service aliveness checks (#31391)
* bump cereal

* fix

* fixes

* single poll

* bump

* bump

---------

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

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
2024-02-09 21:44:23 -08:00
Justin Newberry
32f049c280 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 e87135727d.
2024-02-08 13:38:41 -08:00
Justin Newberry
e87135727d 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>
2024-02-08 13:36:14 -08:00
Adeeb Shihadeh
7fe375f158 [bot] Bump submodules (#31299)
bump submodules

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

* bump cereal

* fix ffmpeg

* no print
2024-02-02 12:53:12 -08:00
Adeeb Shihadeh
ed7cfc2343 [bot] Bump submodules (#31207)
bump submodules

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

* Bump cereal
2024-01-21 17:10:49 -08:00
Bruce Wayne
ec72cdca00 Bump cereal 2024-01-21 12:10:55 -08:00
Harald Schäfer
e6c97c3846 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>
2024-01-21 12:09:48 -08:00
Harald Schäfer
d36103791c No curv rate for lateral control (#31042)
* No more Curvature rate for lat control

* Update cereal

* Update

* Fix lat control test
2024-01-17 16:00:50 -08:00
Adeeb Shihadeh
91c5c5eca7 camerad: log request id (#30935)
* camerad: log request id

* bump cereal

* bump cereal
2024-01-08 09:16:50 -08:00
Adeeb Shihadeh
d3cdd837fa Bump submodules (#30881)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-01 14:28:34 -08:00
Adeeb Shihadeh
7638572e38 Bump submodules (#30849)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-12-26 01:58:40 -08:00