From d2d174694099a2e9e88124287e2fd32c3cc4e808 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 31 May 2024 15:31:02 +0200 Subject: Update model and weights --- uav_sim_step.m | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'uav_sim_step.m') 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; -- cgit v1.2.1