Skip to content

Commit

Permalink
better speedoffset (commaai#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stupefacient authored and mostafaayesh committed Jul 6, 2022
1 parent 53b6091 commit 44c8f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/controls/lib/speed_limit_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
_TEMP_INACTIVE_GUARD_PERIOD = 1. # secs. Time to wait after activation before considering temp deactivation signal.

# Lookup table for speed limit percent offset depending on speed.
_LIMIT_PERC_OFFSET_V = [0.1, 0.05, 0.038] # 55, 105, 135 km/h
_LIMIT_PERC_OFFSET_BP = [13.9, 27.8, 36.1] # 50, 100, 130 km/h
_LIMIT_PERC_OFFSET_V = [0.0, 0.1, 0.11, 0.2, 0.18, 0.17, 0.14, 0.065, 0.0]
_LIMIT_PERC_OFFSET_BP = [11.0, 13.4, 20.1, 22.3, 24.58, 29.0, 31.2, 33.4, 35.7]

SpeedLimitControlState = log.LongitudinalPlan.SpeedLimitControlState
EventName = car.CarEvent.EventName
Expand Down

0 comments on commit 44c8f1e

Please sign in to comment.