Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
higher delay compensation
Browse files Browse the repository at this point in the history
update changelog
  • Loading branch information
sshane committed Aug 12, 2021
1 parent c0748a0 commit d8c20ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SA_RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Stock Additions Update 1 - 2021-08-XX (0.8.7)
===
* Update SA to 0.8.7!
* Variable longitudinal lag by speed
* Variable longitudinal delay compensation by speed

Stock Additions Update 3 - 2021-05-03 (0.8.2)
===
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/longcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def update(self, active, CS, CP, long_plan, extras):
# Interp control trajectory
# TODO estimate car specific lag, use .5s for now
if len(long_plan.speeds) == CONTROL_N:
accel_delay = interp(CS.vEgo, [4.4704, 35.7632], [0.15, 0.3]) # 10 to 80 mph
accel_delay = interp(CS.vEgo, [4.4704, 35.7632], [0.2, 0.4]) # 10 to 80 mph
v_target = interp(accel_delay, T_IDXS[:CONTROL_N], long_plan.speeds)
v_target_future = long_plan.speeds[-1]
a_target = interp(accel_delay, T_IDXS[:CONTROL_N], long_plan.accels)
Expand Down

0 comments on commit d8c20ee

Please sign in to comment.