Commit Graph

13049 Commits

Author SHA1 Message Date
Hoang Bui a604dcc524 tools/rerun: Rerun 0.18 (#33188) 2024-08-08 14:30:14 -07:00
Dean Lee ad33cae40e pandad: move getenv check to global scope (#33235)
move getenv check to global
2024-08-08 08:45:03 -07:00
Hoang Bui 9e648e428d tools/logreader: add desc arg to run_across_segments() (#33226) 2024-08-08 07:51:14 -07:00
Shane Smiskol 9880b1393c 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
2024-08-07 23:49:25 -07:00
Shane Smiskol 87f183f43c 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
2024-08-07 23:12:47 -07:00
Shane Smiskol bd4f0cec18 selfdrive/car: rm make_can_msg (#33231)
* rm make_can_msg

* fix
2024-08-07 21:58:16 -07:00
Maxime Desroches 40e54a3b4f op lint: specify tests to run (#33229)
args
2024-08-07 20:58:59 -07:00
Maxime Desroches eb50f5cae8 static_analysis: use 24.04 for everyone (#33227)
* noble

* test it

* Revert "test it"

This reverts commit 393868bf5fd14a0afaa6d2b05f632c76f9b52213.
2024-08-07 20:22:22 -07:00
Maxime Desroches f8f6c39915 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
2024-08-07 17:23:33 -07:00
Shane Smiskol 51bd368214 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
2024-08-07 16:12:00 -07:00
Maxime Desroches 184519834c more codespell errors (#33223)
more spell
2024-08-07 16:02:09 -07:00
Shane Smiskol ba7a60c5a2 remove CAN capnp conversion from car interfaces (#33218)
remove pandad from interfaces
2024-08-07 00:05:32 -07:00
Maxime Desroches 3af774725f Revert "pre-commit: bring back some checks (#33196)" (#33216)
This reverts commit 30467b44cd.
2024-08-06 21:48:56 -07:00
Maxime Desroches 30467b44cd 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
2024-08-06 21:39:18 -07:00
Shane Smiskol 10f27a6a1b selfdrive/car: ban the rest of the external imports (#33214)
more bans
2024-08-06 20:59:59 -07:00
Shane Smiskol 8d961a12e5 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
2024-08-06 20:45:11 -07:00
Dean Lee a4de8739e9 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
2024-08-06 20:04:17 -07:00
Dean Lee fb560e81ef pandad: assemble capnp message using separate functions (#33189)
Assemble capnp message using separate functions
2024-08-06 17:27:02 -07:00
Adeeb Shihadeh 16c36b0d8b sensord: error -> warning for expected failures 2024-08-06 17:25:03 -07:00
Adeeb Shihadeh ec9149c20e docs: add #current-projects link 2024-08-06 16:43:57 -07:00
Shane Smiskol 1c770c4ed7 add exception for body 2024-08-06 16:37:44 -07:00
Shane Smiskol 6c837332ea selfdrive/car: ban selfdrive/controls (#33211)
ban controls (VM isn't used anymore)
2024-08-06 16:36:38 -07:00
Hoang Bui 5909bcde62 tools/rerun: new image API for rerun 0.18 (#33186)
* change api for video

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

* pass empty cb

* last fix!

* i keep messing this up

* even more coverage!

* not needed
2024-08-05 23:30:52 -07:00
Shane Smiskol 04b636e3f2 fix build 2024-08-05 23:08:41 -07:00
Shane Smiskol 87c6afccf7 remove CarVin parameter 2024-08-05 22:31:04 -07:00
Shane Smiskol 5c1e111d8a remove unnecessary debugging function from car_helpers.py (#33199)
* format

* better better

* huh
2024-08-05 21:27:43 -07:00
Shane Smiskol 06216d43bb 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
2024-08-05 17:27:28 -07:00
Adeeb Shihadeh 29b58d4f2f Revert "Remove setproctitle (#32716)" (#33195)
* Revert "Remove `setproctitle` (#32716)"

This reverts commit 83ac80c6c8.

* uv lock

* old name
2024-08-05 16:42:22 -07:00
Maxime Desroches 44c7144e1c fix all codespell issues (#33194)
* bring back

* remove 2020 dictionary
2024-08-05 15:25:02 -07:00
Maxime Desroches c7cf6f6568 setup.sh: metrics (#33175)
* save

* add sentry

* clean

* real sentry

* default

* true

* remote this
2024-08-05 14:07:57 -07:00
Shane Smiskol 7a7200cbda [bot] Fingerprints: add missing FW versions from new users (#33191)
Export fingerprints
2024-08-05 13:29:14 -07:00
Shane Smiskol 12a7b7f7fb 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
2024-08-05 12:31:31 -07:00
commaci-public 4706d9e2d1 [bot] Bump submodules (#33184)
bump submodules

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

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-08-05 10:35:58 -07:00
Adeeb Shihadeh 8e0a4f2faf back to pypi casadi (#33182) 2024-08-04 16:13:18 -07:00
Adeeb Shihadeh c8d8db5947 bounties.md moved to the project README 2024-08-04 15:51:12 -07:00
Adeeb Shihadeh 3fd4b2f676 op: simpler examples 2024-08-04 11:07:08 -07:00
ugtthis e1a493e13b Docs: curl command updated (#33180) 2024-08-04 06:57:42 -07:00
Adeeb Shihadeh 54cd2a6ed2 rerun: misc fixups 2024-08-03 21:14:48 -07:00
Dean Lee 8f9b165de8 camerad: encapsulate cl_command_queue in ImgProc (#33178)
move cl queue to imgproc
2024-08-03 14:57:26 -07:00
Adeeb Shihadeh 9474523add Revert "uploader.py: simplify clear_locks by using rglob (#32974)"
This reverts commit cafca4f891.
2024-08-03 12:12:42 -07:00
Dean Lee cafca4f891 uploader.py: simplify clear_locks by using rglob (#32974)
simplify clear_locks
2024-08-02 13:40:57 -07:00
Dean Lee 2cd9975e4f modeld: remove redundant pred_mu assignment (#33152)
remove redundant pred_mu assignment
2024-08-02 13:40:33 -07:00