Documentation: Novos gráficos dos experimentos
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user