Skip to content

Commit

Permalink
Remove unused MPC_COST_LONG class (commaai#23843)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinl authored Feb 24, 2022
1 parent 49c42c3 commit 160a8cf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions selfdrive/controls/lib/drive_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ class MPC_COST_LAT:
STEER_RATE = 1.0


class MPC_COST_LONG:
TTC = 5.0
DISTANCE = 0.1
ACCELERATION = 10.0
JERK = 20.0


def rate_limit(new_value, last_value, dw_step, up_step):
return clip(new_value, last_value + dw_step, last_value + up_step)

Expand Down

0 comments on commit 160a8cf

Please sign in to comment.