Mechanical Engineering Department, IST, Islamabad
Mechanical Engineering Department, IST, Islamabad
Mechanical Engineering Department, IST, Islamabad
Saad Akram
200511001
MDA
List of Figures
2. Progress
The progress made in the 2nd phase of project i.e., in the month of September is as
follows:
3. Summary
The 6-DOF equations of motion has been developed partially and implemented on MATLAB to
check for the working of these equations. The equations were further used to find the parameters
like distance travelled by the vehicle in given time, velocity of the vehicle and the net acceleration
of the body. These parameters would be used for simulation purposes. PID controllers provided
by MATLAB tools were used on these equations to observe the behavior of equations to follow a
given path. Three inputs i.e., Rudder Angle, Elevator Angle and RPM were given in, and the
equations yielded the motion plot of the vehicle. Justification for implementing partially completed
equations with PID controllers is this that a better idea about errors can be taken from the results.
With these results, Equations would be further modified and improved to obtain required results.
The framework created so far would be continuously improving based upon the results, creating a
loop to reduce errors and improve working of equations with PID controllers. This phase of
improving the results would be the next stage of the project. Once satisfactory results are obtained
and the PID controllers are tested on various paths i.e., helical, circular, straight etc. then the next
phase of project would start. In the next phase, equations would be adjusted to accommodate
different geometric changes.
Appendix A
Where:
W=Weight
B=Beyonce
clear all;
clc;
W=299;
B=306;
theta=0;
w=0;
v=0;
Xuu=-1.62;
Xwq=-35.5;
p=0;
q=0;
r=0;
m=30.47;
Xqq=-1.93;
Xrr=-1.93;
xg=0;
yg=0;
zg=0.016;
Xvr=35.5;
Xprop=1.8;
double X;
double Y;
double Z;
ax=[];
double ay;
u=[];
for e=1:251
u(e)=0;
end
deltar=0;
phi=0;
Yvv=-1310;
Yrr=0.632;
Yuv=-28.6;
Ywp=35.5;
Yur=5.22;
Ypq=1.96;
Yuudr=9.64;
double sx;
double sy;
double sz;
distx=[251];
disty=[26];
distz=[26];
delta_s=-150;
Zww=-131;
Zqq=-0.632;
Zuw=-0.286;
Zuq=-5.2;
Zvp=-35.5;
Zrp=1.96;
Zuuds=-9.64;
for t=0:38
X = -(W-B)*sin(theta) + Xuu*u(t+1)*abs(u(t+1)) + (Xwq-m)*w*q + (Xqq +m*xg)*q^2+ (Xvr+m)*r
+ (Xrr + m*xg)*r^2 - m*yg*p*q - m*zg*p*r+ Xprop;
ax(t+1)=X/m;
u(t+2)=u(t+1)+ax(t+1)*t;
sx=[(u(t+2)*u(t+2))-(u(t+1)*u(t+1))]/(2*ax(t+1));
distx(t+1)=sx;
se_x=sum(distx);
end
for r=1:38
distx(r+1)=distx(r)+distx(r+1);
end
time=0:38;
subplot(2,2,1)
plot(time,distx);
xlabel('Time')
ylabel('Distance in Global X axis')
subplot (2,2,2)
plot(u);
xlabel('Time')
ylabel('Velocity')
subplot (2,2,3)
plot(ax)
xlabel('Time')
ylabel('acceleration')