Skip to content
Snippets Groups Projects
Commit 75373ae3 authored by Marco Marchesi's avatar Marco Marchesi
Browse files

Added motor lines on plots

parent c4d4ba1d
No related branches found
No related tags found
No related merge requests found
......@@ -464,6 +464,8 @@ subplot(3,1,1)
plot(main.MEAControllerStatus(main.MEAControllerStatus(:,1)<t_end,1),main.MEAControllerStatus(main.MEAControllerStatus(:,1)<t_end,2),'DisplayName','OBSW')
hold on;
plot(sensorTot.mea.time,sensorTot.mea.estimatedMass,'DisplayName','Simulator')
xline(motor.mainServoData(find(motor.mainServoData(:,2)>0.965,1),1),'k--','OPEN MAIN','HandleVisibility','off')
xline(motor.mainServoData(find(motor.mainServoData(:,2)<0.001,1),1),'k--','CLOSE MAIN','HandleVisibility','off')
legend
title('Estimated Mass')
xlabel('Time [s]')
......@@ -477,6 +479,8 @@ title('Pressure')
legend
xlabel('Time [s]')
ylabel('Pressure [Pa]')
xline(motor.mainServoData(find(motor.mainServoData(:,2)>0.965,1),1),'k--','OPEN MAIN','HandleVisibility','off')
xline(motor.mainServoData(find(motor.mainServoData(:,2)<0.001,1),1),'k--','CLOSE MAIN','HandleVisibility','off')
% apogee
subplot(3,1,3)
plot(main.MEAControllerStatus(main.MEAControllerStatus(:,1)<t_end,1),main.MEAControllerStatus(main.MEAControllerStatus(:,1)<t_end,3),'DisplayName','OBSW')
......@@ -484,6 +488,8 @@ hold on;
plot(sensorTot.mea.time,sensorTot.mea.predictedApogee,'DisplayName','Simulator');
plot(main.NASData(main.NASData(:,1)<t_end,1),-main.NASData(main.NASData(:,1)<t_end,4),'DisplayName','NAS Altitude')
yline(main.MEATarget,'--','SHUTDOWN TARGET','HandleVisibility','off')
xline(motor.mainServoData(find(motor.mainServoData(:,2)>0.965,1),1),'k--','OPEN MAIN','HandleVisibility','off')
xline(motor.mainServoData(find(motor.mainServoData(:,2)<0.001,1),1),'k--','CLOSE MAIN','HandleVisibility','off')
legend
title('Apogee prediction')
xlabel('Time [s]')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment