summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2023-05-24 16:13:15 +0200
committerNao Pross <np@0hm.ch>2023-05-24 16:13:15 +0200
commit607979f158021210bef2afe1e2a7e508ea4c7f2b (patch)
tree61cc48b8e9244bb844399294d83bf12cd8dadaf9
parentADD: Add MPC_TS pass task 20 (diff)
downloadmpc_pe-607979f158021210bef2afe1e2a7e508ea4c7f2b.tar.gz
mpc_pe-607979f158021210bef2afe1e2a7e508ea4c7f2b.zip
FIX: subdle bug in traj_constraints.mnpross
Diffstat (limited to '')
-rw-r--r--templates/traj_constraints.m2
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)