mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 23:33:58 +08:00
longitudinal MPC: add MAX_T in T_IDXS_LST (#23960)
* longitudinal MPC: add MAX_T in T_IDXS_LST * update refs Co-authored-by: KexianShen <shenkexian@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ ACADOS_SOLVER_TYPE = 'SQP_RTI'
|
||||
# much better convergence of the MPC with low iterations
|
||||
N = 12
|
||||
MAX_T = 10.0
|
||||
T_IDXS_LST = [index_function(idx, max_val=MAX_T, max_idx=N+1) for idx in range(N+1)]
|
||||
T_IDXS_LST = [index_function(idx, max_val=MAX_T, max_idx=N) for idx in range(N+1)]
|
||||
|
||||
T_IDXS = np.array(T_IDXS_LST)
|
||||
T_DIFFS = np.diff(T_IDXS, prepend=[0.])
|
||||
|
||||
@@ -1 +1 @@
|
||||
c6d7afb13c183852f8d61d5f79495b828ed401ed
|
||||
37aa2e3afedc8364d2bbecc5f1b7ed4efec52e30
|
||||
Reference in New Issue
Block a user