Skip to content

Commit

Permalink
tune scc
Browse files Browse the repository at this point in the history
  • Loading branch information
neokii committed May 31, 2021
1 parent 980de6b commit ca5b9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/long_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def update(self, CS, lead):
v_lead = max(0.0, lead.vLead)
a_lead = lead.aLeadK

dist_cost = interp(lead.dRel, [4., 20.], [MPC_COST_LONG.DISTANCE/1.75, MPC_COST_LONG.DISTANCE])
dist_cost = interp(lead.dRel, [4., 20.], [MPC_COST_LONG.DISTANCE/2., MPC_COST_LONG.DISTANCE])
dist_cost = interp(v_ego, [60.*CV.KPH_TO_MS, 80.*CV.KPH_TO_MS], [dist_cost, MPC_COST_LONG.DISTANCE])
self.libmpc.set_weights(MPC_COST_LONG.TTC, dist_cost, MPC_COST_LONG.ACCELERATION, MPC_COST_LONG.JERK)

Expand Down

0 comments on commit ca5b9e7

Please sign in to comment.