Commit Graph

377 Commits

Author SHA1 Message Date
Adeeb Shihadeh 107b96abfc
add some type hints (#774)
* type stubs for common, parser_pyx

* Cleanup imports

* values are indeed floats

* common.pyi complete, added cpp stubs

* parser_pyx.pyi complete

* CANPacker completed

* Holding temp changes...

* remove *.pyi

* just remove skip-file

Co-authored-by: Jason Shuler <jshuler@gmail.com>
2023-01-01 17:09:27 -08:00
Greg Hogan dcab27ca50
toyota: update CAR_MOVEMENT and ODOMETER signal (#748) 2023-01-01 16:10:26 -08:00
Shane Smiskol bb71829028 GM: add comment for ACCAlwaysOne 2022-12-12 17:10:47 -08:00
Shane Smiskol 38fe4d3adc
GM: add steering buttons ACC-related bit (#761)
* add missing acc bit

* this just looks better
2022-12-12 17:03:36 -08:00
Shane Smiskol 1f8aa057bc
Toyota: update LTA signals (#759)
* si

* fix comments

* run generator

* Revert "run generator"

This reverts commit 2b67e4c78ae141fc2bd0c37e9d974cb96d6837e9.

Revert "fix comments"

This reverts commit 7f95fd2cc9027e08816ab68f8fe776db98dc1866.

Revert "si"

This reverts commit f058760d3b11429057800f031fec8b13f1a70d91.

* sort and add LKA_ACTIVE signal (also flip STEER_REQUEST and _2)

* Revert "sort and add LKA_ACTIVE signal (also flip STEER_REQUEST and _2)"

This reverts commit 4ffd0f27db894bb25a7148b59c1c91b0e564d179.

* minimal changes

* run generator
2022-12-08 20:35:26 -08:00
Shane Smiskol 94fff4782b
Toyota: add steer_unavailable EPS states (#756)
* add lxa_unavailable states

* generate

* better to be more descriptive

* better
2022-12-03 02:02:55 -08:00
Shane Smiskol 18e4ceb010
Toyota: fix ACC fault signal comment (#755)
better name and comment
2022-12-03 00:39:47 -08:00
Shane Smiskol 4e3899cbba
Toyota: add ACC faulted signals (#754)
* add acc faulted signal to toyota dbc

* generate
2022-12-02 21:02:00 -08:00
Shane Smiskol 871e054d9a
GM: add cruise state signal (#750)
* add cruise state signal

* values

* accurate
2022-11-22 14:57:13 -08:00
Shane Smiskol 296f190000
GM: add bits for moving backwards (#737)
add bits for moving forward/backwards
2022-11-02 16:17:20 -07:00
Shane Smiskol 2304ecf5b2
GM: add new undefined brake-related signals (#736)
* add some more brake related signals i found

* generate

* standardize name

* add comments

* generate

* fix signal definition
2022-11-02 15:39:33 -07:00
Greg Hogan a70a90016c
Hyundai corner radar DBC (#712)
* corner radar dbc based on palisade

* 0x100/0x200 scale/offset

* update DBC

* generate dbc properly
2022-10-11 16:04:19 -07:00
Shane Smiskol 0c80dc34c3
Add missing checksum and counter signals for PSCMStatus (#715)
* Add missing checksum and counter signals for PSCMStatus

* flip
2022-10-08 22:14:50 -07:00
Shane Smiskol 6fc678148a Add comment about variable length GM message, fix comment syntax 2022-10-07 15:50:33 -07:00
Adeeb Shihadeh eaac172af9
setup generator for hyundai radar dbc (#710)
* setup generator for hyundai radar dbc

* fix indentation
2022-09-21 21:40:31 -07:00
Shane Smiskol 1f47ae8f83
Honda Bosch Radarless: add standstill bit (#699)
* Update honda_civic_ex_2022_can.dbc

* Update honda_civic_ex_2022_can.dbc

* run generator
2022-09-19 11:48:09 -07:00
Shane Smiskol 63581cc6eb
Toyota: add universal units signal (#695)
* Toyota: add universal units signal

* not vehicle units

* Update comment

* Update comment 2

* Update comment 2

* Update signal name for RC and IS
2022-08-29 22:59:48 -07:00
Adeeb Shihadeh 6fad914a10
pre-commit: check generated DBC files (#692) 2022-08-20 21:35:51 -07:00
Jason Shuler 7ae3554ee5
GM: Add Standard Cruse Message, SetSpeed signal (#691)
GM: Add Std CC Message & speed
2022-08-19 23:02:50 -07:00
Shane Smiskol 7e095a90af
Remove Toyota counter exception (#687)
* ignore PRE_COLLISION counter

* remove toyota exception
2022-08-18 22:05:26 -07:00
Ben Scholer 3f722780c3
Toyota: 6MT (manual transmission) signals (#606)
* add clutch the right way

* add comment to GEAR_PACKET
2022-08-17 17:05:31 -07:00
Jason Shuler 541ac4e9a2
GM: Add signals, correct AEB signal sizes and standardize names (#682)
* ECMVehicleSpeed left tire and comment

* GM Speed and AEB Cleanup

* Add CC CruiseActive signal
2022-08-16 22:39:24 -07:00
Shane Smiskol c6665ed11b
GM: fix set speed scaling (#679)
Move scaling into DBC for GM cruise setpoint
2022-08-12 18:29:30 -07:00
Jason Shuler ec48f1a06b
GM: add counter and checksum for ASCMSteeringButton (#678)
Add RC and Checksum for steer btns
2022-08-10 11:54:44 -07:00
Adeeb Shihadeh e0d7cdd695 move the val line too 2022-08-04 22:51:44 -07:00
Adeeb Shihadeh a7db5dfee8 chrysler: add Transmission_Status to base dbc 2022-08-04 22:45:55 -07:00
martinl 24acbb7c2b
Subaru: ACC soft disable (#605)
* Add ES_Distance Cruise_Soft_Disable

* Fix Engine_Stop_Start indent

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-31 19:09:44 -07:00
Adeeb Shihadeh d9a55f4f7c remove one more duplicate 2022-07-29 15:31:08 -07:00
Adeeb Shihadeh 1ac45af6e8 fix duplicate ram dt msg 2022-07-29 15:08:18 -07:00
Adeeb Shihadeh 344a3cfce5 chrysler: fix ram hd base dbc 2022-07-29 14:34:19 -07:00
Adeeb Shihadeh 14cf233cce
chrysler longitudinal signals (#676)
use generator
2022-07-28 21:51:34 -07:00
realfast 736db8a2b2
Chrysler: add Ram HD (#670)
ram hd

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-28 21:29:23 -07:00
martinl 72f5366e41
Subaru: Use SI units for ACC distance signals (#604) 2022-07-28 20:58:19 -07:00
Adeeb Shihadeh e370496206 subaru global: adjust eps torque scale to match lkas command 2022-07-27 14:43:15 -07:00
realfast d1684b1845
Chrysler: add signal for higher precision steering angle (#672)
* Higher Precision

* add to base dbc

* change that for consistency

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-25 13:50:13 -07:00
Adeeb Shihadeh e2465cc701
Subaru: Counter -> COUNTER (#666)
* Subaru: Counter -> COUNTER

* run generator

* update tests

* revert that
2022-07-19 16:55:59 -07:00
Shane Smiskol 8e5cd0d302
Honda Civic 2022: add FCW bits (#651)
* BAdd more 2022 Civic ACC signals

* BRun generator
2022-07-13 18:03:17 -07:00
Adeeb Shihadeh 1e9693ce09 chrysler: common DAS_4 definition 2022-07-05 22:55:34 -07:00
Adeeb Shihadeh be7562acbb chrysler: add ahb bit 2022-07-05 20:05:28 -07:00
Adeeb Shihadeh b2895650c7
Ram 1500 (#640)
* RamInit

* Dasm Fault

* match new chrysler stuff

* little more

* some more

* better names

* Fix angle signal scaling

* generate common stuff

* little more

* some more

* rename

* old bsm definition

Co-authored-by: Jonathan <jraycec@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-07-05 15:40:57 -07:00
Shane Smiskol a7b391cce8
2022 Honda Civic DBC (#620)
* Initial changes to show no-generator diff

* whoops this shoudld be in the 2018 adas dbc

* This is also now in _bosch_2018

* Legacy brake command doesn't exist

* generate

* remove extra line
2022-06-13 21:55:27 -07:00
Shane Smiskol 86a7f93e01
Honda: move some duplicate unique messages to common DBCs (#637)
* move common 330 STEERING_SENSORS: 8 to base dbc

* move common 342 STEERING_SENSORS: 6 to base dbc

* move radar hud to _bosch_2018

* generate
2022-06-13 15:26:07 -07:00
Shane Smiskol 05d53c44fc
Honda: merge Nidec DBCs (#635)
* Merge Nidec DBCs

* remove old file

* fix set mes

* remove comment

* add comments for ACC_HUD

* run generator
2022-06-11 00:54:36 -07:00
Shane Smiskol 58a2c9b2fc
Move common ACC_HUD message to _honda_common (#632)
* move common ACC_HUD to _honda_common

* generate
2022-06-11 00:03:30 -07:00
Shane Smiskol ec0e1f20ba
Honda: move CAR_SPEED to common DBC (#631)
Make 777 common
2022-06-09 20:37:17 -07:00
cydia2020 30aacafa10
Toyota: add follow distance signal (#627)
* toyota pcm follow distance

* update

* probably self-explanatory at this point

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-06-07 17:19:10 -07:00
echo1001 dadceae628
Toyota: add LTA state signal (#622)
* Add LTA Status

* Generate

* Fix typo

* added LTA_STATE value descriptions

* Update generator/toyota/toyota_nodsu_pt.dbc

* update range and definitions

* haven't seen a permanent fault yet

* generate

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-06-02 01:49:17 -07:00
Shane Smiskol 28f03c3cd7
Toyota: add permanent EPS fault status (#625)
add EPS_STATUS 17
2022-05-31 19:38:24 -07:00
Shane Smiskol 247a2a0034
Honda: rename _honda_2017 to _nidec_2017 (#617)
* rename honda to nidec

* generate
2022-05-13 21:38:01 -07:00
cydia2020 cda173c9f7
Toyota UI Display Speed (#607)
* Toyota UI Display Speed

* comment fix
2022-05-11 21:30:17 -07:00
Jason Shuler 3818988802
GM: Add ParkBrake signal for manual parking brakes (#601) 2022-05-03 17:55:25 -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
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
Shane Smiskol eb56fff37a
Honda: remove interceptor scaling (#588)
* update threshold

* generate
2022-04-12 10:22:11 -07: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
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 6b57a33def
GM: add ignition signals used in panda (#549)
* add ignition signals

* fix

* fix

* fix

* fix

* update comment

* add comment for good ignition

* update
2022-02-03 13:35:55 -08:00
Jason Shuler de9899e413
GM: add new ECMPRDNL2 message with more detailed transmission / gear status (#547)
* GM Add PRNDL2 (Adds L)

* Updated GM ECMPRDNL2
2022-02-02 13:37:04 -08:00
Jason Shuler f819e4e4a8
GM: fix ECMEngineStatus.EngineRPM size (#546) 2022-02-01 14:55:35 -08:00
Shane Smiskol e5f99fa5c9
Honda: remove bosch_2020 DBC (#543)
* remove bosch_2020

* generate
2022-01-31 13:18:47 -08:00
Shane Smiskol 9ecd53cd81
Honda: remove Pilot DBC (#539)
* we can use ilx DBC. gear_shifter is defined differently, but with the new signal defs, it parses the same

* generate
2022-01-28 21:14:25 -08:00
Shane Smiskol 0e5e9579e1
Honda: move gas pedal signals to common DBC (#538)
* move GAS_PEDAL signals to common

* run generator
2022-01-28 15:42:56 -08:00
Shane Smiskol 62a376f72b
Honda: move stalk messages to common Honda DBC (#537)
* Move STALK_STATUS_2 to common Honda DBC

* Move STALK_STATUS to common Honda DBC

* generate
2022-01-28 15:08:19 -08:00
Shane Smiskol 24957aa226
Honda: move more messages into common DBC (#536)
* move DOORS_STATUS to common Honda DBC

* move POWERTRAIN_DATA to common Honda DBC

* move VSA_STATUS to common Honda DBC

* move VEHICLE_DYNAMICS to common Honda DBC

* move CRUISE to common Honda DBC

* generator
2022-01-28 14:33:22 -08:00
Shane Smiskol 14993d8939
Honda: create new DBC for common messages (#533)
* Move only duplicate signals to common dbc

* add imports

* final formatting fixes

* run generator!
2022-01-28 11:14:28 -08:00
Shane Smiskol 23fda2afa7
generator: only clear DBCs from output path (#535) 2022-01-27 23:19:11 -08:00
Shane Smiskol 9d6d882342
Honda: remove headers from base DBCs (#532)
* remove headers from base honda DBCs

* generate
2022-01-27 22:25:28 -08:00
Adeeb Shihadeh ed48838d84 Toyota: rename Rav4 DBC with platform name 2022-01-27 10:34:11 -08:00
Adeeb Shihadeh cd2a464c0e Toyota: remove Lexus IS DBC 2022-01-27 10:25:51 -08:00
Adeeb Shihadeh b76f01b0e5 Toyota: remove Prius DBC 2022-01-27 08:56:55 -08:00
Adeeb Shihadeh 560d21f96e generator clear old files 2022-01-27 08:50:12 -08:00
Adeeb Shihadeh bce6bb121a Toyota: unify TNGA-K platform DBCs 2022-01-27 08:49:56 -08:00
Adeeb Shihadeh b72c12864d CT is also same as Rav4 2022-01-27 08:41:05 -08:00
vanillagorillaa 190789f78b
move brake pressure message (#525) 2022-01-26 22:58:42 -08:00
vanillagorillaa 0d0dda76ac
Honda: move kinematics msg into common DBCs (#524)
* kinematics merge

* add for dual nidec too

* doesn't need it

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-26 22:16:23 -08:00
Adeeb Shihadeh e587d946fa same as rav4 now 2022-01-26 21:29:17 -08:00
Shane Smiskol 1070d2a418
Toyota: set scaling factor of EPS signals to 1 (#522)
* move STEER_TORQUE_SENSOR to _toyota_2017

* run generator
2022-01-26 20:59:18 -08:00
Shane Smiskol e2acd0794c
Toyota: use common gear packet for all cars (#464)
* move all gear packets to common toyota

* add imports for nodsu_pt

* run generator

* remove old generated dbc
2022-01-26 16:56:27 -08:00
Jason Shuler f199eb33fc
GM: use generator + add pedal messages (#478)
* GM: Add AEB & Friction Brake
* Camera-based ACC uses the PT bus for friction brake
   Packet structure matches ASCM version from Chassis Bus
* Added AEB message from FFC (Possibly also ASCM)

* GM: Add Pedal Interceptor messages

* Revert "GM: Add Pedal Interceptor messages"

This reverts commit 008f967428.

* GM: Add generated w pedal supp

* GM remove redundant dbc

* forgot to run generator

* Remove old GM PT dbc

* Re-ran generator; added line

* GM PT Imports moved to top
2022-01-24 20:11:34 -08:00
Adeeb Shihadeh e94bd12bd4
Toyota: move gas pedal definitions into common DBC (#505)
* Toyota: move gas pedal definitions into common DBC

* fix those
2022-01-24 14:04:55 -08:00
Shane Smiskol 6ac5f9b1d3
Toyota: fix _comma.dbc indentation (#516)
* clean up comma dbc formatting

* indent

* gen
2022-01-20 23:10:03 -08:00
Shane Smiskol 8b57188e26
Toyota: sort messages by address (#514)
* sort msgs

* generate!
2022-01-20 22:24:30 -08:00
Shane Smiskol c9ffdbe0ff
Toyota: sort DBC imports by specificity (#517)
* do toyota

* generate 🤖
2022-01-20 22:21:03 -08:00
Shane Smiskol bc9915a422
Honda: sort DBC imports by specificity (#518)
* do honda

* run generator
2022-01-20 22:20:22 -08:00
Shane Smiskol f9444d1942
Toyota: add comment for LOCK_STATUS signal (#513)
* add comment

* update comment
2022-01-20 14:26:40 -08:00
Shane Smiskol 5949d4f316
generator: fix imports leaving extra newlines (#508)
* fix imports leaving an extra line

* generate!
2022-01-20 14:12:05 -08:00
Shane Smiskol 45396095e1
Toyota: add DOOR_LOCKS signal (#512)
* add DOOR_LOCKS signal

* run generator
2022-01-20 14:08:31 -08:00
vanillagorillaa a20ed24ea2
Honda: remove redundant Ridgeline DBC (#507) 2022-01-19 22:12:20 -08:00
cydia2020 ed41734a34
Toyota: LKAS_HUD expansion (#501)
* toyota LKAS_HUD signal expansion

* update signal definition

* add more messages
2022-01-19 16:47:48 -08:00
cydia2020 56d4afde5c
Toyota: unify Sienna, Avalon, Highlander Lexus NX, Lexus RX into single DBC (#504)
* remove sienna

* remove nx and rx as well

* highlander as well

* rename avalon dbc to toyota_tnga_k_tss_p_ice

* remove avalon dbc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 11:24:46 -08:00
Adeeb Shihadeh c5eb11a6ec Toyota: remove redundant Avalon DBC 2022-01-19 10:47:55 -08:00
cydia2020 0af1997841
Toyota: unify Lexus NXH, Lexus RXH, HighlanderH, Rav4H into single DBC (#503)
* remove nxh dbc

basically the same as rav4h

* remove highlanderh 2018

* remove rxh dbc

* rename rav4h to tngah

* simpler name

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 10:36:05 -08:00
cydia2020 b91ac61098
Toyota: remove Lexus GS DBC (#502) 2022-01-19 10:29:24 -08:00
Ross Fisher a669dd9fc1
Toyota: LKAS status on gauge cluster (#499) 2022-01-18 19:26:06 -08:00
cydia2020 991032fef0
Toyota: expand BCM signals (#493)
* add some combination meter settings

* add back empty lines
2022-01-18 08:31:19 -08:00
cydia2020 e4cfb2b7ca
toyota reverse camera guidelines (#494) 2022-01-18 08:30:31 -08:00
cydia2020 b04405153f
Toyota: cleanup units (#490)
* unifying unit expressions

kph -> km/h
m/s2 -> m/s^2

* LOW_SPEED_LOCKOUT doesn't have a unit

* unit is determined for ACCEL_Y

* fix unit in comment

* run generator

* deg/s is better
2022-01-13 21:59:50 -08:00
cydia2020 2ffa8dfa4e
Toyota: signal names cleanup (#486) 2022-01-13 19:34:39 -08:00
Shane Smiskol 99206b0b14
Toyota: clean up nodsu DBCs (#488)
* move common messages to _toyota_nodsu_common.dbc

* fix wrong comment addr

* run generator
2022-01-12 10:38:34 -08:00