Ford: simple rate limits (#27446)

* simple limits

* add script

* useless

* remove script

* cleanup comments

* bump curvature limits

* divide by 20

* add comment

* add panda safety

* add back notebook with multi route support

* remove

* bump up low speed up

* comment
pull/27965/head
Shane Smiskol 2 years ago committed by GitHub
parent de62972e2c
commit 3c55f49dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      selfdrive/car/ford/values.py

@ -27,10 +27,11 @@ class CarControllerParams:
STEER_DRIVER_ALLOWANCE = 1.0 # Driver intervention threshold, Nm STEER_DRIVER_ALLOWANCE = 1.0 # Driver intervention threshold, Nm
# Curvature rate limits # Curvature rate limits
# TODO: unify field names used by curvature and angle control cars # The curvature signal is limited to 0.003 to 0.009 m^-1/sec by the EPS depending on speed and direction
# ~2 m/s^3 up, ~-3 m/s^3 down # Limit to ~2 m/s^3 up, ~3 m/s^3 down at 75 mph
ANGLE_RATE_LIMIT_UP = AngleRateLimit(speed_bp=[5, 15, 25], angle_v=[0.004, 0.00044, 0.00016]) # Worst case, the low speed limits will allow 4.3 m/s^3 up, 4.9 m/s^3 down at 75 mph
ANGLE_RATE_LIMIT_DOWN = AngleRateLimit(speed_bp=[5, 15, 25], angle_v=[0.006, 0.00066, 0.00024]) ANGLE_RATE_LIMIT_UP = AngleRateLimit(speed_bp=[5, 25], angle_v=[0.0002, 0.0001])
ANGLE_RATE_LIMIT_DOWN = AngleRateLimit(speed_bp=[5, 25], angle_v=[0.000225, 0.00015])
ACCEL_MAX = 2.0 # m/s^s max acceleration ACCEL_MAX = 2.0 # m/s^s max acceleration
ACCEL_MIN = -3.5 # m/s^s max deceleration ACCEL_MIN = -3.5 # m/s^s max deceleration

Loading…
Cancel
Save