summaryrefslogtreecommitdiffstats
path: root/Submission files/compute_tube_controller.m
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Submission files/compute_tube_controller.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Submission files/compute_tube_controller.m b/Submission files/compute_tube_controller.m
new file mode 100644
index 0000000..2c567f0
--- /dev/null
+++ b/Submission files/compute_tube_controller.m
@@ -0,0 +1,16 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Copyright (c) 2023, Amon Lahr, Simon Muntwiler, Antoine Leeman & Fabian Flürenbrock Institute for Dynamic Systems and Control, ETH Zurich.
+%
+% All rights reserved.
+%
+% Please see the LICENSE file that has been included as part of this package.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function K_tube = compute_tube_controller(p,params)
+ % YOUR CODE HERE
+ Az = params.model.A;
+ Bz =params.model.B;
+ % Bz = [params.model.B,eye(params.model.nx)];
+ K_tube = -place(Az,Bz,p);
+ % K_tube = K(1:params.model.nu,:);
+end \ No newline at end of file