Commit Graph

13714 Commits

Author SHA1 Message Date
commaci-public
fc08a6ebef [bot] Update Python packages (#33377)
Update Python packages

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 8b074d3ed651717d3eb23e73a9930df7790568e6
2024-08-26 09:32:57 -07:00
Dean Lee
a529422db0 ui: add prefix PRIME_TYPE_ to PrimeType enum values (#33371)
Add Prefix PRIME_TYPE_ to PrimeType Enum Values
old-commit-hash: 4bb00a042a7f0e60f42d4311805921b41395de83
2024-08-25 09:44:18 -07:00
Adeeb Shihadeh
2c98c6d52b third_party: setup raylib (#33367)
* setup raylib

* x86 build

* add larch

* darwin

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4b70cc92861df35e7a769019b6926b4dbe47978f
2024-08-24 16:39:00 -07:00
Dean Lee
a0c4bab7a1 scons: cleanup cpppath (#33370)
cleanup cpppath
old-commit-hash: 44c3156fa4bab81dbb9424cf65f18a8155225386
2024-08-24 13:51:07 -07:00
Adeeb Shihadeh
9abd041b53 these have nothing to do with openpilot (#33369)
old-commit-hash: 73d9f6e05e354986b3fd225546e8aa1dbc58cf04
2024-08-23 21:24:04 -07:00
Adeeb Shihadeh
331a0a6554 bump panda
old-commit-hash: 95600b00c6473eee76a9262383c276b6c27c806e
2024-08-23 21:07:11 -07:00
Adeeb Shihadeh
841768e768 ui: move more builds behind --minimal (#33368)
old-commit-hash: 5cb7aed8cefc4cd8345ccfc3cbb4fee3b1977dc6
2024-08-23 18:14:43 -07:00
Maxime Desroches
8ff2785fb9 add back pre-commit hook (#33366)
* add pre-commit

* space

* post

* e
old-commit-hash: b87414c74971082a8af73d913441a00f90037798
2024-08-23 15:19:21 -07:00
Dean Lee
7098ddcd19 ui: remove QtQml and related dependencies (#33357)
* remove QtQml

* remove qtdeclarative5-dev
old-commit-hash: 4d9ee68d165fe47bd6c0f10851273cbf09ae1ac7
2024-08-23 10:56:31 -07:00
Dean Lee
7dfe2706d6 scons: only enable swaglog for submodules (#33365)
only enable swaglog for submodules
old-commit-hash: 7a6e686ec78a9890093cddba2a724ceb5983e29c
2024-08-23 10:46:37 -07:00
Dean Lee
2bfbc779b3 cereal: remove unused shared library creation (#33363)
clear cereal/SConscript
old-commit-hash: 1a4ff8272bdcf354a21c211d350b736621d17601
2024-08-23 10:45:31 -07:00
Dean Lee
965aea8eab scons: remove duplicate linker flags for -ljson11, -lzmq (#33361)
fix duplicate link
old-commit-hash: 908aa525ec49c0541d88a7f2596d71d98df63ba3
2024-08-23 10:42:57 -07:00
Kacper Rączy
e154f03a12 timed: use gps location packet for time (#33306)
* GPS helpers

* Use GPS socket in timed

* Use helper in controlsd

* Use updated and logMonoTime

* Helper type annot

* Not updated

* Increase time threashold
old-commit-hash: cf355ecf20b546e6c6caca40936fe7505d5f8b7f
2024-08-22 23:30:29 -07:00
Adeeb Shihadeh
7bfd763291 bump panda
old-commit-hash: bdf9c90951409301a27a15bf97c82a90402ab71f
2024-08-22 21:59:00 -07:00
Dean Lee
d105d8b3fa scons: remove QtMultimedia lib and include path from build configuration (#33358)
remove multimedia
old-commit-hash: 61abc05c8b178436513f29fbffa19dd44091b44d
2024-08-22 19:44:59 -07:00
Hoang Bui
c2fbe69e9f rerun: adapt to the change in release of 0.18 (#33359)
old-commit-hash: 63992fd164a669ebc7bb71b64e0d2531e712c8a0
2024-08-22 14:01:43 -07:00
Dean Lee
73f0d647a1 scons: remove -Wno-deprecated-register and -Wno-register (#33356)
remove flag
old-commit-hash: e2305d92e30296cc04bc4e48bc74cf4bbe412cca
2024-08-22 10:55:17 -07:00
Dean Lee
76ba6d619f scons: remove Wno-error=unused-but-set-variable (#33355)
remove Wno-error=unused-but-set-variable
old-commit-hash: 55446438abefed400a2ee5b92a18f3bb00ee45cb
2024-08-22 10:53:17 -07:00
Dean Lee
2871822bd2 drive_helpers.py: iterate button_timers with items() (#33351)
iterate button_timers with items()
old-commit-hash: 13e58d33dbe3a7c64f9ff3201fec0c99b477d37e
2024-08-21 11:03:55 -07:00
Shane Smiskol
093fac6f5a move some car interface tests into opendbc (#33352)
* bump

* this is in opendbc

* so is radar interface

* clean up

* bump

* can import from opendbc

* bump
old-commit-hash: 7af3c6dfee305c991e03bc6cd6ae7449538a4201
2024-08-21 00:30:06 -07:00
Shane Smiskol
d69c1f600b ui: fix wrong path color indexing (#33350)
* fix

* clean up

* clean up

* clean up
old-commit-hash: d8c982242118b25ef2ad0dc25113907a53669593
2024-08-20 20:49:30 -07:00
Shane Smiskol
8d4770a65a move test_lateral_limits.py to opendbc
old-commit-hash: fe51a2fc6272dfe81f5e8669fcd09b536ca7406d
2024-08-20 15:42:25 -07:00
commaci-public
10d31dcd8c [bot] Update Python packages (#33347)
Update Python packages

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: c013d8aa942b0480f266a74d272e9e757f0f8159
2024-08-20 15:28:41 -07:00
Shane Smiskol
a2b6fc200b update car docs in weekly repo maintenance (#33345)
* does this work?

* fix

* fix

* what
old-commit-hash: be8485ca890d63b5fdc3daa405e2009a91a265f4
2024-08-20 15:28:28 -07:00
Dean Lee
a0f8148ae6 SubMaster: add self.services attribute for consistent service management (#33268)
simplify service handing
old-commit-hash: b644555a1d9ef16115df99c442d173f3f8119a33
2024-08-19 16:56:57 -07:00
Dean Lee
2119f7774e cereal/SubMaster: encapsulate frequency management in FrequencyTracker (#33252)
* encapsulate frequency management

* apply reviews

* early return, avoiding unnecessary calculations

* simplify avg freq calc
old-commit-hash: b14fca78e07af4e334af1097fe7e328103226e21
2024-08-19 16:53:13 -07:00
Adeeb Shihadeh
3869d2cdf9 research -> autonomy
old-commit-hash: 7b5f76ecf93731ff5b2ab9fc11bde17fbc23e279
2024-08-19 16:11:20 -07:00
commaci-public
155934bd49 [bot] Update Python packages (#33327)
* Update Python packages

* fix opendbc

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9b2cafe597c0ab871b06ec30e28444773ba1c3a6
2024-08-19 15:25:05 -07:00
Shane Smiskol
0fc63a4cc5 fix labeler syntax
old-commit-hash: 2a7c6bc8bd290c41db200965b394bbc82459e7ef
2024-08-19 14:45:55 -07:00
Shane Smiskol
2f423769da Remove car labeler (#33329)
* can?

* car still makes sense

* bump

* opendbc

* ?

* bump

* revert
old-commit-hash: 799539320d7d7b991bc2c54871f0e0088f2c8d64
2024-08-19 14:45:02 -07:00
Alexandre Nobuharu Sato
94621d2fee Update what-is-a-car-port.md (#33323)
old-commit-hash: 7a40c970688f63bb0a891381a86b7ca892b639f8
2024-08-19 14:28:13 -07:00
Shane Smiskol
89725e7ac2 card: fix memory leak from nested function scoping (#33328)
* stash

* no other leaks! pm.send grows memory usage by ~20mb but that's it

* undo

* clean up
old-commit-hash: ee9977df2f13099d9823bd242cee8f2c52718f85
2024-08-19 14:27:50 -07:00
Adeeb Shihadeh
ce9bea56ea update test
old-commit-hash: 08f64ae30ae263710697cf712958f40751fec15c
2024-08-19 14:19:12 -07:00
Andrei Radulescu
24c18d2c4b agnos updater: set decompress max_length (#33320)
* agnos: decompress max_length

* flash last chunk after eof

* don't decompress more than length

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ba098f509b7d2d21114208f700f2de8b9e45a39a
2024-08-17 16:31:22 -07:00
Sameh Mohamed
725a6fa998 Cleaning up README for tools directory (#33322)
cleaning up readme

Co-authored-by: Sameh <Sameh Mohamed>
old-commit-hash: 542f3d1b441d6373943289cd9505c4d59e050cb1
2024-08-17 15:37:06 -07:00
Shane Smiskol
4f019b5f60 move selfdrive/car to opendbc (#32630)
* move most of /car

* move some car tests

move some car tests

* fix selfdrive/car/tests

* fix selfdrive/controls tests

* fix the rest of the selfdrive tests

* bump opendbc

* fix all tests

* few more non-test references

* remove opcar and move docs to car

fix these debugging scripts

fix docs

* bump opendbc and panda

forgot panda
old-commit-hash: e735a7f3796e208cdc1ecc651ace09e1daf6009a
2024-08-17 00:54:51 -07:00
Shane Smiskol
69e30a5a40 remove import linter (#33319)
* rm import linter, we're done!

* revert

* uv lock

* Revert "uv lock"

This reverts commit 5e46f48e8a5738ea5121da6f2d1c7210dcefe053.
old-commit-hash: bf68eeb596f873f3e6ab497ea42a079c98835f97
2024-08-16 23:57:42 -07:00
Shane Smiskol
93b11c816e car: move conversions.py into common/
old-commit-hash: 1eda5f47362892d5294bd3955dcfd959b2569af6
2024-08-16 15:53:37 -07:00
Shane Smiskol
95224db413 selfdrive/car: ban cereal and capnp (#33208)
* ban cereal and msgq

* common too

* do toyota/values.py

* do all fingerprints

* example without builder

* this still works, but no type checking anymore

* stash

* wtf, how does this work

* okay actually not bad

* safe

* epic!

* stash data_structures.py

* some clean up

* hell yeah

* clean up old file

* add to delete

* delete

This reverts commit 90239b7797ace31ee647a2fdbd67e0c3faa98dcf.

* switch more CarParams stuff over

remove unused

* fix car tests by removing cereal! mypy forgets about dataclass if we wrap it :(

* fix this too

* fix this too

* remove more cereal and add some good hyundai tests

* bunch more typing

* override default with 20hz radar

* temp capnp converter helper

* more lateralTuning

* small union replicator is better than what i was trying, and fixes mypy dynamic typing issues

* can keep all this the same now!

* type ret: CarParams, add more missing structs, revert lateralTuning changes (smaller diff!)

* revert more

* get first enum automatically, but ofc mypy doesn't pick up the new metaclass so can't use :(

would have been `CarParams.NetworkLocation()`

* Revert "get first enum automatically, but ofc mypy doesn't pick up the new metaclass so can't use :("

This reverts commit bb28b228becba932052d2fc5a4389784027435b1.

* remove cereal from car_helpers (TODO: caching)

* remove a bunch of temp lines

* use dataclass_transform!

* remove some car.CarParams from the interfaces

* remove rest of car.CarParams from the interfaces

* same which() API

* sort

* from cereal/cache from fingerprinting!

* more typing

* dataclass to capnp helper for CarParams, cached it since it's kinda slow

* (partial) fix process replay fingerprintig for new API

* latcontrollers take capnp

* forgot this

* fix test_models

* fix unit tests

* not here

* VehicleModel and controller still takes capnp CP since they get it from Params()

* fix modeld test

* more fix

* need to namespace to structs, since CarState is both class and struct

* this was never in the base class?!

* clean that up again

* fix import error

fix import error

* cmts and more structs

* remove some more cereal from toyota + convert CarState to capnp

* bruh this was wrong

* replace more cereal

* EventName is one of the last things...

* replace a bunch more cereal.car

* missing imports

* more

* can fix this typing now

* proper toyota+others CS typing!

* mypy can detect return type of CS.update() now

* fix redeclaration of cruise_buttons type

* mypy is only complaining about events now

* temp fix

* add carControl struct

* replace CarControl

i hope there's no circular imports in hyundai's CC

* fine now

* lol this was wrong too

* fix crash

* include my failed attempts at recursively converting to dataclass (doesn't implicitly convert types/recursively :( )

but attrs does, maybe will switch in the future

* clean up

* try out attr.s for its converter (doesn't work recursively yet, but interesting!)

* Revert "try out attr.s for its converter (doesn't work recursively yet, but interesting!)"

This reverts commit ff2434f7bbd45a4d4bfb21f7d6712d1f1c3bcde9.

* test processes doesn't fail anymore (on toyota)!

* fix honda crash

* stash

* Revert "stash"

This reverts commit c1762af4e776790e4ad1322ad4ce0610157346e0.

* remove a bunch more cereal!

* LET'S GOOO

* fix these tests

* and these

* and that

* stash, something is wrong with hyundai enable

* Revert "stash, something is wrong with hyundai enable"

This reverts commit 39cf327def258e2959fe23cd7a550a858f6d8f03.

* forgot these

* remove cereal from fw_versions

* Revert "remove cereal from fw_versions"

This reverts commit 232b37cd409b55d04b1afc90d4a80c49e710eb56.

* remove rest of the cereal exceptions!

* fix that

* add typing to radard since I didn't realize RI.update() switched from cereal to structs

* and here too!

* add TODO for slots

* needed CS to be capnp, fix comparisons, and type hint car_specific so it's easier to catch type issues (capnp isn't detected by mypy :( )

* remove the struct converter

* save ~4-5% CPU at 100hz, we don't modify after so no need to deepcopy

btw pickle.loads(pickle.dumps()) is faster by ~1% CPU

* deepcopy -> copy: we can technically make a reference, but copy is almost free and less error-prone

saves ~1% CPU

* add non-copying asdict function

* should save ~3% CPU (still 4% above baseline)

* fix that, no dict support

* ~27% decrease in time for 20k iterations on 3X (3.37857 -> 2.4821s)

* give a better name

* fix

* dont support none, capitalize

* sheesh, this called type() on every field

* remove CS.events, clean up

* bump card %

* this was a bug on master!

* add a which enum

* default to pid

* revert

* update refs

* not needed, but consistent

* just Ecu

* don't need to do this in this pr

* clean up

* no cast

* consistent typing

* rm

* fix

* can do this if we're desperate for the last few %

* Revert "can do this if we're desperate for the last few %"

This reverts commit 18e11ac7883a0a56583750b1cc5a2b13011e7299.

* type this

* don't need to convert carControl

* i guess don't support set either

* fix CP type hint

* simplify that
old-commit-hash: 6a15c42143a4764e79df851d797f950a6212f464
2024-08-16 15:13:00 -07:00
Kacper Rączy
8315623257 paramsd: remove usages of llk nested structures (#33317)
* Remove usages of llk nested structures

* Rename to debugFitlerState

* Semicolon

* Initial parameters debugFilterState
old-commit-hash: 51fae363e4f794ced50c3dd00e712aefb5d68a23
2024-08-16 14:25:42 -07:00
Adeeb Shihadeh
11986ddc7f rerun: update to 0.18 (#33316)
old-commit-hash: 4baf6c1be9b4e53ea0a6373d2ddfca4ba853f9f1
2024-08-16 10:46:26 -07:00
Shane Smiskol
6fc97576d6 test_fw_fingerprint.py: fix RAM HD test
old-commit-hash: e6b29964785d836361636cee5c6e70af59d5fda0
2024-08-16 01:00:26 -07:00
Shane Smiskol
e19db6a5eb ecu_addrs.py: fix function argument typing
old-commit-hash: a255b8043aa26c569e947e5e44e8f1dab29d45a5
2024-08-16 00:58:53 -07:00
Shane Smiskol
8dbf878f76 card: fix return signature for update_events
old-commit-hash: c9f9eba61430269371f7d4be430a4bd64b2f2a9d
2024-08-16 00:56:31 -07:00
Shane Smiskol
7931926366 fw_versions.py: mark raw in f-string
old-commit-hash: 6a5bbb261eb8ea8154220e18f47f3e78a65bd664
2024-08-16 00:38:28 -07:00
Shane Smiskol
853a41ddaf radard: remove redundant NoneType check
old-commit-hash: c2ab62c2b2e43f0930564bb27c76554fa8b9810c
2024-08-16 00:37:31 -07:00
Shane Smiskol
b700f3db77 hyundai: test some feature detection (#33315)
test some feature detection
old-commit-hash: 207c77ea93d53b3b5c916f7232503d01492c70c1
2024-08-16 00:30:11 -07:00
Shane Smiskol
b65b1bf908 hyundai: declare type override of cruise_buttons
old-commit-hash: bce11e393fe0298e6b759781b6d4182c70966261
2024-08-16 00:26:40 -07:00
Shane Smiskol
5cea99cb2d toyota: pycapnp enum which should be called
old-commit-hash: f6780fca2fdd4998ed45a6295d64399e9fd23d41
2024-08-16 00:18:37 -07:00
Shane Smiskol
1f04a80d38 run_process_on_route.py: use zstd
old-commit-hash: b41f9f2dfe89cdb94b60dfa8c619829725dc8226
2024-08-16 00:08:17 -07:00