mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-25 23:51:35 +00:00
started debugging
This commit is contained in:
@@ -27,6 +27,9 @@ rolldot = T(:, 16);
|
||||
Servo1 = T(:, 17);
|
||||
Servo2 = T(:, 18);
|
||||
|
||||
LQRx = T(:, 19);
|
||||
LQRy = T(:, 20);
|
||||
|
||||
% Acceleration
|
||||
subplot(3, 1, 1)
|
||||
plot(t, az)
|
||||
@@ -91,3 +94,20 @@ 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, LQRx)
|
||||
title('LQRx vs Time')
|
||||
xlabel('Time (ms)')
|
||||
ylabel('LQRx')
|
||||
|
||||
% Servo 2 Position
|
||||
subplot(2, 1, 2)
|
||||
plot(t, LQRy)
|
||||
title('LQRy vs Time')
|
||||
xlabel('Time (ms)')
|
||||
ylabel('LQRy')
|
||||
%saveas(gcf,'outputs/Servo Position vs Time.png')
|
||||
|
Reference in New Issue
Block a user