From 607979f158021210bef2afe1e2a7e508ea4c7f2b Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 24 May 2023 16:13:15 +0200 Subject: FIX: subdle bug in traj_constraints.m --- templates/traj_constraints.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/traj_constraints.m') 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) -- cgit v1.2.1