Beruflich Dokumente
Kultur Dokumente
HW1
%scaled polygon:
px=plygnx*scl*2;
py=plygny*scl;
figure; plot(xyz(:,1),xyz(:,2));
hold on;
for i1=1:80:numel(xyz(:,1))
angl=rpy(i1,3);
%rpy is the Euler angles vector
pxx=(px-offst)*cos(angl)-(py-offst)*sin(angl);
pyy=(px-offst)*sin(angl)+(py-offst)*cos(angl);
plot(xyz(i1,1)+pxx,xyz(i1,2)+pyy);
end
hold off;
Put your HW report, .m file, Simulink file, etc. into a folder and rename your folder according to the
format: StudentNo_HW1_IVD.zip
Do not forget to put comments into your Matlab code.
MKT4132
HW1
A part of the Simulink model showing the transformation from angular velocities to the angles:
Here, ei represents the first derivative of Euler parameter ei w.r.t. to time. By using the calculated Euler parameters,
you can also calculate the positions from linear velocities in a similar way. Do not forget to apply the initial positions
to the integrator blocks.
MKT4132
HW1
MKT4132
HW1
MKT4132
HW1
Figure 2. Positions and orientations w.r.t. Earth-Fixed Coordinate System [based on quaternions]
Figure 3. Positions and orientations w.r.t. Earth-Fixed Coordinate System [based on Euler angles]
MKT4132
HW1
In your report (you should prepare it according to the supplied report format), explain how you implemented your
HW, put plots and the code.