diff options
author | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
---|---|---|
committer | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
commit | b4b6aa36e3486a3544acc52419149b5671f841e9 (patch) | |
tree | 66c1783158f23e6d21c77324156fc57e18d4ac67 /Prof_Arya/Trim_Function_Cessna.m | |
parent | f5266f634f4fb4fd39933a83551a01cf446256b8 (diff) | |
download | OpenModelica_HIL-master.tar.gz OpenModelica_HIL-master.tar.bz2 OpenModelica_HIL-master.zip |
Diffstat (limited to 'Prof_Arya/Trim_Function_Cessna.m')
-rw-r--r-- | Prof_Arya/Trim_Function_Cessna.m | 26 |
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 |