1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-25 23:51:35 +00:00

Merge branch 'main' of gitlab.com:lander-team/lander-cpp

This commit is contained in:
2021-10-14 18:14:22 -07:00
5 changed files with 52 additions and 107 deletions

View File

@@ -51,7 +51,7 @@ title('Altitude vs Time')
xlabel('Time (s)')
ylabel('Altitude (m)')
ylim([0 z(1)+5])
%saveas(gcf,'outputs/Accel-Vel-Alt vs Time.png')
saveas(gcf,'outputs/Accel-Vel-Alt vs Time.png')
figure(2)
@@ -75,7 +75,7 @@ plot(t, rolldot)
title('Angular Velocity vs Time')
xlabel('Time (ms)')
ylabel('Angular Velocity (deg/s)')
%saveas(gcf,'outputs/Euler Angles vs Time.png')
saveas(gcf,'outputs/Euler Angles vs Time.png')
legend("yawdot", "pitchdot", "rolldot")
figure(3)
@@ -93,21 +93,4 @@ plot(t, Servo2)
title('Servo 2 Position vs Time')
xlabel('Time (ms)')
ylabel('Servo 2 Position (rad)')
%saveas(gcf,'outputs/Servo Position vs Time.png')
figure(4)
% Servo 1 Position
subplot(2, 1, 1)
plot(t, PIDx)
title('PIDx vs Time')
xlabel('Time (ms)')
ylabel('PIDx')
% Servo 2 Position
subplot(2, 1, 2)
plot(t, PIDy)
title('PIDy vs Time')
xlabel('Time (ms)')
ylabel('PIDy')
%saveas(gcf,'outputs/Servo Position vs Time.png')
saveas(gcf,'outputs/Servo Position vs Time.png')