In order to evaluate the performance of the designed PID and FOPID controllers, a series of simulation studies was conducted on the dynamics of the controlled gyroscope, described by Equations (3), for four scenarios.
Each scenario is based on the mathematical model of the plant, i.e., two equations of motion with strong gyroscopic couplings and viscous damping , integrated using the fourth-order Runge–Kutta (RK4) method, with the parameters: , , , . In the same formulation, feed-forward terms also appear: , , where the cross-axis couplings are several tens of times larger than the local damping and dominate the system dynamics.
3.1. Simulation Results
In this scenario, the target’s set position angles (forming reference trajectory) change according to , , where , , corresponding to constant acceleration in the -channel and constant velocity in the -channel. Differentiating, we obtain: , and , , which directly enter the feed-forward compensation terms , . In practice, this means increasing moment demand in the and a constant moment in the , where in the the dominant component is , and in the —it is . Due to the coupling term— the growing acts like a “counter-torque” in the , which requires appropriately larger to maintain a small tracking error. From the stability perspective, the smooth spectrum of the reference signal does not excite high-frequency modes, which reduces sensitivity to the implementation of fractional operators. It is worth emphasizing implementation consistency: the plant loop exactly realizes the above equations with couplings and viscous damping, while the references are generated directly from the given formulas.
For a specified target angular velocity—, the tuning frequency , was applied, due to the slow tracking of the monotonic trend of trajectory changes without excessive differentiation of the object motion. The frequency was determined separately in each scenario so that the control loop bandwidth was matched to the bandwidth of the reference signals and the maneuver dynamics.
The figures below present the obtained time histories of the tilt () and deviation () angles of the gyroscope axis for the fractional-order PID (FOPID) controller.
In
Figure 5a it can be observed that the response coincides with the reference trajectory over the entire horizon, without overshoot or delay. In the tilt channel, the curvature increases with time (increasing acceleration), yet no degradation of tracking accuracy is visible. In the deviation channel, the growth is linear and consistent, which indicates a well-tuned proportional–derivative component in both controllers. The residual error (
Figure 5b) remains at the level of about 10
−3 rad and is constant. It can be concluded that, in this configuration, the system correctly compensates cross-axis couplings and damping, ensuring accurate reproduction of the trajectory in both axes.
In
Figure 6a, the control moments do not reach their limiting values: in the tilt channel they are nearly constant (~25 Nm) with minor correction, while in the deviation channel they decrease linearly to about −160 Nm, reflecting coupling compensation. The tilt error (
Figure 6b) decreases linearly to about −1.2 × 10
−3 rad, while the deviation error remains at about −0.2 × 10
−3 rad. The absence of oscillations and saturation indicates stable gain tuning and effective feed-forward action.
The trajectory in the angle plane of the system (
Figure 7a) almost perfectly coincides with the reference path; the absence of loops and deviations indicates negligible delay and effective coupling compensation. The trajectory is monotonic and smooth, confirming stable operation of the controllers (PID/FOPID) throughout the entire range of motion. In
Figure 7b, the cumulative IAE error increases smoothly, which is the result of a constant, very small tracking error. The absence of breaks in the IAE curve indicates that neither saturation nor oscillations occur.
In Scenario 2, the reference trajectory describes a smooth, low-frequency oscillation of tilt and a slow drift of the target deviation: and . The derivatives are: and , while , . Thus, the feed-forward terms periodically compensate inertia and damping , while in the dominant component is (constant). Due to the gyroscopic coupling , the instantaneous maximum of translates into an additional term in the -channel, which forces symmetric tuning of both loops. The profile is “light”: , , , hence very low frequencies dominate and the controller can operate with a small gain D without the risk of noise amplification. From a qualitative perspective, the IAE is a good measure of the “smoothness” of sinusoidal tracking—the integral of the error magnitude increases mainly at tunings that lag the phase relative to . From the plant dynamics perspective, this scenario verifies the ability to track quasi-stationary motion of the control signal (ISC). This results from the fact that derivative and fractional terms are not strongly excited. For this reason, in the simulation program the chosen tuning frequencies were somewhat higher than in Scenario 1 (here ), to minimize phase lag while maintaining moderate control energy.
In
Figure 8a, in the tilt channel the response faithfully reproduces the sinusoidal trajectory: the extrema occur at the same instants of time, with no visible delay or waveform distortion. In
Figure 8b, in the deviation channel the response to the linear ramp coincides with the reference point by point; the observed error has the form of a constant, very small bias (on the order of 10
−3 rad). In both cases the signals are smooth, with no signs of saturation or oscillations, which indicates properly selected gains and effective compensation of cross-axis couplings.
The control moment
(
Figure 9a) remains nearly constant (~0.53 Nm) with a slight drift, while
varies smoothly in a sinusoidal manner within about ±0.1 Nm; both signals are smooth and show no signs of saturation.
Figure 9b shows the errors:
oscillates symmetrically around zero at the level of single microradians (≈±1 µrad), and
has a constant, small steady-state value of about −4 µrad. The absence of a growing trend and the lack of oscillations indicate stable operation and correct compensation of cross-axis couplings.
Analyzing
Figure 10a, it can be stated that the “Gyroscope” and “Reference” curves overlap almost perfectly; the absence of loops in the parametric plot indicates negligible phase delay and no hysteresis. The trajectory of the angles is smooth, and the transitions through extrema do not introduce noticeable deviations. In
Figure 10b, the cumulative IAE error increases almost linearly to about 1.8 × 10
−4, which indicates a constant, microradian-level error without episodes of abrupt changes. A slight change in slope halfway through the plot correlates with the change in trajectory curvature (
Figure 10a), but does not affect stability.
In the third scenario, describing a spiral descent, the commanded motion is defined by the following relations: , with , and drift . The corresponding derivatives are: , , , . Thus, the feed-forward term compensates the periodic inertia and the coupling with , while —compensates the periodic inertia and the coupling with .
The adopted parameter values are: , , , , . These values cause the -channel to be about three times “faster” than the -channel, which reduces the influence of the coupling term—since faster oscillations of generate larger disturbances in the -equation. This requires more aggressive tuning () and a stronger role of the branch D (or fractional ) in order to reduce phase error. From the standpoint of indicators, IAE increases primarily due to phase mismatches, while ISC reflects the cost of changing the coupling direction at two distinct frequencies. This profile is also a good robustness test against saturation, since the component can momentarily amplify and thus the required compensating moment.
Figure 11a presents the tilt angle, where the response coincides with the trajectory composed of two periodic components, and the effect of the linear component is visible as a slow drift.
For the deviation (
Figure 11b), a clearly varying amplitude can be observed, which confirms the superposition of two frequencies, while the mean value changes in accordance with the linear term. Both curves remain smooth and free from overshoot. Such a set of components generates, in the
plane, a spiral-shaped trajectory.
The dominant control amplitude occurs in the tilt channel (
Figure 12a) (≈±3 Nm, quasi-sinusoidal), while in the deviation channel the range is clearly smaller (≈±0.5 Nm) and slowly modulated. In
Figure 12b, the tilt error oscillates around zero with an amplitude on the order of 10
−5 rad, whereas in the deviation channel it has a larger amplitude. No saturation or fast oscillations are observed; the frequency content of the errors corresponds to the excitation (two periodic components plus a linear component—linear trend). Thus, it can be concluded that the system maintains tracking accuracy at the microradian level with moderate values of control moments.
The trajectory in the
plane (
Figure 13a) forms a series of closed loops of varying size—a typical beating effect resulting from the superposition of two periodic components. The “Gyroscope” and “Reference” curves practically coincide, which indicates negligible delay and no hysteresis. In
Figure 13b, a monotonic increase of the IAE with superimposed modulation of the beating period (frequency difference) can be observed. The slope is nearly constant, and local variations correspond to phases of larger motion amplitude. The absence of breaks confirms the lack of saturation and forced oscillations.
The fourth scenario presents an obstacle-avoidance maneuver using a reference for the deviation angle, constructed from two minimum-jerk segments separated by a pause:
, where and , , .
In the implementation: , , , . The function has zero first and second derivatives at the endpoints, which ensures a smooth start and stop without jumps in reference velocity or acceleration. From these definitions, the derivatives used in the compensation follow: with and and and, in the simulation algorithm, and .
For the tilt angle, a proportional term with respect to the deviation rate is generated: , in the simulation algorithm. To avoid discontinuities under tilt limitation, a smooth saturator is applied: with . This choice guarantees —class continuity of the reference itself and allows one to compute its derivatives without jumps: and the second derivative over time , obtained via the chain rule (in the algorithm, the relations and the derivative of were used). Thanks to this, even when reaches the limiting zone, both and , remain smooth.
Thus defined, enter the feed-forward terms according to the coupled-axis model: in the channel, inertia and damping are compensated together with the gyroscopic coupling from term ; in the channel, analogous compensation is applied . The pause between the acceleration and deceleration phases prevents overlapping of the segments and maintains maneuver symmetry. The adopted values , limit the maximum control demands, while—thanks to the complete derivatives—the feed-forward takes over the majority of the dynamics. This reduces IAE and the moment peaks compared to a hard limiter. The entire formulation remains fully consistent with the coupled-axis model structure used in the previous scenarios.
Figure 14a shows the tilt induced by gyroscopic coupling. Two short-lived deflections of opposite signs occur here, strictly synchronized with the instants of jerk changes (
Figure 14b), after which the signal returns to zero. In both channels, there are no overshoots or oscillations, which indicates properly tuned gains and effective coupling compensation.
In
Figure 14b, the response in the deviation axis faithfully reproduces the minimum-jerk reference profile: the rise and fall are smooth (C
2 continuity), the steady segment is stable, and the error remains negligible and trend-free. It can therefore be concluded that the maneuver with jerk-limited reference is executed stably and with high accuracy in both axes.
In
Figure 15a, short, smooth moment pulses are shown, synchronized with the beginning and end of the minimum-jerk segments in the deviation axis. The amplitude in deviation is larger (≈±8 Nm), while in the tilt channel compensating pulses appear (≈±6 Nm), resulting from gyroscopic couplings. The waveform shape (without sharp corners) is consistent with jerk limitation and indicates the absence of saturation.
Analyzing
Figure 15b, one can observe transient error variations on the order of 10
−5 rad, concentrated around the switching instants, which quickly decay to zero and show no significant trend. The absence of oscillations confirms proper damping and the effectiveness of the feed-forward term in compensating the couplings.
The parametric trajectory
(
Figure 16a) practically coincides with the reference trajectory, and the differences are below the resolution of the plot. The outline has a quasi-rectangular shape with smooth corners, consistent with the minimum-jerk profile with a constant segment. The absence of hysteresis indicates negligible phase lag. The IAE (
Figure 16b) is piecewise linear, with steep increases occurring only in two transient phases, while in the constant segment the derivative of IAE ≈ 0. No peaks or ripples are present, suggesting operation without saturation and with proper damping.
In all four scenarios, the reference trajectories () are explicitly differentiable (except for the saturation points in the S-curve), which makes it possible to directly build feed-forward compensation based on the first and second derivatives over time, as well as the model parameters. In each scenario, the dominant challenge is the cross-coupling term , which, for the parameters used, exceeds the local viscous damping by several tens of times (≈54×), shaping the system dynamics. Therefore, the or branch has a real impact on reducing phase error. The performance indices are consistent: , —where IAE evaluates tracking accuracy and ISC measures control cost. In Scenarios 1–3, IAE increases mainly due to phase delays, and in Scenario 4 additionally due to saturation. The main modeling challenges result from selecting and controller parameters so as to handle references with different bandwidths and strong couplings, while ensuring proper implementation of fractional operators (Oustaloup + Tustin with pre-warping to or discrete Grünwald–Letnikov with memory horizon ), which requires attention to reproducing both modulus and phase, as well as saturation handling and anti-windup in Scenario 4. From a mathematical standpoint, all scenarios can be expressed in a unified state-space form: with , and reference given as (). In the quality loop we analyze , together with IAE and ISC as defined above.