Shane Smiskol
c53965dfbd
Remove dbc_template.cc ( #612 )
...
remove dbc_template
2022-05-13 15:29:32 -07:00
Willem Melching
c699a06af5
dbc regex, do not escape underscore ( #611 )
2022-05-13 13:52:36 +02:00
Shane Smiskol
bd7589b628
Remove dbc_out
2022-05-12 19:55:49 -07: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
cydia2020
cda173c9f7
Toyota UI Display Speed ( #607 )
...
* Toyota UI Display Speed
* comment fix
2022-05-11 21:30:17 -07:00
Adeeb Shihadeh
9564b74d80
remove extra new line
2022-05-11 16:27:09 -07:00
Adeeb Shihadeh
76b7f2e645
cloudlog support ( #608 )
...
* cloudlog support
* cleanup
2022-05-11 15:53:02 -07:00
Shane Smiskol
919154efe2
Chrysler: add ACC faulted signal ( #600 )
...
* add possible acc faulted signal
* update comments
* update comments
* revert this comment
* update ACC_FAULTED signal
* Revert "update ACC_FAULTED signal"
This reverts commit 46e88a31390444a63abc89da99a47018fdcffcff.
* clean up
2022-05-07 00:57:59 -07:00
Shane Smiskol
601ffd9c21
DBCs: fix duplicate messages ( #603 )
2022-05-06 22:52:00 -07:00
Jason Shuler
3818988802
GM: Add ParkBrake signal for manual parking brakes ( #601 )
2022-05-03 17:55:25 -07:00
MT
7c4cebef37
mazda_radar: fix track msg names and remove unrelated radar msgs ( #599 )
2022-04-29 11:47:19 -07:00
MT
b936931c78
Added new DBC file: mazda_radar.dbc ( #596 )
...
* Added new DBC file: mazda_radar.dbc
* Added missing RVEL_OBJ
* Fixed signal
Co-authored-by: unknown <ryleymcc@shaw.ca>
2022-04-25 10:46:59 -07:00
Igor Biletksyy
bd5b56e891
body: remove cell count
2022-04-21 12:29:00 -07:00
Shane Smiskol
e19ba095c3
Toyota: remove interceptor scaling ( #552 )
...
* set scale to 1 and make signals match
* remove offsets as well
2022-04-20 22:20:01 -07:00
Jason Young
84e0f59441
VW MQB: Populate Kombi_03 signals ( #593 )
2022-04-20 13:09:03 -07:00
cydia2020
88ed84f557
Toyota: fix description of DISTANCE signal ( #592 )
...
* fix description of DISTANCE and arrange ACC_CONTROL in numerical order
* run generator
2022-04-19 11:06:06 -07:00
Adeeb Shihadeh
9f3902657d
cleanup sconstruct
2022-04-19 10:55:38 -07:00
Igor Biletksyy
35cf5c9e5d
body: add cells count, fix bugs
2022-04-15 13:47:41 -07:00
Igor Biletksyy
025e9eed40
body: add motors currents msg
2022-04-14 17:01:39 -07:00
Cameron Clough
bdbf186962
add missing import for std::numeric_limits<...>::max() ( #589 )
2022-04-13 09:48:25 -07:00
Adeeb Shihadeh
004db342a8
CANParser: add flag for bus timeout ( #586 )
...
* CANParser: add flag for bus timeout
* bump to 500ms
* 10x most frequent msg
* little test
* per bus
* Update can/parser.cc
2022-04-12 22:34:27 -07:00
Shane Smiskol
eb56fff37a
Honda: remove interceptor scaling ( #588 )
...
* update threshold
* generate
2022-04-12 10:22:11 -07:00
Jason Young
b928a20513
VW MQB: Detect sport-manumatic shift program ( #587 )
2022-04-08 22:10:47 -07:00
Chris Souers
5a51aa7dde
Fix Honda checksum for extended CAN IDs. Add test function. ( #585 )
...
* 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>
2022-04-06 21:33:57 -07:00
Igor Biletksyy
3154fcc3b3
body: typo
2022-04-05 23:44:26 -07:00
Igor Biletksyy
02b653060c
body: battery percentage and charger connected
2022-04-05 23:35:49 -07:00
Jason Young
87ff863432
allow utf-8 encoded characters ( #581 )
2022-04-05 15:06:23 -07:00
Igor Biletskyy
cc45cc1bc0
body: counter and crc ( #583 )
...
* add to signals
* revert
* add fault byte
* add checksum to packer
* move flags to bits
2022-04-04 17:48:56 -07:00
Igor Biletksyy
3fac5a26b5
body: add checksum and counter
2022-04-04 13:52:07 -07:00
Igor Biletskyy
08b1564ba9
change body address to x250
2022-03-30 23:43:31 -07:00
Igor Biletskyy
560c0793d2
Body: DBC file ( #582 )
...
* change sign
* signed..
* change structure
2022-03-30 16:01:47 -07:00
Adeeb Shihadeh
3f41058f49
not needed most of the time
2022-03-18 20:22:24 -07:00
Greg Hogan
eab58f6f8f
hyundai: fix TCS13 signals ( #576 )
2022-03-07 10:54:49 -08:00
Robbe Derks
908dc0d1f7
Put back parser::lookup_message ( #578 )
2022-03-07 16:18:23 +01:00
Robbe Derks
a10347b9b1
Cleaned up Tesla PR #368 ( #577 )
2022-03-07 14:35:23 +01:00
Adeeb Shihadeh
859fea7ded
CAN FD support in packer + parser ( #568 )
...
* can fd support in packer + parser
* don't need these anymore
* fix pedal crc
* fix dynamic parsing
* cleanup
* packer test
2022-02-28 09:10:34 -08:00
Adeeb Shihadeh
0ccc718b1a
run generator
2022-02-25 20:17:46 -08:00
Ross Fisher
6b784ab5bd
Toyota: comments for LTA steering signals ( #571 )
...
* Documented TSS2 LTA steering mode signals
Dashcam LTA route:
4aa5d874f367adbc|2022-02-20--22-59-18
“Stock” LTA OP
4aa5d874f367adbc|2022-02-21--18-22-18
"Broken" OP LTA route (would not steer):
4aa5d874f367adbc|2022-02-21--18-37-54
Dashcam with disablements (LTA OEM steer overrides)
4aa5d874f367adbc|2022-02-22--14-47-21
Dadcam mode TSS2.5 stock
f15e3c37c118e841|2022-02-18--13-58-56
fix comments
* Update generator/toyota/toyota_nodsu_pt.dbc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-24 23:00:19 -08:00
Adeeb Shihadeh
298c830739
Cleanup dead code in CAN parser + packer ( #573 )
...
* remove duplicate implementation
* Cleanup dead code in CAN parser + packer
* little more
2022-02-24 22:58:37 -08:00
dzid26
a604b15617
BMW updates ( #572 )
...
* Initial test commit
Throttle and steering wheel sensors for K-CAN
* Update BMW E-series
* Rename BMW E-series to BMW E-series K+CAN
* OpenDBC updates
* Added brake pedal pressed
* Cruise control commands
* Delete BMW E-series K+CAN
Replaced with dbc file generated by cabana
* Update BMW E-series K+CAN.dbc
Fixed names
* brake depress flag
* Fixes after cabana broke it
* Fixed names.
Fixed names. Removed space
* Removed module names due to bug/conflict?
One module name left XXX
* Fixed many DBC syntax issues
Removed illegal characters
Removed spaces
* SteeringButtons
* Rename BMW E-series K+CAN.dbc to BMW E-series CAN.dbc
* Cruise counters set to Big endian
* Added bunch of unknown messages
* cruiseControlStatus
* cruise speed scaling
* Added some cruise statuses
* Corrected to throttle
* Updated pedal statuses
* Cruise control
Added cruise control signals
* Dynamic cruise control vehicle option has different can messages
* Added can messages from SZL
* Removed spaces
* Other can messages
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* Steering wheel sensor DSC
* BMW dbc copied from OpenDBC repository https://github.com/dzid26/opendbc-BMW-E8x-E9x/
* Steering Wheel angle and wheels speed
* acc pedal
* size set to 7
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* OpenDBC updates
* Delete BMW E-series CAN dev.dbc
* OpenDBC updates
* OpenDBC updates
* Corrected cruise control pedal pressed vs driver pedal pressed
* OpenDBC updates
* Speed scaling
* unit
* Added F-CAN missing signals - unknown
* Added unknown messages
* OpenDBC updates
* another wheel position - active all the time
* OpenDBC updates
* OpenDBC updates
* Added units; fixed steering speed signal in 0xc4
* OpenDBC updates
* OpenDBC updates
* message size
* Added motor controller CAN message
* Added kph factor to WheelSpeeds from DSC
* Added (invented) OpenPilot request message
* Improved OpenActuator packing
* Removed openSteering messages.
Added gear enums and cruise +5/-5
Renames...
* wiper button
* Added blinkers
* Added lateral and longitudal accelerometers and battery voltage
* Added engine torque
* Added dynamic cruise control torque request signal
* Added ignition terminal states
* OpenDBC updates
* Added GearSelector postion signals inspired by https://www.spoolstreet.com/threads/gs7-program-code-disassembly-project.6045/post-93145
* Added PRND states. Confirmed with https://bmw.spoolstreet.com/threads/gs7-program-code-disassembly-project.6045/post-94403
* Updated ShiftLeverPosition to bit-wise for readability. Added enumeration.
* Added some counter signals
* OpenDBC updates
* Added BMW CANbus overview.
* correction
* Update README.md
* Added Ignition ON, modified steering ratio factor
* Added accelerators and checksum signals in Speed message
* Another acceleration and gyro
* More precise steering factor
* Speed message cleanup
* Added traction control off button message
* Added sender nodes and improved message names
* Added messages from other BMW models
* Added few target nodes
* Added torque factors
* Added DSC statuses
* Tentatively added MDM status signal
* Counters are not cheksums. Checksums and counters revised. SteeringWheelAngle_DSC name reverted!
* Endianness consistency.
2022-02-24 14:18:59 -08:00
Mathew Locoteta
7a8f63468e
Update Jinja2 to fix markupsafe error ( #570 )
2022-02-23 23:28:16 -08:00
Shane Smiskol
f475c355a6
Toyota: add initializing signal for steer torque message ( #566 )
...
* add init signal
* update range
* run generator
* order
* gen
* rename
2022-02-21 16:44:27 -08:00
Shane Smiskol
46a942d679
Honda: unify CRV Hybrid, Civic Bosch Diesel, Accord/H DBCs ( #554 )
...
* clean up formatting
* use same definition as ilx
* move extra messages into accord DBC
* remove comments moved to _bosch_2018
* whoops
* generator
* use civic diesel's definition
2022-02-12 01:41:34 -08:00
Shane Smiskol
74cbcede4d
Hyundai: add definitions for ACCMode ( #563 )
...
* add definitions for ACCMode from greg
* comments are first
2022-02-11 20:00:31 -08:00
Shane Smiskol
c3d3c71aa7
CANParser: fix missing updated values ( #561 )
...
* 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
2022-02-10 14:40:15 -08:00
Shane Smiskol
053a761244
CANParser: add field for all values from a cycle ( #558 )
...
* 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>
2022-02-10 13:01:30 -08:00
Adeeb Shihadeh
f74f93629b
CANParser: minor speedup ( #560 )
2022-02-09 22:46:28 -08:00
Adeeb Shihadeh
24538ceb04
Revert "CANParser: add field for all updated values ( #548 )"
...
This reverts commit da47fe5e45
.
2022-02-09 22:01:25 -08:00
Shane Smiskol
6770f1cdfb
CANParser: remove ts field ( #557 )
...
more usages
2022-02-09 11:59:15 -08:00
Shane Smiskol
da47fe5e45
CANParser: add field for all updated values ( #548 )
...
* 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
2022-02-07 15:36:00 -08:00