SlideShare a Scribd company logo
1 of 9
Homework 10 MAE4310 Due April 28, 2015
This assignment is help you prepare for exam 3. You are not allowed to work or talk with
other students but can consult with Professor Hullender as much as needed.
Name_____Michael Clifford Davis_
The center-of-pressure on high performance aircraft is in front of the center-of-gravity; such an
aerodynamic design causes the pitch dynamics of the aircraft to be unstable if there is no
feedback control.
For a specific aircraft a simplified transfer function for the pitch angle 𝜃 for an elevator input
angle ∅ is provided below.
𝜃 = [
0.05
𝑠2 − 4
]∅
(a) From examination of the transfer function relating 𝜃 to ∅, explain why it is obvious that
the pitch dynamics for this aircraft are unstable if there is no feedback control loop to
stabilize the pitch angle.
If you factor the denominator you see that you have a positive Eigen value which would mean
the system is unstable.
(b) The control signal u is the input to a hydraulic actuator which adjusts the angular position
of the elevator ∅, i.e.
∅ = 5 𝑢
where 𝑈( 𝑠) = 𝐺𝑐( 𝑠) 𝐸( 𝑠); E is the pitch angle error.
Design a cascade controller achieving a NSSE of zero for a desired pitch angle step input
of 10 degrees. The step response should reach steady state within 1% in no more than 1
second and with no more that 10% overshoot. Simulate the time response of your system
and plot pitch angle and elevator angle.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
2
4
6
8
10
12
14
pitchangledegrees
time, seconds
Homew ork 10 problem1(b)
Using your controller, repeat the simulation but this time for the case where the pilot wants to
maintain level flight (step input of zero) but wind turbulence has created an initial pitch rate of
10 degrees/second. How effective is your controller at bringing the pitch angle and pitch angle
rate back to zero?
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
-0.5
0
0.5
1
1.5
2
2.5
x 10
6
Homework 10 problem 1(b)
time, seconds
elevatorangledegrees
0 0.5 1 1.5 2 2.5
-0.3
-0.2
-0.1
0
0.1
0.2
0.3
0.4
0.5
0.6
Homework 10 problem 1(b)
pitchangledegrees
time, seconds
0 0.5 1 1.5 2 2.5
-4
-2
0
2
4
6
8
10
time, seconds
pitchanglerate/tdegrees/second
Homework 10 problem 1(b)
The values for the system response for pitch angle and pitch angle rate under this
disturbance are within the error requirements for the required setting time.
Design an operational amplifier circuit for implementing your controller (see page 504 in Nise).
Using excel solver for the non linear system of equations I was able to obtain values for
the resistors and capacitors for a PID controller with the given PID gains from the
developed controller and guessing at one of the unknown variables. I chose to give the
C2 capacitor a value of .1 microFarads and then proceeded:
𝐾𝑃 = 307.3033 = (
𝑅2
𝑅1
+
𝐶1
𝐶2
)
𝐾 𝐷 = 43.28215 = 𝑅2 𝐶1
𝐾𝐼 = 454.463 =
1
𝑅1 𝐶2
R1 = 22 kohms
R2 = 2 Mohms
C1 = 21.6 microFarad
C2 = 0.1 microFarad
Design digital code for implementing your controller (see Section 6.6 in the notebook).
Be sure to specify the sample rate by calculating an appropriate value for T.
Code:
%Digital PID control example
%Gc(s)=Kp+Ki/s+Kds
%Gc(z)=Kp-TKi/(z^-1 -1)-Kd(z^-1 -1)/T
Kp=307.3033;Ki=454.463;Kd=43.28215;
Gc=tf([Kd Kp Ki],[1 0 0])%extra s in denominator to be cancelled with extra s
in num of G
G=tf([0.05*5 0],[1 0 -4]);%extra s in the numerator of G
GGc=series(G,Gc)
GGc1=minreal(GGc)%Cancels the extra s in the num and denominator
GGcCL=feedback(GGc,1);
damp(GGcCL)%gives eigenvalues of the analog system
step(GGcCL,'r')%gives step response of the analog system
hold
T=0.01;
Gcd = c2d(Gc,T)
Gcd = zpk(Gcd)
Results:
g =
0.25 s
-------
s^2 - 4
Continuous-time transfer function.
G =
0.25 s
-----------
(s-2) (s+2)
Continuous-time zero/pole/gain model.
Gc =
43.28 s^2 + 307.3 s + 454.5
---------------------------
s^2
Continuous-time transfer function.
GGc =
10.82 s^3 + 76.83 s^2 + 113.6 s
-------------------------------
s^4 - 4 s^2
Continuous-time transfer function.
GGc1 =
10.82 s^2 + 76.83 s + 113.6
---------------------------
s^3 - 8.882e-16 s^2 - 4 s
Continuous-time transfer function.
Eigenvalue Damping Frequency
0.00e+00 -1.00e+00 0.00e+00
-2.08e+00 1.00e+00 2.08e+00
-4.37e+00 + 5.96e+00i 5.91e-01 7.39e+00
-4.37e+00 - 5.96e+00i 5.91e-01 7.39e+00
(Frequencies expressed in rad/seconds)
Current plot held
Gcd =
43.28 z^2 - 83.47 z + 40.23
---------------------------
z^2 - 2 z + 1
Sample time: 0.01 seconds
Discrete-time transfer function.
Gcd =
43.282 (z-0.9794) (z-0.9491)
----------------------------
(z-1)^2
Sample time: 0.01 seconds
Discrete-time zero/pole/gain model.
𝑇 =
1
10𝑀
∶ 𝑤ℎ𝑒𝑟𝑒 𝑀 𝑖𝑠 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝑚𝑎𝑔𝑛𝑖𝑡𝑢𝑑𝑒 𝑒𝑖𝑔𝑒𝑛 𝑣𝑎𝑙𝑢𝑒
𝑇 =
1
10 × 7.49
= 0.01353 ∶ 𝑤𝑖𝑙𝑙 𝑢𝑠𝑒 𝑇 = 0.01
Since we addeded an extra “s” to the controller for matlab I will manually solve the digital code
buy using the simplified function given in the handbook from section 6.6.3(Digital
Implementation of a PID controller) with known T and Kp, Ki and Kd:
𝑢 𝑘 = 𝑢 𝑘−1 + (𝐾 𝑝 + 𝑇𝐾𝑖 + 𝐾 𝑑 / ) 𝑒 𝑘 − (𝐾 𝑝 + 2𝐾 𝑑/ 𝑇 ) 𝑒 𝑘−1 + 𝐾 𝑑 / 𝑇 𝑒 𝑘−2
𝑢 𝑘 = 𝑢 𝑘−1 + ( 4640.063) 𝑒 𝑘 − (8963.734) 𝑒 𝑘−1 + (4328.215)𝑒 𝑘−2

More Related Content

What's hot

EES for Thermodynamics
EES for ThermodynamicsEES for Thermodynamics
EES for ThermodynamicsNaveed Rehman
 
Unit Quantities of Turbine | Fluid Mechanics
Unit Quantities of Turbine | Fluid MechanicsUnit Quantities of Turbine | Fluid Mechanics
Unit Quantities of Turbine | Fluid MechanicsSatish Taji
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...ssuser27c61e
 
Cobb-douglas production function
Cobb-douglas production functionCobb-douglas production function
Cobb-douglas production functionSuniya Sheikh
 
SUEC 高中 Adv Maths (Trigo Function Part 2)
SUEC 高中 Adv Maths (Trigo Function Part 2)SUEC 高中 Adv Maths (Trigo Function Part 2)
SUEC 高中 Adv Maths (Trigo Function Part 2)tungwc
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog codeBharti Airtel Ltd.
 
Control system concepts by using matlab
Control system concepts by using matlabControl system concepts by using matlab
Control system concepts by using matlabCharltonInao1
 
control system
control systemcontrol system
control systemnaqeeb93
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAkila Krishnamoorthy
 
Servo Fundamentals
Servo FundamentalsServo Fundamentals
Servo Fundamentalspurnima saha
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAkila Krishnamoorthy
 

What's hot (19)

EES for Thermodynamics
EES for ThermodynamicsEES for Thermodynamics
EES for Thermodynamics
 
Assignment 101
Assignment 101Assignment 101
Assignment 101
 
EE201_Assignment2
EE201_Assignment2EE201_Assignment2
EE201_Assignment2
 
Unit Quantities of Turbine | Fluid Mechanics
Unit Quantities of Turbine | Fluid MechanicsUnit Quantities of Turbine | Fluid Mechanics
Unit Quantities of Turbine | Fluid Mechanics
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
 
Functions/Inequalities
Functions/InequalitiesFunctions/Inequalities
Functions/Inequalities
 
Lecture 23 loop transfer function
Lecture 23 loop transfer functionLecture 23 loop transfer function
Lecture 23 loop transfer function
 
Cobb-douglas production function
Cobb-douglas production functionCobb-douglas production function
Cobb-douglas production function
 
Algorithm.ppt
Algorithm.pptAlgorithm.ppt
Algorithm.ppt
 
SUEC 高中 Adv Maths (Trigo Function Part 2)
SUEC 高中 Adv Maths (Trigo Function Part 2)SUEC 高中 Adv Maths (Trigo Function Part 2)
SUEC 高中 Adv Maths (Trigo Function Part 2)
 
Cpp programs
Cpp programsCpp programs
Cpp programs
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
 
Lead-lag controller
Lead-lag controllerLead-lag controller
Lead-lag controller
 
Chap11alg
Chap11algChap11alg
Chap11alg
 
Control system concepts by using matlab
Control system concepts by using matlabControl system concepts by using matlab
Control system concepts by using matlab
 
control system
control systemcontrol system
control system
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Servo Fundamentals
Servo FundamentalsServo Fundamentals
Servo Fundamentals
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfa
 

Viewers also liked

Basel III - Implications of Implementation
Basel III - Implications of ImplementationBasel III - Implications of Implementation
Basel III - Implications of ImplementationDavid Kyson
 
Классификация логотипов
Классификация логотиповКлассификация логотипов
Классификация логотиповАртур Хазеев
 
White Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The NamesWhite Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The Names1guestupington
 
White Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The NamesWhite Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The Names1guestupington
 
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...Derek Tustin
 
How To Choose Perfect Hair Color ?
How To Choose Perfect Hair Color ?How To Choose Perfect Hair Color ?
How To Choose Perfect Hair Color ?Torontohairsalons
 
Balancing the Distribution of Income: Factors Affecting Decision Making with ...
Balancing the Distribution of Income: Factors Affecting Decision Making with ...Balancing the Distribution of Income: Factors Affecting Decision Making with ...
Balancing the Distribution of Income: Factors Affecting Decision Making with ...David Kyson
 
Внедрение Bitrix24 для бизнеса
Внедрение Bitrix24 для бизнесаВнедрение Bitrix24 для бизнеса
Внедрение Bitrix24 для бизнесаАртур Хазеев
 
Spring Data and In-Memory Data Management in Action
Spring Data and In-Memory Data Management in ActionSpring Data and In-Memory Data Management in Action
Spring Data and In-Memory Data Management in ActionJohn Blum
 
deloitte-uk-cf-aldt-q1-2016
deloitte-uk-cf-aldt-q1-2016deloitte-uk-cf-aldt-q1-2016
deloitte-uk-cf-aldt-q1-2016Julien Le Guern
 
Увеличение личных продаж от 3 раз и выше
Увеличение личных продаж от 3 раз и вышеУвеличение личных продаж от 3 раз и выше
Увеличение личных продаж от 3 раз и вышеАртур Хазеев
 
TrainingCoursesfullpage5_7_15
TrainingCoursesfullpage5_7_15TrainingCoursesfullpage5_7_15
TrainingCoursesfullpage5_7_15Marcus Lawson
 

Viewers also liked (16)

Basel III - Implications of Implementation
Basel III - Implications of ImplementationBasel III - Implications of Implementation
Basel III - Implications of Implementation
 
Классификация логотипов
Классификация логотиповКлассификация логотипов
Классификация логотипов
 
cv..eg -
cv..eg -cv..eg -
cv..eg -
 
White Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The NamesWhite Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The Names
 
White Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The NamesWhite Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The Names
 
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
 
How To Choose Perfect Hair Color ?
How To Choose Perfect Hair Color ?How To Choose Perfect Hair Color ?
How To Choose Perfect Hair Color ?
 
biografia
biografiabiografia
biografia
 
Balancing the Distribution of Income: Factors Affecting Decision Making with ...
Balancing the Distribution of Income: Factors Affecting Decision Making with ...Balancing the Distribution of Income: Factors Affecting Decision Making with ...
Balancing the Distribution of Income: Factors Affecting Decision Making with ...
 
Taraweeh Fatwa
Taraweeh FatwaTaraweeh Fatwa
Taraweeh Fatwa
 
Внедрение Bitrix24 для бизнеса
Внедрение Bitrix24 для бизнесаВнедрение Bitrix24 для бизнеса
Внедрение Bitrix24 для бизнеса
 
Spring Data and In-Memory Data Management in Action
Spring Data and In-Memory Data Management in ActionSpring Data and In-Memory Data Management in Action
Spring Data and In-Memory Data Management in Action
 
deloitte-uk-cf-aldt-q1-2016
deloitte-uk-cf-aldt-q1-2016deloitte-uk-cf-aldt-q1-2016
deloitte-uk-cf-aldt-q1-2016
 
Adhir Kumar Shukla Resume.
Adhir Kumar Shukla Resume.Adhir Kumar Shukla Resume.
Adhir Kumar Shukla Resume.
 
Увеличение личных продаж от 3 раз и выше
Увеличение личных продаж от 3 раз и вышеУвеличение личных продаж от 3 раз и выше
Увеличение личных продаж от 3 раз и выше
 
TrainingCoursesfullpage5_7_15
TrainingCoursesfullpage5_7_15TrainingCoursesfullpage5_7_15
TrainingCoursesfullpage5_7_15
 

Similar to AutoControls using Matlab and Simulink

AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docx
AIRCRAFT PITCH EECE 682  Computer Control Of Dynamic.docxAIRCRAFT PITCH EECE 682  Computer Control Of Dynamic.docx
AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docxgalerussel59292
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1 ronak56
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentIsham Rashik
 
Time response of first order systems and second order systems
Time response of first order systems and second order systemsTime response of first order systems and second order systems
Time response of first order systems and second order systemsNANDHAKUMARA10
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxOthmanBensaoud
 
Chapter_6.pptx_Control_systems
Chapter_6.pptx_Control_systemsChapter_6.pptx_Control_systems
Chapter_6.pptx_Control_systemsBaghdad
 
Arna Friend Controls II Final
Arna Friend Controls II FinalArna Friend Controls II Final
Arna Friend Controls II FinalArna Friend
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armcesarportilla8
 
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Zac Darcy
 
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Zac Darcy
 
「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPTTsuyoshi Horigome
 
Closed loop control systems block diagrams
Closed loop control systems block diagramsClosed loop control systems block diagrams
Closed loop control systems block diagramsArunPremAnandNataraj
 
Design of PID CONTROLLER FOR ENGINEERING
Design of PID CONTROLLER FOR ENGINEERINGDesign of PID CONTROLLER FOR ENGINEERING
Design of PID CONTROLLER FOR ENGINEERINGShyamal25
 
1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engineJuan Manzanero Torrico
 

Similar to AutoControls using Matlab and Simulink (20)

AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docx
AIRCRAFT PITCH EECE 682  Computer Control Of Dynamic.docxAIRCRAFT PITCH EECE 682  Computer Control Of Dynamic.docx
AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docx
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
Time response of first order systems and second order systems
Time response of first order systems and second order systemsTime response of first order systems and second order systems
Time response of first order systems and second order systems
 
DC servo motor
DC servo motorDC servo motor
DC servo motor
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptx
 
Chapter_6.pptx_Control_systems
Chapter_6.pptx_Control_systemsChapter_6.pptx_Control_systems
Chapter_6.pptx_Control_systems
 
Arna Friend Controls II Final
Arna Friend Controls II FinalArna Friend Controls II Final
Arna Friend Controls II Final
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic arm
 
Project final control
Project final controlProject final control
Project final control
 
lesson15et438a.ppsx
lesson15et438a.ppsxlesson15et438a.ppsx
lesson15et438a.ppsx
 
Sideslip
SideslipSideslip
Sideslip
 
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
 
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...
 
「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT
 
Closed loop control systems block diagrams
Closed loop control systems block diagramsClosed loop control systems block diagrams
Closed loop control systems block diagrams
 
Design of PID CONTROLLER FOR ENGINEERING
Design of PID CONTROLLER FOR ENGINEERINGDesign of PID CONTROLLER FOR ENGINEERING
Design of PID CONTROLLER FOR ENGINEERING
 
B045012015
B045012015B045012015
B045012015
 
1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine
 
Final Project
Final ProjectFinal Project
Final Project
 

AutoControls using Matlab and Simulink

  • 1. Homework 10 MAE4310 Due April 28, 2015 This assignment is help you prepare for exam 3. You are not allowed to work or talk with other students but can consult with Professor Hullender as much as needed. Name_____Michael Clifford Davis_ The center-of-pressure on high performance aircraft is in front of the center-of-gravity; such an aerodynamic design causes the pitch dynamics of the aircraft to be unstable if there is no feedback control. For a specific aircraft a simplified transfer function for the pitch angle 𝜃 for an elevator input angle ∅ is provided below. 𝜃 = [ 0.05 𝑠2 − 4 ]∅ (a) From examination of the transfer function relating 𝜃 to ∅, explain why it is obvious that the pitch dynamics for this aircraft are unstable if there is no feedback control loop to stabilize the pitch angle. If you factor the denominator you see that you have a positive Eigen value which would mean the system is unstable.
  • 2. (b) The control signal u is the input to a hydraulic actuator which adjusts the angular position of the elevator ∅, i.e. ∅ = 5 𝑢 where 𝑈( 𝑠) = 𝐺𝑐( 𝑠) 𝐸( 𝑠); E is the pitch angle error. Design a cascade controller achieving a NSSE of zero for a desired pitch angle step input of 10 degrees. The step response should reach steady state within 1% in no more than 1 second and with no more that 10% overshoot. Simulate the time response of your system and plot pitch angle and elevator angle.
  • 3. 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0 2 4 6 8 10 12 14 pitchangledegrees time, seconds Homew ork 10 problem1(b)
  • 4. Using your controller, repeat the simulation but this time for the case where the pilot wants to maintain level flight (step input of zero) but wind turbulence has created an initial pitch rate of 10 degrees/second. How effective is your controller at bringing the pitch angle and pitch angle rate back to zero? 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 -0.5 0 0.5 1 1.5 2 2.5 x 10 6 Homework 10 problem 1(b) time, seconds elevatorangledegrees
  • 5. 0 0.5 1 1.5 2 2.5 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 Homework 10 problem 1(b) pitchangledegrees time, seconds 0 0.5 1 1.5 2 2.5 -4 -2 0 2 4 6 8 10 time, seconds pitchanglerate/tdegrees/second Homework 10 problem 1(b)
  • 6. The values for the system response for pitch angle and pitch angle rate under this disturbance are within the error requirements for the required setting time. Design an operational amplifier circuit for implementing your controller (see page 504 in Nise). Using excel solver for the non linear system of equations I was able to obtain values for the resistors and capacitors for a PID controller with the given PID gains from the developed controller and guessing at one of the unknown variables. I chose to give the C2 capacitor a value of .1 microFarads and then proceeded: 𝐾𝑃 = 307.3033 = ( 𝑅2 𝑅1 + 𝐶1 𝐶2 ) 𝐾 𝐷 = 43.28215 = 𝑅2 𝐶1 𝐾𝐼 = 454.463 = 1 𝑅1 𝐶2 R1 = 22 kohms R2 = 2 Mohms C1 = 21.6 microFarad C2 = 0.1 microFarad
  • 7. Design digital code for implementing your controller (see Section 6.6 in the notebook). Be sure to specify the sample rate by calculating an appropriate value for T. Code: %Digital PID control example %Gc(s)=Kp+Ki/s+Kds %Gc(z)=Kp-TKi/(z^-1 -1)-Kd(z^-1 -1)/T Kp=307.3033;Ki=454.463;Kd=43.28215; Gc=tf([Kd Kp Ki],[1 0 0])%extra s in denominator to be cancelled with extra s in num of G G=tf([0.05*5 0],[1 0 -4]);%extra s in the numerator of G GGc=series(G,Gc) GGc1=minreal(GGc)%Cancels the extra s in the num and denominator GGcCL=feedback(GGc,1); damp(GGcCL)%gives eigenvalues of the analog system step(GGcCL,'r')%gives step response of the analog system hold T=0.01; Gcd = c2d(Gc,T) Gcd = zpk(Gcd) Results: g = 0.25 s ------- s^2 - 4 Continuous-time transfer function. G = 0.25 s ----------- (s-2) (s+2) Continuous-time zero/pole/gain model. Gc = 43.28 s^2 + 307.3 s + 454.5 --------------------------- s^2
  • 8. Continuous-time transfer function. GGc = 10.82 s^3 + 76.83 s^2 + 113.6 s ------------------------------- s^4 - 4 s^2 Continuous-time transfer function. GGc1 = 10.82 s^2 + 76.83 s + 113.6 --------------------------- s^3 - 8.882e-16 s^2 - 4 s Continuous-time transfer function. Eigenvalue Damping Frequency 0.00e+00 -1.00e+00 0.00e+00 -2.08e+00 1.00e+00 2.08e+00 -4.37e+00 + 5.96e+00i 5.91e-01 7.39e+00 -4.37e+00 - 5.96e+00i 5.91e-01 7.39e+00 (Frequencies expressed in rad/seconds) Current plot held Gcd = 43.28 z^2 - 83.47 z + 40.23 --------------------------- z^2 - 2 z + 1 Sample time: 0.01 seconds
  • 9. Discrete-time transfer function. Gcd = 43.282 (z-0.9794) (z-0.9491) ---------------------------- (z-1)^2 Sample time: 0.01 seconds Discrete-time zero/pole/gain model. 𝑇 = 1 10𝑀 ∶ 𝑤ℎ𝑒𝑟𝑒 𝑀 𝑖𝑠 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝑚𝑎𝑔𝑛𝑖𝑡𝑢𝑑𝑒 𝑒𝑖𝑔𝑒𝑛 𝑣𝑎𝑙𝑢𝑒 𝑇 = 1 10 × 7.49 = 0.01353 ∶ 𝑤𝑖𝑙𝑙 𝑢𝑠𝑒 𝑇 = 0.01 Since we addeded an extra “s” to the controller for matlab I will manually solve the digital code buy using the simplified function given in the handbook from section 6.6.3(Digital Implementation of a PID controller) with known T and Kp, Ki and Kd: 𝑢 𝑘 = 𝑢 𝑘−1 + (𝐾 𝑝 + 𝑇𝐾𝑖 + 𝐾 𝑑 / ) 𝑒 𝑘 − (𝐾 𝑝 + 2𝐾 𝑑/ 𝑇 ) 𝑒 𝑘−1 + 𝐾 𝑑 / 𝑇 𝑒 𝑘−2 𝑢 𝑘 = 𝑢 𝑘−1 + ( 4640.063) 𝑒 𝑘 − (8963.734) 𝑒 𝑘−1 + (4328.215)𝑒 𝑘−2