A. System Identification
Last updated
Was this helpful?
Last updated
Was this helpful?
The Quanser Aero Experiment can be configured as a conventional dual-rotor helicopter, as shown in Figure 1a. The front rotor that is horizontal to the ground predominantly affects the motion about the pitch axis while the back or tail rotor mainly affects the motion about the yaw axis (about the vertical shaft).
The tail rotor in helicopters is also known as the anti-torque rotor because it is used to reduce the torque that the main rotor generates about the yaw. Without this, the helicopter would be difficult to stabilize about the yaw axis. The rotors on the Quanser Aero Experiment are the same size and equidistant from the vertical shaft, the tail rotor also generates a torque about the pitch axis. As a result, both the front and back/tail rotors generate torques on each other.
The Quanser 2D AERO is designed with its mass distribution well balanced from the front and back rotors such that its center of gravity is at the mid-point between the two rotors. However, a vertical offset of the cg location is included to result in pitch stiffness from the pendulum effect as depicted in Figure 1b.
The free-body diagram of the Quanser Aero Experiment is illustrated in Figure 2.
The following conventions are used for the modeling:
The equations of motion can be approximated as:
For pitch axis:
For yaw axis:
where the torques acting on the pitch and yaw axes are
The parameters used in the EOMs above are:
The step response of a first-order transfer function
The general equation of motion of a second-order system with input u(t) is described by
The characteristic equation from Equation (10) is obtained as,
The typical response of an underdamped second order system to a step input with zero initial conditions is shown in Figure 4. The natural frequency and damping ratio can be obtained from transient response using Figure 4 as follows:
The period of the oscillations in a system response can be found using the equation
and the undamped natural frequency is
The damping ratio of a second-order system can be found from the transient response to a step input. For a typical second-order underdamped system, the subsidence ratio (i.e. decrement ratio) is defined as
Pitch Axis: Apply a voltage only to the pitch rotor motor and get the system response in the pitch axis. The resulting second-order equation of motion is
Taking its Laplace transform gives
The pitch step response transfer function matches the standard second-order transfer function in Equation (10). Thus, the damping ratio and natural frequency of the pitch axis can be determined from the pitch step response or alternatively from free response to an initial pitch disturbance.
Yaw Axis: The yaw-only equation of motion by applying a voltage input only to the yaw rotor motor is
In terms of angular rate, the equation becomes
and solving for the speed we get
The yaw transfer function matches the first-order transfer function in Equation (7). Thus, the time constant of the yaw axis can be determined from the yaw step response or alternatively from the yaw response to a yaw rate disturbance.
Solving for the normalized thrust gain we get
Discrete Derivative Method: The thrust gain parameter can be obtained as
or,
Discrete Derivative Method: The thrust gain parameter can be obtained as
First download the zip file below and extract in your group folder. The experiment data is automatically generated in the folder MATLAB is opened to.
Unlock the pitch axis. Lock the yaw axis.
Open the pitch_impulse SIMULINK file.
Set the amplitude gain block to 18. This applies a pulse input of -18 V for 1.5 sec in the pitch axis.
Select simulation time 30 sec.
Copy aero_pitch_impulse.mat
to your folder.
If the data is not smooth/clean, repeat steps 3-7 with a different pulse voltage.
Close the SIMULINK model. DO NOT SAVE THE CHANGE.
Data is saved in following order: 1: Time 2: Pitch motor input (V) 3: Pitch Angle (rad) 4: Pitch Speed (rad/s)
Lock the yaw axis.
Open the pitch_step SIMULINK file.
Apply a step input in the pitch axis. If your setup is Aero1, apply 18 V. If your setup is Aero2, apply 14 V.
Select simulation time 100 sec.
Note: Pitch angle has to reach steady state i.e. constant pitch angle, or you may have to increase simulation time. If steady state has reached, you can end simulation earlier.
Copy aero_pitch_step.mat
to your folder.
If the data is not smooth/clean, repeat steps 3-7 with a different step voltage.
Close the SIMULINK model. DO NOT SAVE THE CHANGE.
Data is saved in following order: 1: Time 2: Pitch motor input (V) 3: Pitch Angle (rad) 4: Pitch Speed (rad/s)
Unlock the yaw axis. Lock the pitch axis.
Open the yaw_step SIMULINK file.
Apply a step input in the yaw axis. If your setup is Aero1, pick a voltage in the range 15-20 V. If your setup is Aero2, pick a voltage in the range 10-11.5 V.
Select simulation time 100 sec.
Copy aero_yaw_step.mat
to your folder.
If the data is not smooth/clean, repeat steps 3-7 with a different step voltage.
Close the SIMULINK model. DO NOT SAVE THE CHANGE.
Data is saved in following order: 1: Time 2: Yaw motor input (V) 3: Yaw Angle (rad) 4: Yaw Speed (rad/s)
Table B.1 and Table B.2.
Compare the normalized thrust gains obtained from the steady-state method and discrete derivative method and explain any differences.
The system is in static equilibrium when it is horizontal and parallel to the ground with zero pitch angle. Any change in pitch angle gives rise to a restoring moment from the pendulum effect given by restoring pitch moment due to pitch angle change =
The helicopter is horizontal and parallel with the ground when the pitch angle is zero, i.e., .
The pitch angle increases positively, , when the front rotor is moved upwards and the body rotates clockwise (CW) about the Y axis.
The yaw angle increases positively, , when the body rotates counter-clockwise (CCW) about the Z axis.
Pitch increases, , when the front rotor voltage is positive .
Yaw increases, , when the back (or tail) rotor voltage is positive, .
When voltage is applied to the pitch motor, , the speed of rotation results in a force, that acts normal to the body at a distance from the pitch axis as shown in Figure 2. The rotation of the propeller generates a torque about the pitch rotor motor shaft which is in turn seen about the yaw axis. Thus, rotating the pitch propeller does not only cause motion about the pitch axis but also about the yaw axis. As described earlier, that is why conventional helicopters include a tail, or anti-torque, rotor to compensate for the torque generated about the yaw axis by the large, main rotor.
Similarly, the yaw motor causes a force that acts on the body at a distance from the yaw axis as well as a torque about the pitch axis as shown in Figure 2.
: the damping ratio of the pitch dynamics
: the natural frequency of the pitch dynamics
: the time constant of the yaw dynamics
: normalized torque thrust gain from the pitch rotor (normalized by )
: normalized torque thrust gain from the yaw rotor (normalized by )
: normalized cross-torque thrust gain acting on the pitch from the yaw rotor (normalized by )
: normalized cross-torque thrust gain acting on the yaw from the pitch rotor (normalized by )
: voltage applied to the pitch rotor motor
: voltage applied to the yaw rotor motor
: the total moment of inertia about the pitch axis
: the total moment of inertia about the yaw axis
where y(0) is the initial condition, K is the DC or steady-state gain, and τ is the time constant as illustrated in Figure 3. Figure 3 is for a system with y(0) = 0, rad/V and sec.
To obtain the time constant from the response, find the time it takes to reach or 63.2% of its final steady-state value:
The time constant is , where is the start time of the step and is the time it takes to reach 63.2% of the final value, as illustrated in Figure 3.
Assuming the initial conditions and , the Laplace transform of Equation (9) is
where is the damping ratio and is the natural frequency.
where is the time of the peak, is the time of the first peak, and is the number of oscillations considered. From this, the damped natural frequency (in radians per second) is
where is the peak magnitude of the first oscillation and is the peak magnitude of the oscillation. Note that > , as this is a decaying response. The damping ratio can then be found using
The damping ratio and the natural frequency of the pitch axis, and in Equation (1) can be found from the oscillatory portion of the step response.
Assuming the initial velocity is zero, , and solving for position we get
where . Taking its Laplace transform
Providing step input only in the pitch axis (applying a voltage to the pitch rotor motor) allows us to focus on the pitch-only system. Plugging and in Equation (1), the equation of motion for the pitch axis is
Remark that this is the normalized thrust torque gain parameter. The normalized force thrust gain would be , where is the distance between the helicopter pivot and the center of the pitch rotor. Steady State Method: By focusing on the steady-state portion of the system response to a step voltage input to the pitch rotor motor, and neglecting the and (zero at steady-state), the normalized thrust gain is obtained as
where is the magnitude of the voltage input to the pitch rotor motor.
where and is the difference between the time instance when the step input is given and a time instance slightly above , i.e., . Thus we can find the normalized pitch thrust gain from the measured pitch rate and derived acceleration (discrete-derivative of pitch rate).
Similarly, to find the normalized thrust gain acting on the yaw axis system, apply a voltage to the tail rotor motor. Plugging and in Equation (1), the equation of motion for the yaw axis is
where is the angular rate of the yaw axis. The normalized yaw torque thrust gain is
Steady State Method: At steady-state condition, and neglecting the (zero at steady-state), the normalized thrust gain is obtained as
where is the magnitude of the step voltage input to the yaw rotor motor.
where and is the difference between the time instance when the step input is given and a time instance slightly above , i.e., . Thus we can find the normalized yaw thrust gain from the measured yaw rate and derived acceleration (discrete-derivative of yaw rate).
The normalized cross-torque thrust parameters, and in Equation (3) and (4), represent the coupling between the axes. The cross-torque acting on the pitch axis from a torque applied to the tail rotor motor, can be found by appling a voltage to the tail rotor motor, and examining the response of the pitch. The equations representing these dynamics when and , are
Similarly to identify the cross-torque acting on the yaw axis from a torque applied to the pitch rotor motor, apply a voltage to the pitch rotor motor, and examine the response of the yaw. The equations representing these dynamics when and , are
Estimating and are out of scope of this lab. The values of these parameters are provided in the Analysis section.
To build the model, click the down arrow on Monitor & Tune under the Hardware tab and then click Build for monitoring . This generates the controller code.
Click Connect button under Monitor & Tune and then run SIMULINK by clicking Start .
To build the model, click the down arrow on Monitor & Tune under the Hardware tab and then click Build for monitoring . This generates the controller code.
Click Connect button under Monitor & Tune and then run SIMULINK by clicking Start .
To build the model, click the down arrow on Monitor & Tune under the Hardware tab and then click Build for monitoring . This generates the controller code.
Click Connect button under Monitor & Tune and then run SIMULINK by clicking Start . Note: Pitch angle has to reach steady state i.e. constant pitch angle, or you may have to increase simulation time. If steady state has reached, you can end simulation earlier.
The cross-torque thrust parameters are Nm/V, Nm/V. These will be required for Controller Design.
You can also use the above-attached Aero_Pitch_SystemID.mlx
script to find and . Complete the lines marked with TODO.
From the pitch response due to pitch motor step input find the normalized thrust gain , using both the steady state method and discrete derivative method.
You can also use the above-attached Aero_Pitch_SystemID.mlx
script to find . Complete the lines marked with TODO.
From the yaw speed response due to yaw motor step input find the time constant and normalized thrust gain
Hint: For time constant. use equation 8. For , use equation 31 for the steady-state method and use equation 32 for the discrete derivative method.
You can use the above-attached Aero_Yaw_SystemID.mlx
script to find and . Complete the lines marked with TODO.
Equations used for calculating , , , .
The given value of is positive and is negative for our setup (see Step 1 of Analysis section). Why?