Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Problem 1

We consider a simple quadrotor, such as that shown in Fig. 1. We are

1757_Quadrotor.jpg

Figure 1: quadrotor

interested in controlling the vertical motion of the machine. The altitude can be changed by acting on the angular speed of an electric motor that turns the propellers. In turn, the propellers produce an upwards vertical force by pumping air downwards. The quadrotor's altitude above the ground can be measured via a infrared laser probe (LIDAR) when the quadrotor is close to the ground (altitude less than 2 meters above the ground). When the quadrotor's altitude is higher, the only reliable sensor is a pressure altimeter. The LIDAR provides altitude information at a nominal rate of 50 updates per second (or one update every 20 msec). The pressure altimeter runs a lot slower: it can provide altitude information at nominally two updates per second. We consider two control algorithms: One for high altitudes, and one for low altitudes. To make matters more precise, the quadrotor is a dynamical system consisting of the following elements: First, there is the dynamics of the electric motor and its propellers. The force response f of the propeller to a desired force fd satisfies the simplified differential equation

df/dt = 7.4f + 7.4fd. (1)

1. Using the programming language of your choice, simulate the "response" of the propeller when fd and f were originally at zero and fd follows the "step" profile shown in Fig. 2. For this simulation, use

1045_Profile.jpg

Figure 2: step

the approximation

df/dt ≈ (f(t + dt) - f (t))/ dt

with dt = 0.01 sec. Plot f (t) vs. time.

2. The rest of the vehicle is given by the differential equation

d/dt.z = v

d/dt.v = f,

where z is the altitude of the quadrotor, and v is its velocity.

A linear altitude controller for low altitude (altitude < 2m) was designed for the quadrotor as the differential equation:

dxc/dt= -5xc + 5(z - zd)

fd = 2.45xc - 2.5(z - zd),

where zd is the desired altitude of the quadrotor. xc is the state of the controller, in other terms, the controller is a dynamical system. xc has no particular significance a priori. Another linear altitude controller for high altitude (altitude > 2m) was designed for the quadrotor as the differential equation

dxc/dt = -xc + (z - zd)

fd = 99/800xc - 0.125(z - zd)

In this equation, xc is, again, the state of the controller. Qualitatively discuss the properties of both controllers: For example, is one "faster" than the other?

3. A Matlab simulation is provided to you. This simulation contains the effects of both the "low altitude" controller and the "high altitude" controller. The main file is "exam.m" and there is a function named "propag.m". Run the program and explain what it does relative to the system description above.

4. Explain the meaning of the parameters "dt", "total time", "sample length", and "duration".

5. What "comfort zones" do you find for these parameters from the viewpoint of simulating the system? Are these "comfort zones" the same?

6. Based on the simulation given to you, write a simulation to get the response of the helicopter to a 2m step up input, knowing the helicopter is at 1 meter altitude to begin with. Be careful when writing your simulation as the helicopter goes through the 2m boundary and must therefore switch controller at that point.

Problem 2

Write a one-page essay on the following topic

In, the authors propose a survey of Security, Safety and Privacy issues for UAVs. They list a set of common threats to be addressed to allow for the safe operation of UAV in the civilian airspace. Yet, one may note there are several challenges when modelling and then analysing these systems. In [2], the authors report on dependency loops between analysis (see section 2). These means that one need to consider the system as a whole, and not as a separate set of concerns (e.g. safety, security, performance, etc).

Taking the topic of CPS at large, select for one class of systems, two concerns (and associated analysis). Illustrate how optimising the system for one concern affects the other. Impact may be positive or negative. You are encouraged to go beyond the provided references and propose your own. You may consider safety, security, performance, energy, accuracy in reaching a goal (e.g. a position, a speed, etc.), etc.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M92566780

Have any Question?


Related Questions in MATLAB

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As