Skip to content

Commit 2673fbe

Browse files
authored
Subaru: add FW for 2019 Impreza with increased torque (commaai#163)
1 parent 1067a18 commit 2673fbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selfdrive/car/subaru/interface.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs):
5353
ret.lateralTuning.pid.kiBP, ret.lateralTuning.pid.kpBP = [[0., 20.], [0., 20.]]
5454
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.2, 0.3], [0.02, 0.03]]
5555
# Certain Impreza / Crosstrek EPS use 3071 max value and do not work with stock value/scaling.
56-
if any(fw.ecu == "eps" and fw.fwVersion in (b'z\xc0\x00\x00', b'z\xc0\x04\x00', b'z\xc0\x08\x00', b'\x8a\xc0\x00\x00') for fw in car_fw):
56+
if any(fw.ecu == "eps" and fw.fwVersion in (b'z\xc0\x00\x00', b'z\xc0\x04\x00', b'z\xc0\x08\x00', b'\x8a\xc0\x00\x00',
57+
b'\x8a\xc0\x10\x00') for fw in car_fw):
5758
ret.safetyConfigs[0].safetyParam = Panda.FLAG_SUBARU_MAX_STEER_IMPREZA_2018
5859
ret.steerActuatorDelay = 0.18 # measured
5960
ret.lateralTuning.pid.kf = 0.00003333

0 commit comments

Comments
 (0)