Skip to content

Commit

Permalink
fixing PCC PID values and limits per @tb205gti
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Apr 28, 2020
1 parent ecdc693 commit f1d2165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/PCC_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def update_pdl(self, enabled, CS, frame, actuators, pcm_speed, speed_limit_ms, s
following = False
if self.lead_1:
following = self.lead_1.status and self.lead_1.dRel < MAX_RADAR_DISTANCE and self.lead_1.vLeadK > v_ego and self.lead_1.aLeadK > 0.0
accel_limits = [float(x) for x in calc_cruise_accel_limits(v_ego,following)]
accel_limits = [float(x) for x in calc_cruise_accel_limits(v_ego,following,is_tesla=True)]


accel_limits[1] *= _accel_limit_multiplier(CS, self.lead_1)
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# need fast accel at very low speed for stop and go
# make sure these accelerations are smaller than mpc limits

_A_CRUISE_MAX_V_TESLA = [2.0, 1.6, 1.0, 0.7]
_A_CRUISE_MAX_V_TESLA = [1.775, 1.85, 1.325, 1.25]
_A_CRUISE_MAX_V = [1.2, 1.2, 0.65, .4]
_A_CRUISE_MAX_V_FOLLOWING_TESLA = [1.6, 1.6, 0.65, .4]
_A_CRUISE_MAX_V_FOLLOWING = [1.6, 1.6, 0.65, .4]
Expand Down

0 comments on commit f1d2165

Please sign in to comment.