Skip to content

Commit

Permalink
Remove Stinger 2.0L
Browse files Browse the repository at this point in the history
  • Loading branch information
emmertex committed Oct 22, 2018
1 parent 845d0e0 commit c3d16d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
11 changes: 0 additions & 11 deletions selfdrive/car/hyundai/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,6 @@ def get_params(candidate, fingerprint):
ret.steerKiBP, ret.steerKpBP = [[0.], [0.]]
ret.steerKpV, ret.steerKiV = [[0.25], [0.05]]
ret.minSteerSpeed = 0.
elif candidate == CAR.KIA_STINGER_2:
ret.steerKf = 0.00004
ret.steerRateCost = 0.5
ret.mass = 3637 * CV.LB_TO_KG + std_cargo
ret.wheelbase = 2.91
ret.steerRatio = 12.6 * 1.15 # 15% higher at the center seems reasonable
tire_stiffness_factor = 0.82
# Speed conversion: 0, 20, 45, 75 mph
ret.steerKpBP, ret.steerKiBP = [[ 0., 9., 20., 34.], [ 0., 9., 20., 34.]]
ret.steerKpV, ret.steerKiV = [[0.15,0.15,0.35,0.35], [0.03,0.03,0.01,0.01]] # 0.15 had some ponging, 0.05 still had some
ret.minSteerSpeed = 0.
elif candidate == CAR.SANTA_FE:
ret.steerKf = 0.00005
ret.steerRateCost = 0.5
Expand Down
7 changes: 1 addition & 6 deletions selfdrive/car/hyundai/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class CAR:
GENESIS_2 = "HYUNDAI GENESIS 2018 type 2" # First User @Saeed <-- Ported by @xx979xx and @ku7
KIA_SORENTO = "KIA SORENTO GT LINE 2018" # First User @ku7 <-- Ported by @ku7 (First Kia in World)
KIA_STINGER = "KIA STINGER GT2 2018" # First User @killian <-- Ported by @ku7 (Third)
KIA_STINGER_2 = "KIA STINGER 2.0L" # First User @James-T <-- Ported by @James-T
SANTA_FE = "HYUNDAI SANTA FE LIMITED 2019" # First User @rickbias <-- Ported by @rickbias
SANTA_FE_2 = "HYUNDAI SANTA FW ULTIMATE 2.0 2019" # First User @nate <-- Ported by @ku7

Expand All @@ -38,9 +37,6 @@ class Buttons:
CAR.KIA_STINGER: [{
67: 8, 127: 8, 304: 8, 320: 8, 339: 8, 356: 4, 358: 6, 359: 8, 544: 8, 576: 8, 593: 8, 608: 8, 688: 5, 809: 8, 832: 8, 854: 7, 870: 7, 871: 8, 872: 8, 897: 8, 902: 8, 909: 8, 916: 8, 1040: 8, 1042: 8, 1056: 8, 1057: 8, 1064: 8, 1078: 4, 1107: 5, 1136: 8, 1151: 6, 1168: 7, 1170: 8, 1173: 8, 1184: 8, 1265: 4, 1280: 1, 1281: 4, 1287: 4, 1290: 8, 1292: 8, 1294: 8, 1312: 8, 1322: 8, 1342: 6, 1345: 8, 1348: 8, 1363: 8, 1369: 8, 1378: 4, 1379: 8, 1384: 8, 1407: 8, 1419: 8, 1425: 2, 1427: 6, 1456: 4, 1470: 8
}],
CAR.KIA_STINGER_2: [{
67: 8, 127: 8, 304: 8, 320: 8, 339: 8, 356: 4, 358: 6, 544: 8, 576: 8, 593: 8, 608: 8, 688: 5, 809: 8, 832: 8, 854: 7, 870: 7, 871: 8, 872: 8, 897: 8, 902: 8, 909: 8, 916: 8, 1040: 8, 1042: 8, 1056: 8, 1057: 8, 1078: 4, 1107: 5, 1136: 8, 1151: 6, 1168: 7, 1170: 8, 1173: 8, 1184: 8, 1265: 4, 1280: 1, 1287: 4, 1290: 8, 1292: 8, 1294: 8, 1312: 8, 1322: 8, 1342: 6, 1345: 8, 1348: 8, 1363: 8, 1369: 8, 1379: 8, 1384: 8, 1407: 8, 1419: 8, 1427: 6, 1456: 4, 1470: 8
}],
CAR.SANTA_FE: [{
67: 8, 127: 8, 304: 8, 320: 8, 339: 8, 356: 4, 544: 8, 593: 8, 608: 8, 688: 6, 809: 8, 832: 8, 854: 7, 870: 7, 871: 8, 872: 8, 897: 8, 902: 8, 903: 8, 905: 8, 909: 8, 916: 8, 1040: 8, 1042: 8, 1056: 8, 1057: 8, 1078: 4, 1107: 5, 1136: 8, 1151: 6, 1155: 8, 1156: 8, 1162: 8, 1164: 8, 1168: 7, 1170: 8, 1173: 8, 1183: 8, 1186: 2, 1191: 2, 1227: 8, 1265: 4, 1280: 1, 1287: 4, 1290: 8, 1292: 8, 1294: 8, 1312: 8, 1322: 8, 1342: 6, 1345: 8, 1348: 8, 1363: 8, 1369: 8, 1379: 8, 1384: 8, 1407: 8, 1414: 3, 1419: 8, 1427: 6, 1456: 4, 1470: 8
}],
Expand All @@ -53,7 +49,7 @@ class Buttons:

CHECKSUM = {
"6B": [CAR.KIA_SORENTO, CAR.GENESIS, CAR.GENESIS_2],
"7B": [CAR.KIA_STINGER, CAR.KIA_STINGER_2, CAR.ELANTRA],
"7B": [CAR.KIA_STINGER, CAR.ELANTRA],
"crc8": [CAR.SANTA_FE, CAR.SANTA_FE_2],
}

Expand All @@ -63,7 +59,6 @@ class Buttons:
CAR.GENESIS_2: dbc_dict('hyundai_kia_generic', None),
CAR.KIA_SORENTO: dbc_dict('hyundai_kia_generic', None),
CAR.KIA_STINGER: dbc_dict('hyundai_kia_generic', None),
CAR.KIA_STINGER_2: dbc_dict('hyundai_kia_generic', None),
CAR.SANTA_FE: dbc_dict('hyundai_kia_generic', None),
CAR.SANTA_FE_2: dbc_dict('hyundai_kia_generic', None),
}

0 comments on commit c3d16d5

Please sign in to comment.