Add stopping for stopped car tests (#22250)

* add stopping for stopped car tests

* too extreme
old-commit-hash: 2c04176b5f
commatwo_master
HaraldSchafer 4 years ago committed by GitHub
parent e010874de8
commit 97e5c25f13
  1. 18
      selfdrive/test/longitudinal_maneuvers/test_longitudinal.py

@ -16,6 +16,24 @@ def put_default_car_params():
# TODO: make new FCW tests
maneuvers = [
Maneuver(
'approach stopped car at 30m/s',
duration=20.,
initial_speed=30.,
lead_relevancy=True,
initial_distance_lead=120.,
speed_lead_values=[30., 0.],
speed_lead_breakpoints=[0., 1.],
),
Maneuver(
'approach stopped car at 20m/s',
duration=20.,
initial_speed=20.,
lead_relevancy=True,
initial_distance_lead=60.,
speed_lead_values=[20., 0.],
speed_lead_breakpoints=[0., 1.],
),
Maneuver(
'steady state following a car at 20m/s, then lead decel to 0mph at 1m/s^2',
duration=50.,

Loading…
Cancel
Save