diff options
Diffstat (limited to 'uav_sim_step.m')
-rw-r--r-- | uav_sim_step.m | 17 |
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; |