Commit Graph

13628 Commits

Author SHA1 Message Date
Shane Smiskol e4cdccb7fd Revert "spinner: fix missing colon in QProgressBar border style" (#33263)
Revert "spinner: fix missing colon in QProgressBar border style (#33258)"

This reverts commit 3ba8a152cc8326306640c7acf307ceb385f7a4e8.
old-commit-hash: d330358728
2024-08-11 20:24:43 -07:00
Shane Smiskol b014b1cc90 Fix some car typing (#33256)
* ??

* fix these

* more typing and some fixes

* fix

* rm this for now

* fix
old-commit-hash: 2dab8b31f2
2024-08-11 19:12:46 -07:00
Adeeb Shihadeh ac9370addc no more gh discussions
old-commit-hash: 82c2ec7208
2024-08-11 15:48:22 -07:00
Jimmy 937ed5f700 Add testing closet to LogReader source (#33242)
* add testing closet to logreader source

* check source availability

* use internal_source_available
old-commit-hash: 118932acd3
2024-08-11 15:10:14 -07:00
Dean Lee 056426a674 spinner: fix missing colon in QProgressBar border style (#33258)
fix border style
old-commit-hash: 85d8d0eddd
2024-08-11 10:22:52 -07:00
Shane Smiskol 162436088f move capnp CarParams decoding out of car_helpers (#33251)
* 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
2024-08-10 00:06:56 -07:00
Maxime Desroches 17dfc2b45b op.sh: consistent naming (#33249)
name
old-commit-hash: ea05474df2
2024-08-10 00:05:35 -07:00
Shane Smiskol 7dd22b9567 Honda: round minEnableSpeed correctly (#33250)
round to even
old-commit-hash: 4300f37cc4
2024-08-09 23:42:40 -07:00
Maxime Desroches b53338bfd7 setup.sh: get full uname (#33248)
log
old-commit-hash: b9fe84f84d
2024-08-09 23:21:45 -07:00
Hoang Bui 025395ca43 tools/sim: resolve import error on MacOS running Metadrive (#33244)
fix dynamic lib linking on mac
old-commit-hash: c06d975ec4
2024-08-09 23:12:40 -07:00
Adeeb Shihadeh ac6956a651 tici: new updater build (#33246)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1b554b488e
2024-08-09 14:30:28 -07:00
Adeeb Shihadeh ee777a7e75 Update CONTRIBUTING.md
old-commit-hash: 4d0b54e80b
2024-08-09 11:02:18 -07:00
Maxime Desroches 5e990d4186 linux: setup panda + jungle udev rules (#33241)
* add rules

* allow failure on docker
old-commit-hash: 2ff051ba53
2024-08-08 20:23:51 -07:00
Maxime Desroches 0cade54015 webcam: remove other cv2 usage (#33236)
av
old-commit-hash: a8c0c158ad
2024-08-08 16:35:30 -07:00
Maxime Desroches b5a58ca715 op.sh: fix venv on zsh + bash 3.2 (#33238)
* i love zsh

* check
old-commit-hash: 80653bfb59
2024-08-08 16:32:02 -07:00
Hoang Bui 93e980b925 tools/rerun: Rerun 0.18 (#33188)
old-commit-hash: a604dcc524
2024-08-08 14:30:14 -07:00
Dean Lee fcba77b59e pandad: move getenv check to global scope (#33235)
move getenv check to global
old-commit-hash: ad33cae40e
2024-08-08 08:45:03 -07:00
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