forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'opendbc/' changes from d68f8ff0c..2ae0327ea
2ae0327ea GitHub actions (commaai#217) fbbba94aa GM: use common gear VALs dacd8b460 Chrysler commonize gear VALs d338b9fba Add support for 2019 Civic Sedan Diesel. Split GAS_PEDAL_2 out to each car. (commaai#215) git-subtree-dir: opendbc git-subtree-split: 2ae0327ea25db36227d52acfaae8927a59d4e5a3
- Loading branch information
Vehicle Researcher
committed
Feb 18, 2020
1 parent
69df34b
commit ab3557e
Showing
19 changed files
with
518 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-16.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
set -e | ||
docker build -t opendbc . | ||
name: "Build" | ||
- run: | | ||
docker run opendbc bash -c "python -m unittest discover opendbc" | ||
name: "Unit tests" | ||
- run: | | ||
docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./flake8_opendbc.sh" | ||
docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./pylint_opendbc.sh" | ||
name: "Python linter" | ||
- run: | | ||
docker run opendbc bash -c "cd opendbc/can/tests/; PYTHONPATH=/ ./test_generator.sh" | ||
name: "Generator test" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
CM_ "IMPORT _bosch_2018.dbc" | ||
|
||
BO_ 316 GAS_PEDAL_2: 8 XXX | ||
SG_ CAR_GAS : 39|8@0+ (1,0) [0|255] "" XXX | ||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX | ||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX | ||
|
||
BO_ 419 GEARBOX: 8 XXX | ||
SG_ GEAR_SHIFTER : 24|8@1+ (1,0) [0|255] "" XXX | ||
SG_ GEAR : 32|8@1+ (1,0) [0|255] "" XXX | ||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX | ||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX | ||
|
||
BO_ 432 STANDSTILL: 7 VSA | ||
SG_ WHEELS_MOVING : 12|1@0+ (1,0) [0|1] "" EON | ||
SG_ BRAKE_ERROR_1 : 11|1@0+ (1,0) [0|1] "" EON | ||
SG_ BRAKE_ERROR_2 : 9|1@0+ (1,0) [0|1] "" EON | ||
SG_ COUNTER : 53|2@0+ (1,0) [0|3] "" EON | ||
SG_ CHECKSUM : 51|4@0+ (1,0) [0|15] "" EON | ||
|
||
BO_ 892 CRUISE_PARAMS: 8 PCM | ||
SG_ CRUISE_SPEED_OFFSET : 31|8@0- (0.1,0) [-128|127] "kph" EON | ||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|3] "" EON | ||
SG_ COUNTER : 61|2@0+ (1,0) [0|15] "" EON | ||
|
||
BO_ 927 RADAR_HUD: 8 RADAR | ||
SG_ ZEROS_BOH : 7|10@0+ (1,0) [0|127] "" BDY | ||
SG_ CMBS_OFF : 12|1@0+ (1,0) [0|1] "" BDY | ||
SG_ ZEROS_BOH3 : 31|32@0+ (1,0) [0|4294967295] "" XXX | ||
SG_ RESUME_INSTRUCTION : 21|1@0+ (1,0) [0|1] "" XXX | ||
SG_ SET_TO_1 : 13|1@0+ (1,0) [0|1] "" BDY | ||
SG_ ZEROS_BOH2 : 11|4@0+ (1,0) [0|1] "" XXX | ||
SG_ APPLY_BRAKES_FOR_CANC : 23|1@0+ (1,0) [0|1] "" XXX | ||
SG_ ACC_ALERTS : 20|5@0+ (1,0) [0|1] "" BDY | ||
SG_ SET_TO_0 : 22|1@0+ (1,0) [0|1] "" XXX | ||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX | ||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX | ||
|
||
BO_ 1029 DOORS_STATUS: 8 BDY | ||
SG_ DOOR_OPEN_FL : 37|1@0+ (1,0) [0|1] "" EON | ||
SG_ DOOR_OPEN_FR : 38|1@0+ (1,0) [0|1] "" EON | ||
SG_ DOOR_OPEN_RL : 39|1@0+ (1,0) [0|1] "" EON | ||
SG_ DOOR_OPEN_RR : 40|1@0+ (1,0) [0|1] "" EON | ||
SG_ TRUNK_OPEN : 41|1@0+ (1,0) [0|1] "" EON | ||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" EON | ||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" EON | ||
|
||
VAL_ 419 GEAR_SHIFTER 2 "S" 32 "D" 16 "N" 8 "R" 4 "P" ; | ||
VAL_ 419 GEAR 26 "S" 20 "D" 19 "N" 18 "R" 17 "P" ; | ||
VAL_ 545 ECON_ON_2 0 "off" 3 "on" ; | ||
VAL_ 662 CRUISE_BUTTONS 7 "tbd" 6 "tbd" 5 "tbd" 4 "accel_res" 3 "decel_set" 2 "cancel" 1 "main" 0 "none" ; | ||
VAL_ 662 CRUISE_SETTING 3 "distance_adj" 2 "tbd" 1 "lkas_button" 0 "none" ; | ||
VAL_ 806 CMBS_BUTTON 3 "pressed" 0 "released" ; | ||
VAL_ 891 WIPERS 4 "High" 2 "Low" 0 "Off" ; | ||
VAL_ 829 BEEP 3 "single_beep" 2 "triple_beep" 1 "repeated_beep" 0 "no_beep" ; | ||
|
||
CM_ "CHFFR_METRIC 330 STEER_ANGLE STEER_ANGLE 0.36 180; CHFFR_METRIC 380 ENGINE_RPM ENGINE_RPM 1 0; CHFFR_METRIC 804 ENGINE_TEMPERATURE ENGINE_TEMPERATURE 1 0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.