summaryrefslogtreecommitdiffstats
path: root/uav_sim_step.m
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-31 15:31:02 +0200
committerNao Pross <np@0hm.ch>2024-05-31 15:31:02 +0200
commitd2d174694099a2e9e88124287e2fd32c3cc4e808 (patch)
tree5bb4a53a820ec32d175845a9062888fdb26b4f96 /uav_sim_step.m
parentAdd worst case (diff)
downloaduav-d2d174694099a2e9e88124287e2fd32c3cc4e808.tar.gz
uav-d2d174694099a2e9e88124287e2fd32c3cc4e808.zip
Update model and weightsHEADmaster
Diffstat (limited to '')
-rw-r--r--uav_sim_step.m17
1 files changed, 11 insertions, 6 deletions
diff --git a/uav_sim_step.m b/uav_sim_step.m
index 7bf0f2b..d7facbf 100644
--- a/uav_sim_step.m
+++ b/uav_sim_step.m
@@ -146,11 +146,16 @@ if do_plots
to_deg = 180 / pi; % radians to degrees
to_rpm = pi / 30; % rad / s to RPM
+ delta = '';
+ if isfield(uncert, 'Delta')
+ delta = 'with $\Delta$';
+ end
+
% Figure for flaps and Euler angles
figure;
sgtitle(sprintf(...
- '\\bfseries Step Response of Flap and Euler Angles (%s)', ...
- ctrl.Name), 'Interpreter', 'latex');
+ '\\bfseries Step Response of Flap and Euler Angles (%s) %s', ...
+ ctrl.Name, delta), 'Interpreter', 'latex');
% Plot limits
alpha_max_deg = params.actuators.ServoAbsMaxAngle * to_deg;
@@ -256,8 +261,8 @@ if do_plots
% Plot step response from z to omega
figure;
sgtitle(sprintf(...
- '\\bfseries Step Response to Propeller (%s)', ...
- ctrl.Name), 'Interpreter', 'latex');
+ '\\bfseries Step Response to Propeller (%s) %s', ...
+ ctrl.Name, delta), 'Interpreter', 'latex');
hold on;
step(P_clp(idx.PlotOmega, idx.InputReference(3)) * to_rpm, T);
@@ -273,8 +278,8 @@ if do_plots
% Figure for position and velocity
figure;
sgtitle(sprintf(...
- '\\bfseries Step Response of Position and Speed (%s)', ...
- ctrl.Name), 'Interpreter', 'latex');
+ '\\bfseries Step Response of Position and Speed (%s) %s', ...
+ ctrl.Name, delta), 'Interpreter', 'latex');
% Plot step response from horizontal reference to horizontal position
subplot(2, 2, 1); hold on;