Commit Graph

13611 Commits

Author SHA1 Message Date
Hoang Bui 6a2b4dedfc tools/logreader: add desc arg to run_across_segments() (#33226)
old-commit-hash: 9e648e428d
2024-08-08 07:51:14 -07:00
Shane Smiskol a7db075f08 selfdrive/car: generic CAN send/receive callbacks (#33215)
* 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 f848fd32132391692c6191a305bb38f74091ec91.

* 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
2024-08-07 23:49:25 -07:00
Shane Smiskol 8131716c9e CAN fingerprinting: count empty CAN packets as frames (#33232)
* 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
2024-08-07 23:12:47 -07:00
Shane Smiskol c1084b3df3 selfdrive/car: rm make_can_msg (#33231)
* rm make_can_msg

* fix
old-commit-hash: bd4f0cec18
2024-08-07 21:58:16 -07:00
Maxime Desroches 90451d86f7 op lint: specify tests to run (#33229)
args
old-commit-hash: 40e54a3b4f
2024-08-07 20:58:59 -07:00
Maxime Desroches 49ab9876fa static_analysis: use 24.04 for everyone (#33227)
* noble

* test it

* Revert "test it"

This reverts commit 393868bf5fd14a0afaa6d2b05f632c76f9b52213.
old-commit-hash: eb50f5cae8
2024-08-07 20:22:22 -07:00
Maxime Desroches 5b82b7c65e op.sh: lint (#33217)
* redo

* better

* fix this

* clean everything

* all files

* test

* debug

* get info

* revert

* only good files

* allow skip

* also this

* help section
old-commit-hash: f8f6c39915
2024-08-07 17:23:33 -07:00
Shane Smiskol 7f4f1d4c5f make_can_msg: returns tuple (#33222)
* bump

* make_man_msg returns tuple

* fix CI.update typing

* bump

* better name

* Revert "better name"

This reverts commit 4deb38d4ed99e43721960f69da1dd46a1069eb42.

* common
old-commit-hash: 51bd368214
2024-08-07 16:12:00 -07:00
Maxime Desroches b63698c376 more codespell errors (#33223)
more spell
old-commit-hash: 184519834c
2024-08-07 16:02:09 -07:00
Shane Smiskol 54d10c2aa3 remove CAN capnp conversion from car interfaces (#33218)
remove pandad from interfaces
old-commit-hash: ba7a60c5a2
2024-08-07 00:05:32 -07:00
Maxime Desroches dbccf5c922 Revert "pre-commit: bring back some checks (#33196)" (#33216)
This reverts commit 4b356147185aa1d772947e4ec7b54a3e6e523f9d.
old-commit-hash: 3af774725f
2024-08-06 21:48:56 -07:00
Maxime Desroches 5baf136b11 pre-commit: bring back some checks (#33196)
* add this

* add this

* nice ...

* 120

* remove

* no remote

* 0

* this

* no submodules

* like this

* try this

* validate

* like this

* split

* pass files

* no par

* check exist

* no build

* fix

* 24.04

* default

* test failure

* continue

* actually fail

* clean

* import

* fix

* line

* mypy

* clean

* simpler

* final

* better

* final clean

* not true
old-commit-hash: 30467b44cd
2024-08-06 21:39:18 -07:00
Shane Smiskol 3a3e57bc94 selfdrive/car: ban the rest of the external imports (#33214)
more bans
old-commit-hash: 10f27a6a1b
2024-08-06 20:59:59 -07:00
Shane Smiskol d8f56b30b5 selfdrive/car: ban common (#33210)
* ban all of common & copy numpy_fast

* add numpy_fast

* these are okay

* and ban controls

* better name

* Conversions

* do utils, kalman

* clean up

* sorting

* don't forget
old-commit-hash: 8d961a12e5
2024-08-06 20:45:11 -07:00
Dean Lee 04b0871c45 pandad: refactor to consolidate threads, keep only one can_send thread (#32680)
* single thread

improve comment

* Keep can_send() running in a separate thread

* send send_peripheral_state in pandad_run

* new PandaSafety class
old-commit-hash: a4de8739e9
2024-08-06 20:04:17 -07:00
Dean Lee 7003776265 pandad: assemble capnp message using separate functions (#33189)
Assemble capnp message using separate functions
old-commit-hash: fb560e81ef
2024-08-06 17:27:02 -07:00
Adeeb Shihadeh 7b5d3dbbca sensord: error -> warning for expected failures
old-commit-hash: 16c36b0d8b
2024-08-06 17:25:03 -07:00
Adeeb Shihadeh caaddfa7b2 docs: add #current-projects link
old-commit-hash: ec9149c20e
2024-08-06 16:43:57 -07:00
Shane Smiskol 6376e4d6a6 add exception for body
old-commit-hash: 1c770c4ed7
2024-08-06 16:37:44 -07:00
Shane Smiskol 2c49f6b20d selfdrive/car: ban selfdrive/controls (#33211)
ban controls (VM isn't used anymore)
old-commit-hash: 6c837332ea
2024-08-06 16:36:38 -07:00
Hoang Bui 83cbd93d3b tools/rerun: new image API for rerun 0.18 (#33186)
* change api for video

* install prerelease 0.18
old-commit-hash: 5909bcde62
2024-08-06 14:22:25 -07:00
Shane Smiskol ce7c2488b5 add back lint-imports (#33202)
add back
old-commit-hash: 3d02c03001
2024-08-06 13:43:04 -07:00
Adeeb Shihadeh e9fdb9490d macOS: remove devcontainer recommendation
old-commit-hash: e9e2e97831
2024-08-06 12:58:17 -07:00
Comma Device 41c9dd38eb tici: update spinner and text
old-commit-hash: 33bf4bbb13
2024-08-06 11:51:17 -07:00
Shane Smiskol c0f721180f get_car: returns just CI (#33204)
just return CI
old-commit-hash: d00a539830
2024-08-06 00:30:25 -07:00
Shane Smiskol 1a74993ee2 selfdrive/car: ban params (#33198)
* 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
2024-08-06 00:10:53 -07:00
Shane Smiskol 59b2f1f511 fingerprinted: log platform string
This does get safely converted to a string in the logs, but in the console it's the repr
old-commit-hash: d1140cc644
2024-08-06 00:08:39 -07:00
Shane Smiskol a1c2971f13 selfdrive/car: OBD callback (#33200)
* finish

* pass empty cb

* last fix!

* i keep messing this up

* even more coverage!

* not needed
old-commit-hash: 86aeb123bc
2024-08-05 23:30:52 -07:00
Shane Smiskol 6fc4328de4 fix build
old-commit-hash: 04b636e3f2
2024-08-05 23:08:41 -07:00
Shane Smiskol 3df0a1ebbf remove CarVin parameter
old-commit-hash: 87c6afccf7
2024-08-05 22:31:04 -07:00
Shane Smiskol 9e4a7484be remove unnecessary debugging function from car_helpers.py (#33199)
* format

* better better

* huh
old-commit-hash: 5c1e111d8a
2024-08-05 21:27:43 -07:00
Shane Smiskol c45e72dd2f remove more car import exceptions (#33193)
* remove another exception (remove mention of events from car stack)

* guess this should've been here all along

* reorganize exceptions

* fix
old-commit-hash: 06216d43bb
2024-08-05 17:27:28 -07:00
Adeeb Shihadeh fc469e5f80 Revert "Remove setproctitle (#32716)" (#33195)
* Revert "Remove `setproctitle` (#32716)"

This reverts commit 9020d1931f4cd72f8162e4402278bdf76e3746f2.

* uv lock

* old name
old-commit-hash: 29b58d4f2f
2024-08-05 16:42:22 -07:00
Maxime Desroches df13b36638 fix all codespell issues (#33194)
* bring back

* remove 2020 dictionary
old-commit-hash: 44c7144e1c
2024-08-05 15:25:02 -07:00
Maxime Desroches 10af4af68f setup.sh: metrics (#33175)
* save

* add sentry

* clean

* real sentry

* default

* true

* remote this
old-commit-hash: c7cf6f6568
2024-08-05 14:07:57 -07:00
Shane Smiskol 550178261a [bot] Fingerprints: add missing FW versions from new users (#33191)
Export fingerprints
old-commit-hash: 7a7200cbda
2024-08-05 13:29:14 -07:00
Shane Smiskol cfc2cda37c separate car logger forwarded to cloudlog (#33170)
* car logger

* try this

* fix double printing!

* clean up

* need to import where we actually use it (card won't be in submodule)

* NullHandler does not forward everything properly, need propagate=False to stop root logger from printing

* card is staying

* set up

* forward
old-commit-hash: 12a7b7f7fb
2024-08-05 12:31:31 -07:00
commaci-public 8bf177ece0 [bot] Bump submodules (#33184)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 4706d9e2d1
2024-08-05 12:18:28 -07:00
commaci-public 0907814b1b [bot] Update Python packages (#33185)
pin numpy :(

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 3b3ffb7b2b
2024-08-05 10:35:58 -07:00
Adeeb Shihadeh f2299dfcb2 back to pypi casadi (#33182)
old-commit-hash: 8e0a4f2faf
2024-08-04 16:13:18 -07:00
Adeeb Shihadeh fe4ab0a22d bounties.md moved to the project README
old-commit-hash: c8d8db5947
2024-08-04 15:51:12 -07:00
Adeeb Shihadeh f46fc7d7e4 op: simpler examples
old-commit-hash: 3fd4b2f676
2024-08-04 11:07:08 -07:00
ugtthis b6ddc8d6cc Docs: curl command updated (#33180)
old-commit-hash: e1a493e13b
2024-08-04 06:57:42 -07:00
Adeeb Shihadeh ca0cc203d4 rerun: misc fixups
old-commit-hash: 54cd2a6ed2
2024-08-03 21:14:48 -07:00
Dean Lee ad42551437 camerad: encapsulate cl_command_queue in ImgProc (#33178)
move cl queue to imgproc
old-commit-hash: 8f9b165de8
2024-08-03 14:57:26 -07:00
Adeeb Shihadeh 139f4034a8 Revert "uploader.py: simplify clear_locks by using rglob (#32974)"
This reverts commit 870f5cbeb39fa63829e6f3a64fa8df57e82d52c3.

old-commit-hash: 9474523add
2024-08-03 12:12:42 -07:00
Dean Lee 7fcba71725 uploader.py: simplify clear_locks by using rglob (#32974)
simplify clear_locks
old-commit-hash: cafca4f891
2024-08-02 13:40:57 -07:00
Dean Lee 74a9e64c2c modeld: remove redundant pred_mu assignment (#33152)
remove redundant pred_mu assignment
old-commit-hash: 2cd9975e4f
2024-08-02 13:40:33 -07:00
Dean Lee 7adc4219f0 camerad: update frame msg related variable types to uint64_t for consistency (#33113)
Update frame_msg related variable types to uint64_t for  type safety
old-commit-hash: c40d129f70
2024-08-02 12:57:29 -07:00
Adeeb Shihadeh e2e271950f Update stale.yaml
old-commit-hash: 19dec54f65
2024-08-02 12:55:04 -07:00