Question: Solve the following problems by Matlab please. (a) Please write a computer program to solve the flight conditions with respect to the inertial frame for
Solve the following problems by Matlab please.
(a) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Euler angles.
(b) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Quaternions.

2. A UAV developed in TKU has the following specifications: m = 24 kg. I = diag(11:1, 1, diag(6, 5, 4.5). Consider a body-fixed frame attached at the center of mass with a cartesian coordinate system i.j, k), where i points toward the nose of the UAV, k points toward the earth, and j completes the triad. Let F = Xi + Yj Zk be the force exerted on the UAV, M = Li + Mj + Nk be the moment with respect to the center of mass, vuiurk be the velocity of the UAV, and ? q] + rk be the angular velocity of the UAV. Moreover, assume ?. and ? denote the rolling angle, the pitching angle, and the yawing angle, respectively. Suppose the force and the moment satisfy: Y=0 N-0.01 where g 9.81 m/s2, (X, Y, Z) are in N, (L, M, N) are in N-m, and ,, )are in radian. Assume that the UAV, after a wind gust, flies in the following condition:30 m/s, (a) (30 %) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Euler angles. (b) (30 %) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Quaternions. 2. A UAV developed in TKU has the following specifications: m = 24 kg. I = diag(11:1, 1, diag(6, 5, 4.5). Consider a body-fixed frame attached at the center of mass with a cartesian coordinate system i.j, k), where i points toward the nose of the UAV, k points toward the earth, and j completes the triad. Let F = Xi + Yj Zk be the force exerted on the UAV, M = Li + Mj + Nk be the moment with respect to the center of mass, vuiurk be the velocity of the UAV, and ? q] + rk be the angular velocity of the UAV. Moreover, assume ?. and ? denote the rolling angle, the pitching angle, and the yawing angle, respectively. Suppose the force and the moment satisfy: Y=0 N-0.01 where g 9.81 m/s2, (X, Y, Z) are in N, (L, M, N) are in N-m, and ,, )are in radian. Assume that the UAV, after a wind gust, flies in the following condition:30 m/s, (a) (30 %) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Euler angles. (b) (30 %) Please write a computer program to solve the flight conditions with respect to the inertial frame for 1 minute using the method of Quaternions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
