Remove unused MPC_COST_LONG class (#23843)

pull/23851/head
martinl 3 years ago committed by GitHub
parent 49c42c3cd4
commit 160a8cfd58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      selfdrive/controls/lib/drive_helpers.py

@ -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)

Loading…
Cancel
Save