Commit Graph

1217 Commits

Author SHA1 Message Date
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 ca1404cce2713ac0f14ed44acbdd05d071b40a0b.

* 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 17513ce74b74f738eb9fc2e2aa224b0c037fc4f6.

* fix message sizes, sort signals by offset

* roll back accidental VW changes

* Revert "roll back accidental VW changes"

This reverts commit 01be54d2cca63759e230098e35a3cb8d9dcd3409.

* 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
Shane Smiskol 3d1be8427a
CAN packer/parser: clean up after alloc (#1007)
* Update packer_pyx.pyx

* this new also needs to be cleaned up
2024-02-06 19:02:08 -08:00
Eric Brown 7397e466d9
GM: Fix wheel direction signal (#1006)
* Update wheel directions in DBC

* Fix table

* Update name

* Update generator/gm/gm_global_a_powertrain.dbc

* generate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-31 18:36:15 -08:00
garrettpall 3cfd0bf4eb
GM: Add BSM signal on powertrain bus (#993)
* Add GM BSM

* Apply suggestions from code review

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

* Update Generated

* Add note

* gen

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-23 02:24:19 -08:00
Greg Hogan f4b1061ae0
chrysler: more signals (#1001)
* chrysler: more signals

* make checksums and counters big endian

* remove duplicate message

* remove duplicate message
2024-01-20 21:54:48 -08:00
Greg Hogan 26551d2de2
stellantis: new signals (#986) 2024-01-19 17:10:41 -08:00
Justin Newberry 40d9c723d4
Subaru: cruise_rpm and cruise_throttle are 13 bits (#995)
* fix cruise throttle

* and es_status

* generator
2023-12-29 19:14:18 -05:00
Adeeb Shihadeh 89042da0ee
pre-commit: autoupdate hooks (#991)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-26 18:30:40 -08:00
Adeeb Shihadeh 0cff7a8aa2
pre-commit: autoupdate hooks (#989)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-21 21:46:48 -08:00
Adeeb Shihadeh 93b983d49a
pre-commit: autoupdate hooks (#984)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-09 14:39:42 -08:00
Shane Smiskol 5b0c73977f
Toyota: rename LTA torque wind down signal (#983)
generate

cmt

test_angle_cmd_when_enabled
2023-12-04 20:37:56 -08:00
DevTekVE ed3af3da1b
hyundai_kia_generic: sign detection (#963)
* Update hyundai_kia_generic.dbc

Adding speed limit detection data from ioniq phev eur

* Apply suggestions from code review

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-03 19:37:52 -08:00