Commit Graph

20 Commits

Author SHA1 Message Date
Shane Smiskol 7e095a90af
Remove Toyota counter exception (#687)
* ignore PRE_COLLISION counter

* remove toyota exception
2022-08-18 22:05:26 -07:00
Adeeb Shihadeh 1619c9a40f
Hyundai: add HDA1 singals (#686)
* Hyundai: Car Port for Tucson Hybrid 2022

* Button send attempt

* Fix bit

* Send button fixed bits

* Define all bytes and only send PAUSE/RESUME

* Use CRUISE_INFO to cancel cruise and resume

* LFA and HDA icons

* Send LFA and HDA icons based on engageability

* Update hyundai_tucson_hev_2022.dbc

* GEAR has 24 bytes only

* Fix CRUISE_INFO copy

* Combine LFA_GREY and LFA_GREEN

* LKAS_BTN -> LFA_BTN

* Little endian

* add to ev6 dbc

* rm old stuff

* another val

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
2022-08-18 17:33:00 -07:00
Adeeb Shihadeh 4195e8f4c9 enabling this broke a bunch of stuff, revert for now 2022-07-21 20:22:52 -07:00
Adeeb Shihadeh 1cf2f5b512 counters are all the same 2022-07-21 18:49:50 -07:00
Jason Young 72d3f935e6
VW PQ: More cleanup and message updates (#668)
* checksum/counter support for ACC_System

* add CHECKSUM to Motor_5

* minor cleanup
2022-07-21 10:58:19 -07:00
Jason Young 2afccacd52
VW PQ: Message updates, checksum and counter support (#633)
* refactor MQB checksum/counter to prep for PQ

* first pass at PQ checksums and counters

* remove checksum and counter alignment checks

* forgot HCA_1

* Revert "remove checksum and counter alignment checks"

This reverts commit 0d30ee9b854c933bf12ee9ca26ad0b0f29956cea.

* don't check counter offset

* tweak comment

* handle checksum not starting at zero

* remove unused argument

* add LDW_Textbits to LDW_1

* Update can/common.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* fix counter again; minimize diff

* additional door-open signals

* add trunk lid state

* update LDW_Status message and signals

* typo

* make XOR checksum generic

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-15 10:29:12 -07:00
Comma Device 3fb3f5e821 ev6: update button message 2022-07-12 15:24:06 -07:00
Adeeb Shihadeh dd5c3f1bbd
packer/parser: generic counter handling (#659)
* packer/parser: generic counter handling

* pedal isn't special
2022-07-11 12:36:43 -07:00
Jason Young fe6241dcc6
refactor per-manufacturer checksum calculation (#650)
* synchronize function signatures

* if-spaghetti reduction

* add to cython

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-06-30 11:31:58 -07:00
Adeeb Shihadeh f4b182dae4 Support arbitrary DBC paths 2022-06-22 14:17:22 -07:00
Shane Smiskol 567601da9a
DBC parser: add back checksum start bit and length checks (#636)
* Revert "remove checksum and counter alignment checks (#634)"

This reverts commit f3232cc32b.

* add logic to ignore checksum check if -1

* think we need size too
2022-06-13 12:11:56 -07:00
Jason Young f3232cc32b
remove checksum and counter alignment checks (#634) 2022-06-09 11:47:53 -07:00
Shane Smiskol c8a851618a
dbc parser: remove address check for interceptor check (#615)
* draft

* remove address

* don't see why this isn't fine
2022-05-25 23:49:48 -07:00
Shane Smiskol 16ef13cec5
DBC parser: add line number to errors (#614)
* add line number to errors

* spacing for backslashes
2022-05-16 16:58:45 -07:00
Adeeb Shihadeh 1599f2e370
Kia EV6 (#567) 2022-05-15 18:26:19 -07:00
Shane Smiskol 490ddedc59
comma body: add checksum state (#613)
* add checksum state for comma body dbc

* ohh these are per byte, nice
2022-05-13 15:55:56 -07:00
Willem Melching c699a06af5
dbc regex, do not escape underscore (#611) 2022-05-13 13:52:36 +02:00
Shane Smiskol b302f6934e
Dynamically parse DBCs (#602)
* initial commit, bring over from deanlee's PR based on newer commit

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

* fix msb, lsb, size

* fix lsb

* clean up

* need this for CI

* add missing body checksum/counter

* get dir from BASEDIR first, then $HOME

* fix CI

* doesn't work

* just hardcode when compiling

* remove process_dbc

* add test for startup time

* test can parsing

* fix

* better

* bye bye dbc.py

* fix startswith

* add function to get dbc names for plotjuggler

* check DBC_FILE_PATH

* revert

* rename

* slightly more consistent at ~0.57 seconds

* make sure the tests make sense

* test ms per line

* use ctre

* Revert "use ctre"

This reverts commit 5e1a4440e465c901403a9717bbdef5b573e9838e.

* compile regex at import time

* add debug print and lower test time

* add comment

* 0.02 ms per line max

* better error messages

* only include what we need, and make it explicit

* check total time

check total time

* no global

* always a list

* not a c loop any more

* default to list

* use hex

* make static (only calculate path once)

* seems to be more consistent now (30-38 ms)

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2022-05-12 17:59:33 -07:00
Joost Wooning f133708455
Modified can parser to run it from PlotJuggler (#352)
* Modified can parser to run it from PlotJuggler

* Assert for parsing DynamicStruct, can ignore checksum/counter messages

* Only write processed dbc on changes, to prevent cmake compiling

* Do not fail on creating new DBC outputs

* Remove print statement

* outer ignore_checksum and ignore_counter

* whitespace
2021-03-09 16:33:37 +01:00
rbiasini e155e01748
Can migration (#199)
* moved CAN to opendbc

* also dbc was needed

* dbc test also added
2019-11-22 21:46:33 -08:00