diff options
author | Nao Pross <np@0hm.ch> | 2023-05-24 16:13:15 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2023-05-24 16:13:15 +0200 |
commit | 607979f158021210bef2afe1e2a7e508ea4c7f2b (patch) | |
tree | 61cc48b8e9244bb844399294d83bf12cd8dadaf9 | |
parent | ADD: Add MPC_TS pass task 20 (diff) | |
download | mpc_pe-npross.tar.gz mpc_pe-npross.zip |
FIX: subdle bug in traj_constraints.mnpross
Diffstat (limited to '')
-rw-r--r-- | templates/traj_constraints.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/traj_constraints.m b/templates/traj_constraints.m index ec197f3..69d19d3 100644 --- a/templates/traj_constraints.m +++ b/templates/traj_constraints.m @@ -11,7 +11,7 @@ function [s_max, y_max, u_max, J_u, df_max, vf_max, traj_feas] = traj_constraint s_max = max(max(abs(x([1,3],:)))); y_max = max(abs(x(2,:))); - u_max = max(abs(u)); + u_max = max(max(abs(u))); J_u = 0; for k=1:size(u,2) |