Skip to content

Commit

Permalink
New functions added to the live_scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ro3code committed Mar 4, 2021
1 parent afbfa95 commit a06575f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 0 deletions.
Binary file modified live_scripts/ADMIRE_Simulator_Visualization.mlx
Binary file not shown.
22 changes: 22 additions & 0 deletions live_scripts/Lbh.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function Lbh = Lbh(heading_deg, pitch_deg, phi)
% Rotation matrix from NED axis to Aircraft's body axis
sps = sind(heading_deg);
cps = cosd(heading_deg);
sth = sind(pitch_deg);
cth = cosd(pitch_deg);
sph = sind(phi);
cph = cosd(phi);
Lb1 = [...
1 0 0
0 cph sph
0 -sph cph];
L12 = [...
cth 0 -sth
0 1 0
sth 0 cth];
L2h = [...
cps sps 0
-sps cps 0
0 0 1];
Lbh = Lb1 * L12 * L2h;
end
11 changes: 11 additions & 0 deletions live_scripts/Lbw.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function Lbw = Lbw(angle_of_attack, angle_of_sideslip)
% Rotation matrix from Wind-axis to Aircraft's body axis
sa = sind(angle_of_attack);
ca = cosd(angle_of_attack);
sb = sind(angle_of_sideslip);
cb = cosd(angle_of_sideslip);
Lbw = [...
ca*cb -ca*sb -sa
sb cb 0
sa*cb -sa*sb ca];
end
Binary file not shown.
Binary file added live_scripts/simulation_data/departure.mat
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit a06575f

Please sign in to comment.