mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 14:22:07 +08:00
Long e2e planner: better xva weights (#24893)
better long xva weights
old-commit-hash: 2c877ce490
This commit is contained in:
@@ -251,7 +251,7 @@ class LongitudinalMpc:
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user