3 DOF Helicopter Courseware Sample For MATLAB Users
3 DOF Helicopter Courseware Sample For MATLAB Users
PREFACE
Preparing laboratory experiments can be time-consuming. Quanser understands time constraints of teaching
and research professors. Thats why Quansers control laboratory solutions come with proven practical
exercises. The courseware is designed to save you time, give students a solid understanding of various
control concepts and provide maximum value for your investment.
Quanser 3 DOF Helicopter courseware materials are supplied in a format of the Laboratory Guide. The Lab
Guide contains lab assignments for students.
This courseware is prepared for users of The MathWorks MATLAB/Simulink software in
conjunction with Quansers QUARC real-time control software. A version of the course
material for National Instruments LabVIEW users is also available.
The following material provides an abbreviated example of in-lab procedures for the 3 DOF Helicopter
experiment. Please note that the examples are not complete as they are intended to give you a brief
overview of the structure and content of the courseware materials you will receive with the plant.
TABLE OF CONTENTS
2.
The full Table of Contents of the 3 DOF Helicopter Laboratory Guide is shown here:
1. PRESENTATION
1.1. DESCRIPTION
1.2. PREREQUISITES
2. EXPERIMENT FILES OVERVIEW
3. MODELING
3.1. DYNAMICS
3.2. STATE-SPACE MODEL
4. CONTROL DESIGN
4.1. STATE-FEEDBACK
4.2. LINEAR QUADRATIC REGULATOR
5. LAB PROCEDURES
5.1. MAIN COMPONENTS
5.2. CONTROLLER SIMULATION
5.2.1.
OBJECTIVES
5.2.2.
PROCEDURE
5.3. CONTROLLER IMPLEMENTATION
5.3.1.
OBJECTIVES
5.3.2.
PROCEDURE: 3 DOF HELICOPTER
5.3.3.
PROCEDURE: 3 DOF HELICOPTER WITH ADS
6. TECHNICAL SUPPORT
7. REFERENCES
Figure 3.2: Translation of the free-body diagram onto a Boeing HC-1B Chinook.
Figure 5.1: Simulink model s_heli3d.mdl used to simulate closed-loop response of the 3 DOF Helicopter system
2. Run the Matlab script setup_lab_heli_3d.m to load the state-space model matrices and the control gain
K.
3. To generate a desired elevation step of 7.5 degrees at 0.04 Hz frequency, open the Desired Angle from
Program subsystem and set the Amplitude: Elevation (deg) gain block to 7.5 degrees and Frequency
input box in the Signal Generator: Elevation block to 0.04 Hz.
4. To generate a desired travel step of 30 degrees at 0.03 Hz frequency set the Amplitude: Travel (deg)
block to 30.0 degrees and the Frequency input box in the Signal Generator: Travel block to 0.03 Hz.
5. In the Scopes subsystem, open the elevation (deg), pitch (deg), travel (deg) and the Vm (V) scopes.
6. Click on Start Simulation to simulate the closed-loop response. The elevation and travel angles (purple
trace) should track the corresponding desired position signals (yellow trace) in each scope. Examine the
voltage in the Vm (V) scope and ensure the front (yellow plot) and back motor (purple plot) are not
saturated. Recall that the maximum peak voltage that can be delivered to the motor by the is 24 V and
that the controller implemented on the actual system includes the operation voltage, Vop. The
operation voltage is approximately 7.5 V and this will be added to the resulting control output.
7. Try changing the desired elevation and travel angles to familiarize yourself with the controller. Observe
that rate limiters are placed in the desired position signals to eliminate any high-frequency changes. This
makes the control signal smoother which places less strain on the actuator.
Procedure: 3 DOF Helicopte with ADS
Follow the steps described below to implement the designed controller in real-time and observe its effect
on the 3 DOF Helicopter with Active Disturbance System (ADS) plant:
1. Open Simulink model q_heli3d_w_ads.mdl shown in Figure 5.5 that implements a sample LQR controller
on the 3 DOF Helicopter with ADS plant. The model runs your actual 3 DOF Helicopter with the ADS
plant by directly interfacing with your hardware through the QUARC blocks, as discussed in [1]. The 3
DOF Helicopter System subsystem is basically the Simulink model described in Figure 5.2. The helicopter
controller is not engaged until the Active Disturbance is calibrated (i.e. 0 V is fed to the helicopter motor
until the ADS is homed).
Figure 5.5: Simulink model q_heli3d_w_ads_q8 implements an LQR controller on the 3 DOF Helicopter with
Active Disturbance system.
2. Open the design file setup_lab_heli_3d.m and ensure everything is configured correctly.
Note: Make sure the WITH_ADS parameter in the setup_lab_heli_3d.m file is set to YES. This indicates
to the automatically designed controller that the active disturbance is being used.
3. Execute the setup_lab_heli_3d.m script to setup the workspace before compiling the diagram and
running it in real-time with QUARC.
4. Click on QUARC | Build to compiled the Simulink diagram.
5. Open the elevation (deg), travel (deg), and Vm (V) scopes from the Scopes folder. These scopes display
both the desired and measured angles of the Helicopter as well as the voltages being applied to the
front and back motors.
Caution: Make sure the motor input voltage does not go between negative and positive very often!
Having the controller go across the 0V line often can cause damage to the amplifiers.
3 DOF Helicopter
Qball-X4
3 DOF Hover
Qbot
Quanser Aerospace plants are ideal for intermediate or advanced level teaching. They are
also suitable for research relating to traditional or modern control applications of aerospace
engineering. For more information please contact [email protected].
2013 Quanser Inc. All rights reserved.
+1-905-940-3575
QUANSER.COM