Commit Graph

13068 Commits

Author SHA1 Message Date
Shane Smiskol 7ec9986340 carState: add invalid sensors field (#33266)
* add to CS

* add vehicleSensorsInvalid to CarState

* fix ord

* clean up
2024-08-11 23:12:42 -07:00
Shane Smiskol 4e122ed2d1 remove map from ui preview (#33265)
* rm map from ui preview

* fix
2024-08-11 21:54:40 -07:00
Shane Smiskol 96a4877e9f Update ui_preview.yaml 2024-08-11 21:01:13 -07:00
Shane Smiskol 093c09a737 move the body events to card (#33262)
* move the body events to card

* rm import
2024-08-11 20:25:08 -07:00
Shane Smiskol d330358728 Revert "spinner: fix missing colon in QProgressBar border style" (#33263)
Revert "spinner: fix missing colon in QProgressBar border style (#33258)"

This reverts commit 85d8d0eddd.
2024-08-11 20:24:43 -07:00
Shane Smiskol 2dab8b31f2 Fix some car typing (#33256)
* ??

* fix these

* more typing and some fixes

* fix

* rm this for now

* fix
2024-08-11 19:12:46 -07:00
Adeeb Shihadeh 82c2ec7208 no more gh discussions 2024-08-11 15:48:22 -07:00
Jimmy 118932acd3 Add testing closet to LogReader source (#33242)
* add testing closet to logreader source

* check source availability

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

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

* check
2024-08-08 16:32:02 -07:00
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