Skip to content

Commit

Permalink
Long e2e planner: better xva weights (commaai#24893)
Browse files Browse the repository at this point in the history
better long xva weights
  • Loading branch information
haraschax authored and spektor56 committed Jul 1, 2022
1 parent 73b8d73 commit 7db5064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def set_weights_for_lead_policy(self, prev_accel_constraint=True):
self.solver.cost_set(i, 'Zl', Zl)

def set_weights_for_xva_policy(self):
W = np.asfortranarray(np.diag([0., 10., 1., 10., 0.0, 1.]))
W = np.asfortranarray(np.diag([0., 0.2, 0.25, 1., 0.0, .1]))
for i in range(N):
self.solver.cost_set(i, 'W', W)
# Setting the slice without the copy make the array not contiguous,
Expand Down

0 comments on commit 7db5064

Please sign in to comment.