Commit Graph

1179 Commits

Author SHA1 Message Date
Adeeb Shihadeh 0a7560a2db
pre-commit: autoupdate hooks (#863)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-24 15:14:36 -07:00
Justin Newberry f241a87591
Subaru: Signals Cleanup (#862)
cleanup

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-23 21:05:02 +01:00
Shane Smiskol 2eab8d2a1d
Toyota: fix KINEMATICS signal (#864)
fix signal
2023-06-21 02:20:51 -07:00
Cameron Clough aa044ea945
add poetry pyproject required fields 2023-06-18 16:06:42 +01:00
Shane Smiskol e808a1ec3d
Subaru: add AEB related signals (#858)
* rename signal2

* generate

* generate

* add one more def
2023-06-16 16:25:57 -07:00
Jafar Al-Gharaibeh d03ae519e9
Mazda: update BSM signals and add comments (#815)
* Mazda: add comments to BSM signals

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* undo sort since hard to view diff

* two two bit sigs

* bit better

* didn't mean to remove that

---------

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-15 20:15:54 -07:00
Shane Smiskol 87b821e0e5
Toyota: add ACC dash alerts (#857)
* add temperature dash alerts

* just spaces

* add dust

* add radar adjust
2023-06-15 02:54:25 -07:00
Cameron Clough 7e1f7d5b7e
setup cython linting (#851) 2023-06-14 15:55:49 +01:00
Shane Smiskol 1d483ad98e
Toyota: fix and add some PCM signals (#856)
* fix signal factor and fix signal name

fix signal

* add comments and another sig

* comment
2023-06-14 02:32:56 -07:00
majbthrd d2b4c7cc65
Mazda: add RX-8 (#849) 2023-06-09 13:52:35 -07:00
Shane Smiskol 9ae9fbfe56 hyundai_canfd: fix signal range 2023-06-02 15:22:08 -07:00
Shane Smiskol 13185e52e9 hyundai_canfd: add moving forward/backward bits 2023-06-02 15:21:25 -07:00
Shane Smiskol ae0d02ce2c
parser: fix wrong message name check/print (#846)
* can do this

* or just this

* rm
2023-05-30 16:05:08 -07:00
Kacper Rączy bffa93d782
dbc: add missing include for setlocale (#845) 2023-05-29 20:49:15 -07:00
vanillagorillaa 49b31858a3
Nissan: common DBC (#841)
* initial nissan cleanup

* this is also common

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-27 22:25:33 -07:00
Aaron Logan c8615e8ee4
VW PQ: EPB_1 sort and VAL table (#838)
EPB_1 sort and VAL table
2023-05-27 19:12:17 -07:00
dzid26 c6da67d26d
BMW dbc improvements (#831)
* 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.

* Initial version of actuator dbc. Scalings represent my system gear ratios. See derivation in signal decriptions.

* Transmisssion signals

* Handbrke, units, scaling fixes

* Labeled wheel speeds

* Bmw eXX: filling some gaps (#662)

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
(cherry picked from commit 5c5fc14cbc)
Fixed Counter_464 byte order
2023-05-27 16:35:34 -07:00
Kyle Dibble-Dabney 2db0483993
EV6 dbc updates (#835)
* Update EV6 DBC Messages

* Update EV6 DBC Values
2023-05-27 16:30:19 -07:00
AlexandreSato 01fa913b72
Honda: add alt gears for Thai HR-V hybrid (#814)
* add alt gears for Thai HR-V hybrid

* add generator file

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-25 23:28:32 -07:00
rusefillc e707cbfc73
vw_golf_mk4: a bit of progress (#698)
* vw_golf_mk4: a bit of progress

* weeeeell

* vw_golf_mk4: a bit of progress

* vw_golf_mk4: a bit of progress

* vw_golf_mk4: a bit of progress

* vw_golf_mk4: a bit of progress

* vw_golf_mk4: a bit of progress

* Shift Intent

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-05-25 15:23:03 -07:00
Dean Lee 3ba8e77bd4
dbc: force C locale for numbers. (#839) 2023-05-23 22:03:19 -07:00
Aaron Logan 7e3b518d33
VW PQ: added AWV (AEB) signals (#824)
* Added AWV (AEB) signals

* AWV message length: 8

* AWV message cleanup and VAL table added

* Sort AWV

* update VAL table for AWV

More German stuff
2023-05-19 18:52:58 -07:00
Adeeb Shihadeh 98a700dce5
pre-commit: autoupdate hooks (#836)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-05-16 11:49:57 -07:00
Shane Smiskol f12052306e
Nissan: correct angle signal ranges (#830)
correct signal ranges
2023-05-01 17:17:42 -07:00
Shane Smiskol 23b83b51e3
Toyota: add comment for CLUTCH->ACC_FAULTED (#829)
add comment
2023-04-24 17:29:04 -07:00
Dean Lee 8faada0494
refactor CANParser to improve performance (#795)
* reduce the const of copying signal values in CANParser::query_latest

* pass by reference

* use for range loop

* update_strings

* use assign

* track all signals

* use iterator & pointer to avoid copy SignalValue from vector

* use normal dict for vl_all

* update tests

* fix error in merge master

* change thresholds

reduce thresholds

* Trigger CI

* Trigger CI

* Trigger CI

* cleanup ctor

* reduce threshold

* revert changes to test_parser.py

* change thresholds

* remove update_string() from cython

* comment out test_performance_one_signal

* reduce thresholds

* test

* update

* update

* revert that for now

* update

* update

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-22 17:54:36 -07:00
Adeeb Shihadeh 5adb62bf04
fix parser perf test (#827) 2023-04-21 13:11:53 -07:00
Shane Smiskol d40e429914
Subaru: more infotainment signals (#823)
* new infotainment sigs

* better names

* generate

* another static bit signal (set on a forster)

* generate
2023-04-17 16:50:14 -07:00
Willem Melching 9eec5335a0
DBC parser: assert no duplicate signal names in msg (#821)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-17 09:59:20 -07:00
Willem Melching b7546cd3f4
remove duplicate signal names from Honda DBCs (#822) 2023-04-17 09:56:43 -07:00
Adeeb Shihadeh 7191f4472f
CI: split up jobs + update requirements (#819) 2023-04-15 23:18:45 -07:00
Adeeb Shihadeh 003baff1ac switch to pat 2023-04-15 17:58:40 -07:00
Adeeb Shihadeh 613cd27326
CI: add job to update pre-commit hooks (#817)
* CI: add job to update pre-commit hooks

* rm push trigger
2023-04-15 17:47:34 -07:00
github-actions[bot] 82779a84ea
pre-commit: autoupdate hooks (#818)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-04-15 17:47:23 -07:00
Jason Young 342c0320dd
VW MQB: Cleanup HCA control message (#805)
* VW MQB: Clean up HCA control message

* enable checksum/counter, change scaling

* fix mangled comment character encoding
2023-04-15 11:17:46 -07:00
Shane Smiskol 933d784a0d
Honda Radarless: add a cruise related signal (#807)
* add sigs

* checksum and counter
2023-04-14 02:31:17 -07:00
Adeeb Shihadeh f50e9d78bd
CANParser: add msg name to debug prints (#813) 2023-04-13 14:48:00 -07:00
Adeeb Shihadeh 3c81860270
test parser: bump up one signal threshold 2023-04-08 15:36:23 -07:00
Justin Newberry f9837ff91c
Subaru: add infotainment status message (#809)
* wip

* forgot checksum and stuff

* update

* add blank filler

* fix missing bit

* fix missing bit

* remove filler signals

* convert toval
2023-04-08 11:03:05 -07:00
Shane Smiskol 8a3c9a7251
honda_civic_ex_2022: add BRAKE_MODULE (#811)
* add sigs

* update

* detection
2023-04-07 00:25:28 -07:00
Adeeb Shihadeh 9c851fa9f9
CI: set PYTHONWARNINGS=error (#806) 2023-04-02 10:41:42 -07:00
Dean Lee f01929f0b9
CANParser: improve cython performance (#802)
* improve cython performance

* change thresholds

* Trigger CI

* reduce threshold for test all signals

* change

* reduce min

* change

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* change

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* change

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI
2023-04-02 07:45:51 -07:00
Dean Lee 9a1de83e4b
CANParser: use emplace_back to reduce the cost of copying values (#797) 2023-03-31 13:51:14 -07:00
Dean Lee 0ff25034c4
CANParser: add performance test (#801)
* add benchmarks

* cleanup

* unittest

* thresholds

* add test for update_strings

* change thresholds

* increase to 50000

* trigger ci

* update thresholds

* trigger ci

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-31 13:50:03 -07:00
FLcruising bb3bc2b14c
VW PQ: corrections to EPB_1 (#804)
Fixes many messages, some of which are used as feedback to ACC and "Follow-to-Stop" function.
2023-03-30 12:36:13 -07:00
Dean Lee cc966f5c47
CANPacker: pass values by reference in cython (#803) 2023-03-28 12:33:37 -07:00
Seonghoon Jeong 8c5f9c402c
hyundai_2015_ccan.dbc: fix signal scale (#732)
Update hyundai_2015_ccan.dbc

The scale of signal `CF_Ems_IsgStat2` should be 1.0 instead of 2.0 because two bits are assigned for the signal. Otherwise, the range of the signal must be [0.0|6.0] rather than [0.0|3.0].
2023-03-28 00:34:17 -07:00
rusefillc 636a61b6ab
More on Nissan (#746)
* More on Nissan

* Nissan progress

* Nissan progress

* Torque?!

* Nissan progress

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-03-27 16:19:03 -07:00
Dean Lee 1f0e04f444
libdbc: build both static and shared library (#786) 2023-03-27 16:01:39 -07:00
Willem Melching ee9f7e63b9
dbc.cc: put check for duplicate message name behind flag (#800) 2023-03-27 11:48:45 -07:00