Documentation: Novos gráficos dos experimentos

This commit is contained in:
2023-10-15 23:50:58 -03:00
parent 3f8b339b97
commit 7af917d020
8 changed files with 59 additions and 4 deletions

View File

@@ -1,9 +1,18 @@
close all; clc;
hold on;
title("vf = 100m/s, Threshold = 100m/s²");
xlabel("Amostra");
title("desiredSpeed = 100m/s, threshold = 2m/s²");
xlabel("Amostra (10ms)");
ylabel("Aceleração (m/s²)")
plot(encoderAccel);
plot(imuAccel);
legend({'encoderAccel','imuAccel'},'Location','southwest')
hold off;
ax = gca;
yyaxis right;
ylabel("Velocidade referência (m/s)");
plot(desiredSpeed1);
ax.YAxis(1).Limits = [-15, 15];
ax.YAxis(1).Color = [0, 0, 0];
ax.YAxis(2).Limits = [-100, 100];
ax.YAxis(2).Color = [0, 0, 0];
ax.XAxis.Limits = [0, 500];
legend({'encoderAccel (m/s²)','imuAccel (m/s²)', 'desiredSpeed (m/s)'},'Location','southwest')
hold off;