* 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>
* Fix checksum for Honda extended CAN. Add test.
* revert packer_parser test
* begin test_checksum
* todo and comments
* convention
* unused
* forgot the s
* again
* cleanup
* remove that too
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* test to make sure we don't throw away updated values if we get multiple can frames from boardd
* call cpp's update_string from update_strings
* fix test
* split in half
fix
* could work
* should be light-speed
* clean up
* clean up
* make sure updated is empty if nothing is updated
updating without a msg is undefined behavior
* should be fast enough
* more test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add updated field
* rename to updated
* draft
* clean up
* function for resetting
* *minor* refactor
* clean up names
* keep track of updated vals in the cc parser
* remove extra lines
* remove ts
* match parser_pyx
* cleaner to just call the cpp function as we don't need to aggregate updated values
* draft
* some tests
* fix test
* clean up
clean up
* test clean up
* add clarifying comments
* Revert "remove ts"
This reverts commit fd4558289d6667a42ab41c4511b0d8fe54eb7fc8.
* fix order
* use vals
* fix dup
* Bugfix in dbc CAN encoder
While encoding, we need to subtract the offset first before we apply the factor.
* Update dbc.py
* Forgot to add import for assert_almost_equal
* test against C++ can packer
* turn into unittest
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Stellantis: Initial WIP DBC
* add more SWCM signals
* ABS yaw rate and accels, auto high beam passthru
* fix STEER_ANGLE signal
* official Stellantis control module names
* Support checksum for extended IDs on 2021 Honda Bosch
Add 2021 Honda Accord Hybrid 2.0T Touring
Update can/common.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Yield a proper 4 bit value.
less space
Revert odyssey changes
Remove RDM signal def
Add new BRAKE_HOLD bits
- From route: 085ac1d942c35910|2021-05-08--17-44-16
Update can/common.cc
* just move to _bosch_2018
* delete that
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Updated LDW_02 signal data
* Updated EPS_01/LH_EPS_03 signal data
* Match driver input torque to prior scale
* More EPS_01 -> LH_EPS_03
Co-authored-by: Comma Device <device@comma.ai>
* 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
* migrate to home pc
* style
* this works
* this is hacky
* why doesn't this work
* this should work
* no lint
* link against libdbc wtih abs path
* new env
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Add Subaru Global 2020 dbc
* Rename duplicate Cruise_Status to Cruise_Status_2
* Unify Subaru Crosstrek 2018 and Subaru Global 2017 dbc
* Add ES_DashState Cruise_On, initial Crosstrek 2020 Hybrid Transmission Gear
* dbc syntax fix
* Add R to gear values
* Add Throttle_Hybrid signal
* Use DBC generator for Subaru Global
* Remove Gear from _subaru_global_2017 template
* Fix packer parser test
* Add Checksum and Counter signals to Throttle_Hybrid
* Add filler signal to Brake_Pedal
* Correct dbc min-max values for subaru global 2017 template
* Correct Subaru global min|max values vol2
* Run generator
* rename _subaru_global_2017.dbc template to _subaru_global.dbc
* subaru global: use standard checksum signal naming convention
* subaru checksum
* ignore first byte
* update other subaru dbcs
* revert outback changes, checksum is in a different byte