Commit Graph

1292 Commits

Author SHA1 Message Date
Shane Smiskol fa1d7e7c16
fixup auto labeler (#1089)
* test

* test

* test

* make sure to detect subdirectories like tests/

* test

* this should work

* this should work

* wtf is this

* test

* clean up

* test

* test

* clean up

* clean up
2024-08-19 17:59:36 -07:00
Adeeb Shihadeh ff1c8b4e58 add opendbc/can/ to LIBPATH 2024-08-19 15:18:50 -07:00
Shane Smiskol dc4de1a3d7 rename car label 2024-08-19 14:34:32 -07:00
Adeeb Shihadeh 8866aa7a75 this was getting installed from panda 2024-08-18 12:08:53 -07:00
Adeeb Shihadeh 5ed7a834a4 more robust libdbc linking 2024-08-18 11:32:07 -07:00
Adeeb Shihadeh d377af6c2d pyyaml is unused 2024-08-18 11:01:09 -07:00
Dean Lee 74e042d4e7
Remove Static Library from Build Script (#1084)
remove static lib
2024-08-18 09:24:50 -07:00
Adeeb Shihadeh 357e43f099
simple README (#1083)
* init

* Update README.md
2024-08-17 12:42:16 -07:00
Adeeb Shihadeh 17e21fe4c5
CI: auto PR review (#1082) 2024-08-17 12:16:30 -07:00
Adeeb Shihadeh 3537404a18
no docker (#1081)
* cleanup dependencies

* all

* install

* less

* try this

* slimmm

* skip docker

* silence that one

* disable for now

* e

* fix build

* bring that back

* not ready yet
2024-08-17 12:04:46 -07:00
Adeeb Shihadeh 0a9727a450
one minute ci (#1080)
* speeeeed

* version

* disable

* cppcheck

* pip install

* no update?

* timeout
2024-08-17 10:28:49 -07:00
Shane Smiskol 9a53f08080
move selfdrive/car to opendbc (#1049)
* move most of /car

* rename selfdrive.car imports to opendbc.car

* move some car tests

move some car tests

* fix car tests

* fix actions?

* add panda ignore to pytest

* need these ignores from openpilot

* fix tests for outside pip install (openpilot/local)

forgot
2024-08-17 00:38:33 -07:00
Shane Smiskol 132b1a66b0
Bump pre-commit hooks, more coverage (similar to openpilot) (#1078)
* pytest defaults

* move some stuff to pyproject

* bump codespell

* more like openpilot
2024-08-16 22:24:44 -07:00
Shane Smiskol f4d077b832
CANPacker: msg type is tuple (#1077)
not mutable list
2024-08-07 15:30:23 -07:00
Adeeb Shihadeh 1e9f853615 fix ruff warnings 2024-08-01 23:17:16 -07:00
Shane Smiskol 5c16f7ec29
define project (#1073)
* define project

* spacing

* cleanup
2024-08-01 16:40:51 -07:00
Shane Smiskol a40652d341
move to nested opendbc/ (#1069)
* move to nested opendbc/

* get CI working / similar to msgq

* move dbcs to dbc/

* run pre-commit outside docker

* move generator to dbc/

* fix path in print
2024-07-31 22:46:43 -07:00
Shane Smiskol cd61e17f3c
new docker image structure (#1070)
* new structure

* fix that
2024-07-31 21:14:59 -07:00
Dean Lee 39a5345924
CANParser: remove dependence on cereal (#934)
* move car interfaces to opendbc

* Revert "move car interfaces to opendbc"

This reverts commit 0589ea0dbe.

* remove dependence on cereal

* parse can strings in a c++ helper function

* remove all cereal

* reserve

* use itervalues

* rebase master

* cleanup

* keep the same style

* revert unrelated changes

* truly no cereal!

* same capitalization

same capitalization

* parser: declutter nanos usage (#1067)

thought there'd be more

* revert more

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-31 00:10:20 -07:00
Shane Smiskol ddfcaba92e parser: clean up unused import & variable 2024-07-30 23:28:12 -07:00
Shane Smiskol b84833fb37
parser: declutter nanos usage (#1067)
thought there'd be more
2024-07-30 23:13:17 -07:00
Shane Smiskol 8e9d368841
deprecate busTime (#1065)
* deprecate busTime

* forgot here

* missing these too
2024-07-30 18:16:03 -07:00
eFini cff2af8ff8
clean/remove community (SDSU/Pedal/IPAS) dbc (#1063)
remove community dbc import
2024-07-18 19:23:14 -07:00
Uku Loskit 5ba787024f
Convert tests to pytests (#1060)
* Convert tests to pytests

* cleanup

* args

* clean

* linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-09 21:56:39 +00:00
Hoang Bui de39b143a3
Sconscript: enable openpilot compilation for macOS (#1059)
* working

* fix that

* remove that

* use @loader_path instead

* multiple lines
2024-07-05 11:46:35 -07:00
Dean Lee 776bca184b
Initializes CRC lookup tables at module initialization (#1051)
* Initializes CRC lookup tables at module initialization

* space

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-06-07 19:47:41 -07:00
Shane Smiskol c6d0f1684e
CI: use pytest (#1053)
* pytest

* might need
2024-06-07 19:12:44 -07:00
Dean Lee b4842fd3c5
build message lookup table in DBC (#942)
* build message lookup table in dbc

* constify it

* no need to make this more dense

* Return empty values and log an error for invalid addresses.

log error for undefined signal

add comment

use LOGE

* save one map lookup

* only try what is to be traught

* rename back

* from merge

* show addr

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-06-07 17:59:22 -07:00
Shane Smiskol 8c46e7b603
packer: log undefined address/signal as error (#1052)
* LOGE

* no -
2024-06-07 17:39:20 -07:00
Shane Smiskol eb6af30e17 TODO 2024-06-07 16:50:00 -07:00
Dean Lee 0ccfa9c077
CANParser: fix can data size issue (#799)
fix can data size issues

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-06-07 16:48:37 -07:00
Shane Smiskol f58bc3392c
assert expected openpilot undefined message behavior (#1050)
assert expected openpilot behavior
2024-06-05 23:08:15 -07:00
Dean Lee dfaa27d313
CANPacker: fix incorrect `counters` assignment (#1047)
* fix counter

* catch this issue in test case
2024-06-04 12:02:23 -07:00
Dean Lee 5ef27b4866
improve logging (#1048) 2024-06-04 11:31:42 -07:00
Cameron Clough 9a92d7a232
Ford: add alternate steering message address (#1026)
* Ford: generate DBC For alt steering msg address

- `ford_lincoln_base_pt` includes common messages
- `ford_lincoln_pt_generated` has `SteeringPinion_Data` on `0x7E`
- `ford_edge_pt_generated` has `SteeringPinion_Data` on `0x85`

* Revert "Ford: generate DBC For alt steering msg address"

This reverts commit ca1404cce2.

* Ford Edge alt steering message

* ;
2024-05-17 21:04:06 -07:00
Jason Young 064fac2b59
VW MQB: Additional TSK support (#1028) 2024-05-17 21:00:26 -07:00
Lukas d53c8f558c
Tesla Model3 any door open? (#1044)
* tesla model 3 dbc files

* reduction to the most important signals

* Model3 port wip

* wip

* wip model 3

* wip model 3

* Model 3 wip

* wip model 3

* wip model 3

* wip model 3

* wip model 3 partybus

* bump opendbc

* tesla model 3

* tesla model 3

* tesla model 3

* try to use STW_ACTN_RQ

* new dbc

* dbc update

* remove neutral gear bug

* switch to party bus

* added doorOpen

* VCFRONT_status back to 50hz updated dbc

* anyDoor open use different signal

* added VCRIGHT_status

* indentation

* added Left & Right Seatbelt

* found DriverSeat signal

* found DAS_status on Party can

* found "anyDoorOpen" signal

---------

Co-authored-by: lukas <lukas.loetkolben@gmail.com>
2024-05-16 11:11:10 -07:00
Dean Lee 91a9bb4824
CANParser: 2x faster parsing (#1039)
* update_string() Now 2x Faster

* noneed for wraparound and boundscheck

* cleanup code

d

* formatting

* these have no effect

* minor clean up

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-14 01:07:37 -07:00
Lukas e2408cb272
Tesla Model3 DriverSeat Bucklestatus & BlindSpot (#1041)
* tesla model 3 dbc files

* reduction to the most important signals

* Model3 port wip

* wip

* wip model 3

* wip model 3

* Model 3 wip

* wip model 3

* wip model 3

* wip model 3

* wip model 3 partybus

* bump opendbc

* tesla model 3

* tesla model 3

* tesla model 3

* try to use STW_ACTN_RQ

* new dbc

* dbc update

* remove neutral gear bug

* switch to party bus

* added doorOpen

* VCFRONT_status back to 50hz updated dbc

* anyDoor open use different signal

* added VCRIGHT_status

* indentation

* added Left & Right Seatbelt

* found DriverSeat signal

* found DAS_status on Party can

---------

Co-authored-by: lukas <lukas.loetkolben@gmail.com>
2024-05-12 10:51:52 -07:00
Adeeb Shihadeh 60f3396c9e
run pre-commit autoupdate monthly 2024-05-08 13:54:48 -07:00
Jason Young d058bc9a9f
Chrysler: DBCs for Compact US Wide (#985)
* initial check-in of Tunder's work

* fix typo

* align CRUISE_BUTTONS with other Chrysler

* rename Chrysler CUSW DBCs

* align LKAS_COMMAND with other Chrysler

* corrections to LKAS command message

* corrected length

* LKAS_HUD -> DAS_6

* torque signal offset tweak to match width

* there really is a control bit

* size correction

* Revert "VAG focusing on TCU (#947)"

This reverts commit 951ab07fdc.

* Revert "Revert "VAG focusing on TCU (#947)""

This reverts commit 17513ce74b.

* fix message sizes, sort signals by offset

* roll back accidental VW changes

* Revert "roll back accidental VW changes"

This reverts commit 01be54d2cc.

* ACC_2 doesn't seem valid

* more garbage collection

* add longitudinal control message

* add main switch signal to long control msg

* correct STEERING message size

* ACC_1 -> ACC_HUD

* remove private fusion bus notes

* add HUD signals for distance/lead
2024-04-30 13:56:01 -07:00
Adeeb Shihadeh e0d4be4a62
update to ubuntu 24.04 (#1037)
* update to ubuntu 24.04

* Update .github/workflows/repo.yml

* Update tests.yml

* Update Dockerfile

* bump cereal

* no pyenv

* python3 dev

* vla

* python
2024-04-28 14:04:59 -07:00
Jason Young 7c11cf1b70
VW MQB: Support for preempted HCA state (#1036) 2024-04-26 13:12:49 -07:00
Lukas 83884c2b20
Tesla Model 3 (#1032)
* tesla model 3 dbc files

* reduction to the most important signals

* Model3 port wip

* wip

* wip model 3

* wip model 3

* Model 3 wip

* wip model 3

* wip model 3

* wip model 3

* wip model 3 partybus

* bump opendbc

* tesla model 3

* tesla model 3

* tesla model 3

* try to use STW_ACTN_RQ

* new dbc

* dbc update

* remove neutral gear bug

* switch to party bus

* added doorOpen

* VCFRONT_status back to 50hz updated dbc

* anyDoor open use different signal

* added VCRIGHT_status

* indentation

---------

Co-authored-by: lukas <lukas.loetkolben@gmail.com>
2024-04-07 16:28:19 -07:00
Andrew Goodbody 5c0494d3b5
Update from deprecated github action (#1031)
Switch to the v4 checkout instead of v3 as that is now deprecated
and gives a warning in the job status on github.
https://github.com/marketplace/actions/checkout
2024-04-05 11:00:48 -07:00
Shane Smiskol 5821bd94d0
VW MQB: add adaptive cruise signal (#1029)
add new adaptive cruise signal
2024-03-30 22:08:45 -07:00
Shane Smiskol 3c926e88e8
Toyota: add SDSU state (#1024)
* add state to sdsu message from new firmware, update link

* generate
2024-03-19 17:27:34 -07:00
Adeeb Shihadeh b7c5a51002 run generator 2024-03-18 14:16:27 -07:00
Adeeb Shihadeh 440cd55ce0
pre-commit: autoupdate hooks (#1017)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-03-18 14:10:13 -07:00
Adeeb Shihadeh 4bc29500bc comma.dbc -> community.dbc 2024-03-18 14:09:10 -07:00