Commit Graph

1328 Commits

Author SHA1 Message Date
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
Robbe Derks ff1f1ff335
Tesla continental radar DBC (#955)
* replace bosch radar with generator

* add continental and cleanup
2024-03-06 21:12:58 +01:00
Shane Smiskol 17d328c337
Toyota: add value labels for UI distance lines (#1018)
* flipped from PCM_FOLLOW_DISTANCE

* generate

* add 0
2024-03-06 02:20:22 -08:00
Jason Wen 1745ab5182
Hyundai CAN-FD: Lead Relative Speed (#979)
* Hyundai CAN-FD: Lead Relative Speed

* update unit and min/max

* Update hyundai_canfd.dbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-28 23:18:03 -08:00
Justin Newberry 5f096db742
scons: export opendbc_python (#1015)
export
2024-02-28 11:18:08 -08:00
Justin Newberry 0ac21652f2
honda: add missing semicolon (#1014)
missing semicolon
2024-02-26 10:44:43 -08:00
Charles Morgan 5741bc0d1d
GM: Add sport mode status (#1009)
* GM: Add sportmode

* generate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-24 01:34:11 -08:00
Cameron Clough 67be8bf747
Ford: add METRIC_UNITS signal (#1010)
Route with rapidly toggling "show km/h" setting: `e886087f430e7fe7/2024-02-14--15-45-02`
Route starting with mph (no changes): `e886087f430e7fe7/2024-02-14--15-36-40`
Route starting with kph (no changes): `e886087f430e7fe7|2024-02-14--15-38-22`
2024-02-24 01:30:19 -08:00
Irene 0632d5f40f
Toyota: LVSTP definition (#1002)
* add lvstp def

* generator

Co-Authored-By: Eric Day <smartype@gmail.com>

* Shane's suggestion

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* run generator

* yay caught bug

---------

Co-authored-by: Eric Day <smartype@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-24 01:29:54 -08:00
Shane Smiskol b90acdfaad
bump cereal (#1012)
* bump

* fix test
2024-02-24 01:29:02 -08:00
vanillagorillaa 6b7171e4f6
2023 Honda Pilot DBC (#999)
* Honda Pilot 2023: init new DBC

* generate new pilot DBC

* dbc clean up

* update pilot dbc lane line signal and remove can_fd dbc

* unused
2024-02-24 01:18:23 -08:00
Robbe Derks 3653395366
DBC changes for Tesla Raven support (#994)
add new signals
2024-02-23 22:01:30 +01:00
Hoang Bui e2cb86210d
CI: enable docker cache pull (#1011) 2024-02-22 22:47:05 -08:00
Adeeb Shihadeh 8144297f55
pre-commit: autoupdate hooks (#997)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-02-21 09:02:13 -08:00
rusefillc 951ab07fdc
VAG focusing on TCU (#947)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2024-02-09 16:08:34 -08:00