summaryrefslogtreecommitdiff
path: root/Prof_Arya/Trim_Function_Cessna.m
diff options
context:
space:
mode:
authorSiddharth112352019-09-03 18:09:16 +0530
committerSiddharth112352019-09-03 18:09:16 +0530
commitb4b6aa36e3486a3544acc52419149b5671f841e9 (patch)
tree66c1783158f23e6d21c77324156fc57e18d4ac67 /Prof_Arya/Trim_Function_Cessna.m
parentf5266f634f4fb4fd39933a83551a01cf446256b8 (diff)
downloadOpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.gz
OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.bz2
OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.zip
Pushing entire Modelica HIL Tasks repoHEADmaster
Diffstat (limited to 'Prof_Arya/Trim_Function_Cessna.m')
-rw-r--r--Prof_Arya/Trim_Function_Cessna.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/Prof_Arya/Trim_Function_Cessna.m b/Prof_Arya/Trim_Function_Cessna.m
new file mode 100644
index 0000000..dea77e3
--- /dev/null
+++ b/Prof_Arya/Trim_Function_Cessna.m
@@ -0,0 +1,26 @@
+ % u v w phi theta psi x y z p q r
+ % 1 2 3 4 5 6 7 8 9 10 11 12
+X_Guess = [60 0 0 0 0 0 0 0 0 0 0 0]';
+
+ % e a r thrust
+ % 1 2 3 4
+U_guess = [0 0 0 1000]';
+
+ % V alpha beta phi theta psi x y z p q r gamma
+ % 1 2 3 4 5 6 7 8 9 10 11 12 13
+Y_guess = [60 0 0 0 0 0 0 0 0 0 0 0 0]';
+
+Dx_guess = [0 0 0 0 0 0 0 0 0 0 0 0]';
+
+Ix = [2 4 6 10 11 12]';
+Iu = [2 3]';
+Iy = [1 3 4 6 10 11 12 13]';
+
+Idx = [1 2 3 4 5 6 8 9 10 11 12]';
+
+[x1,u1,y1,dx1] = trim('Cessna_6DOF_trim',X_Guess,U_guess,Y_guess,Ix,Iu,Iy,Dx_guess,Idx);
+
+display(x1)
+display(y1)
+display(u1)
+display(dx1) \ No newline at end of file