summaryrefslogtreecommitdiffstats
path: root/templates/simulate.m
diff options
context:
space:
mode:
authorYanzhenXiangRobotics <xyz000327@gmail.com>2023-04-27 13:23:44 +0200
committerYanzhenXiangRobotics <xyz000327@gmail.com>2023-04-27 13:23:44 +0200
commit4799bac070dad70d6cd3f47163bc481d1f8f6ffa (patch)
treedccb386d1af49ea1fd6d040b525c5854c9fc0b80 /templates/simulate.m
parentADD: pass task 7 (diff)
downloadmpc_pe-4799bac070dad70d6cd3f47163bc481d1f8f6ffa.tar.gz
mpc_pe-4799bac070dad70d6cd3f47163bc481d1f8f6ffa.zip
ADD: plot traj
Diffstat (limited to '')
-rw-r--r--templates/simulate.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/simulate.m b/templates/simulate.m
index 20c77b2..6100434 100644
--- a/templates/simulate.m
+++ b/templates/simulate.m
@@ -22,6 +22,7 @@ function [Xt,Ut,ctrl_info] = simulate(x0, ctrl, params)
x = params.model.A*x + params.model.B*u;
Xt = [Xt x];
end
+ plot_trajectory(Xt, Ut, ctrl_info, params);
% Ut = u;
% Xt = x;