* move capnp byte decoding out of car_helpers
* always wanted to type this
* and process replay
* this does nothing
* might as well
old-commit-hash: ee62b9c88b
* start
* hmm API doesn't seem great
* better
* rm line
* sendcan -> can_send callable for best static type coverage, list -> tuple msg
TODO: logcan
* more sendcan -> can_send references
* remove pandad's capnp from selfdrive/car
* fix and remove cereal from test_can_fingerprint
* test_fw_fingerprint: remove pandad, less cereal
* comment done too
* better comment
* fix test_models test
* niceeee it works
* move to can_definitions
* can't come up with a better name :(
* I think we can remove SimpleNamespace soon
* fix test_can_fingerprint.py
* maintain previous behavior
* Revert "maintain previous behavior"
This reverts commit f848fd3213.
* can test comment
* no need for get_one_can now!
* big clean up: no SimpleNamespace
* now self explanatory!
* not needed
* use empty can again since this is now real
* cmt
old-commit-hash: 9880b1393c
* content of can packet won't affect can fingerprint time
* remove get_one_can
* fix comment
* actually we still want to be able to send empty can (xx fingerprint func does this if it runs out of msgs)
* fix process replay
old-commit-hash: 87f183f43c
* ban params too with a callback
* all sorts of messed up
* use cloudlog
* consistent order
* order
* better type hint
* format
* this is a bit nicer
* hmm
* fix PLR1704
* no carvin
* fix process replay
old-commit-hash: 5a1596a322
* Use livePose instead of llk
* Update process replay sockets
* Fix import
* Fix calib
* Fix field name
* Dont store device_from_calib
* Update ref commit
old-commit-hash: 84cff4fc03
* Filter out non-relevant services in most_messages_valid check
* Set as comprehension
* Update segments
* Update ref commit
* New check for hyundai2
old-commit-hash: 6e185f4eea
Revert "selfdrive/car: ban imports from external modules (#32973)"
This reverts commit c1e8ff2dbc47ccb07fb41a4e88bfb66af2669254.
old-commit-hash: 35a4a773f1
* Mini model v2 prototype
* Apply suggestions
* Add meta
* Support for new packet in model
* Support in process replay
* Meta
* Add it to services
* Update model replay
* Add drivingModelData in model_replay
* Update ref
* MAX_FRAMES*3
* No modelv2, but drivingModelData at 2hz
* Polypath
* Dont use keyword
* Update model ref commit
* xyz coeff
* Fix field name
* Update ref commit
* Min qlog size 0.6
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2059f986df
* check_most_messages_valid impl
* Add to both regen and test_processes
* Refactor
* Bring back carOutput
* Use Counter
* Use get(k, 0)
old-commit-hash: e0d20d2cf3
* 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 e2c3f01b2f.
* 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 534a357ee9.
* Revert "just use CS"
This reverts commit 9fa7406f30.
* add vCruise
* migrate car state
* Revert "migrate car state"
This reverts commit 4ae86ca163.
* Revert "add vCruise"
This reverts commit af247a8da4.
* simple state machine in card (doesn't work as is)
* Revert "simple state machine in card (doesn't work as is)"
This reverts commit b4af8a9b0a.
* 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 5499b83c2d.
* 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: 71f5c441fe
* regen
* regen
* update
* undo
* update refs
* fix
* real fix
* test
* test2
* test3
* stash
* Revert "stash"
This reverts commit bf6765f526.
* rk.lagging can not be trusted. BODY segment has radarFault while modelV2 is not valid, causing radarState to not be valid
* order
* update refs again
* we never logged carOutput!
* bump
* add back checks
old-commit-hash: 220fcc1675
* 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: e62756596b
* 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: 2eb487c9a5
* Migrate pandaStates
* Fix import
* Make pandaStates migration optional, so process_replay still works on logs without carParams
* peripheralState migration if its not available
* Do nothing if log file has peripheralStates
* Add migrate_managerState
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 898acb13f2
* Fix assertion for vision_pubs
* Get camera states from meta
* Convert deviceType to string
* Use neo instead of eon for frame sizes dict
* update vision_pubs of process config when creating vipc
old-commit-hash: 9c5bbe1a91
* pytest: use a clean environment for all tests
* rm that
* fix pj
* put build back
* fix params
* fix that
* handle no key
* that was removed
---------
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 7b6afbc162
* use_laika
* Update test
* fix spacing
* fix proc replay
* small fix
* Try correct std
* cast correctly
* experimental
* simpler
* update reset thresholds
* improve
* Ready for live running
* outlier reject
* update laika
* add fine speeds
* more experiments
* fixes
* all in laika
* more small tweaks
* outlier rejection not needed
* fix conflict
* no more gpslocation
* update test
* refactor to laika
* runs again
* Update ref
old-commit-hash: fd3b8a3d75
* radard: tie radard frequency to modelV2
Accumulate parsed messages until state is updated (toyota)
Same for honda
Rename rr to something more descriptive
* Change _update method name, since signature has changed
* Update ref commit
* Some renames
* Check for number of cans
old-commit-hash: 460f5c8e0b