mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-26 08:01:34 +00:00
changed all LQR references to PID
This commit is contained in:
@@ -27,8 +27,8 @@ rolldot = T(:, 16);
|
||||
Servo1 = T(:, 17);
|
||||
Servo2 = T(:, 18);
|
||||
|
||||
LQRx = T(:, 20);
|
||||
LQRy = T(:, 21);
|
||||
PIDx = T(:, 20);
|
||||
PIDy = T(:, 21);
|
||||
|
||||
% Acceleration
|
||||
subplot(3, 1, 1)
|
||||
@@ -99,15 +99,15 @@ figure(4)
|
||||
|
||||
% Servo 1 Position
|
||||
subplot(2, 1, 1)
|
||||
plot(t, LQRx)
|
||||
title('LQRx vs Time')
|
||||
plot(t, PIDx)
|
||||
title('PIDx vs Time')
|
||||
xlabel('Time (ms)')
|
||||
ylabel('LQRx')
|
||||
ylabel('PIDx')
|
||||
|
||||
% Servo 2 Position
|
||||
subplot(2, 1, 2)
|
||||
plot(t, LQRy)
|
||||
title('LQRy vs Time')
|
||||
plot(t, PIDy)
|
||||
title('PIDy vs Time')
|
||||
xlabel('Time (ms)')
|
||||
ylabel('LQRy')
|
||||
ylabel('PIDy')
|
||||
%saveas(gcf,'outputs/Servo Position vs Time.png')
|
||||
|
Reference in New Issue
Block a user