mirror of
https://gitlab.com/lander-team/lander-sim.git
synced 2025-08-03 03:41:32 +00:00
auto format
This commit is contained in:
@@ -19,7 +19,7 @@ D = 0; % Drag [N]
|
|||||||
stepSize = 0.001; % Simulation Step Size [s]
|
stepSize = 0.001; % Simulation Step Size [s]
|
||||||
|
|
||||||
[h_0, vb, burnStartTime] = burnStartTimeCalc(Tcurve, tb, M0, mdot, Mb)
|
[h_0, vb, burnStartTime] = burnStartTimeCalc(Tcurve, tb, M0, mdot, Mb)
|
||||||
|
|
||||||
%% Simulink
|
%% Simulink
|
||||||
tic
|
tic
|
||||||
simTime = burnStartTime + tb; % Simulation Time [s]
|
simTime = burnStartTime + tb; % Simulation Time [s]
|
||||||
@@ -29,7 +29,7 @@ load_system(model);
|
|||||||
simOut = sim(model);
|
simOut = sim(model);
|
||||||
|
|
||||||
toc
|
toc
|
||||||
%% Output
|
%% Output
|
||||||
% Acceleration
|
% Acceleration
|
||||||
figure(1)
|
figure(1)
|
||||||
plot(simOut.a)
|
plot(simOut.a)
|
||||||
@@ -74,7 +74,7 @@ for i = 1 : length(simOut.h.Data)
|
|||||||
drawnow limitrate
|
drawnow limitrate
|
||||||
|
|
||||||
|
|
||||||
% Write Animation to gif, set to zero when testing since its slow to render.
|
% Write Animation to gif, set to zero when testing since its slow to render.
|
||||||
outframes = 0;
|
outframes = 0;
|
||||||
if outframes
|
if outframes
|
||||||
% Write to the GIF File
|
% Write to the GIF File
|
||||||
|
Reference in New Issue
Block a user