Question: In this assignment you will determine parameters for a controller design based on linearized EOM and determine the efficacy of the design by simulating the

In this assignment you will determine parameters for a controller design based on linearized
EOM and determine the efficacy of the design by simulating the non-linear EOM with the
controller implemented. Specifically:
Create a python program that uses the parameters (SI units)M=100,m=10,L=2, and
g=10.0 to calculate KP and KD given =0.7 and n=0.5.
Within the program create a function that provides the state-space representation of the
nonlinear EOM. Use the state variables vec(x)=[xx] and implement the controller as
F=u=-KP-KD. Use the double pendulum example as a template for the state-
space representation.
Simulate the system given the initial condition vec(x)(0)=[5000](remember to convert
to radians). Congratulate yourself on the response for before noticing the unacceptable
response for x. Simulate for 75 seconds.
Simulate the system given the initial condition vec(x)(0)=[450000] to see if the
controller will still bring 0 despite the initial conditions being so far from the
reference value about which you linearized. Conclude that maybe the other state variable
needs to be feed back.
Try F=u=-KP-KD-Kxx-Kvx using guesses for Kx and Kv until frustration
sets in then try F=u=-3KP-9KD+.03KPx+0.5KDx and the initial
condition vec(x)(0)=[45000] and then congratulate yourself on the overall response.
Observe that even though the initial condition is far from the state about which you
linearized, the controller still works. This course will be, in large part, about techniques
for designing the controller without relying completely on trial and error.
In this assignment you will determine parameters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanical Engineering Questions!