Skip to content

Commit

Permalink
Update interface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cfranyota authored and Casey Francis committed Jun 4, 2022
1 parent 8b155c2 commit 5ae4d6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions selfdrive/car/honda/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[], disabl
ret.lateralTuning.torque.useSteeringAngle = True
ret.lateralTuning.torque.kp = 2.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.kf = 1.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.05 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.5 / MAX_LAT_ACCEL
ret.lateralTuning.torque.friction = friction
else:
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.1]]
Expand All @@ -124,7 +124,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[], disabl
ret.lateralTuning.torque.useSteeringAngle = True
ret.lateralTuning.torque.kp = 2.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.kf = 1.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.05 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.5 / MAX_LAT_ACCEL
ret.lateralTuning.torque.friction = friction
else:
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.36], [0.108]] #minus 10% from 0.4, 0.12
Expand All @@ -148,7 +148,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[], disabl
ret.lateralTuning.torque.useSteeringAngle = True
ret.lateralTuning.torque.kp = 2.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.kf = 1.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.05 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.5 / MAX_LAT_ACCEL
ret.lateralTuning.torque.friction = friction
else:
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.6], [0.18]]
Expand Down Expand Up @@ -195,7 +195,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[], disabl
ret.lateralTuning.torque.useSteeringAngle = True
ret.lateralTuning.torque.kp = 2.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.kf = 1.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.05 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.5 / MAX_LAT_ACCEL
ret.lateralTuning.torque.friction = friction
else:
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.21], [0.07]]
Expand Down Expand Up @@ -273,7 +273,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[], disabl
ret.lateralTuning.torque.useSteeringAngle = True
ret.lateralTuning.torque.kp = 2.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.kf = 1.0 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.05 / MAX_LAT_ACCEL
ret.lateralTuning.torque.ki = 0.5 / MAX_LAT_ACCEL
ret.lateralTuning.torque.friction = friction
else:
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.2], [0.06]]
Expand Down

0 comments on commit 5ae4d6e

Please sign in to comment.