You are on page 1of 2

# Opatives de grau, ETSEIAT, 2014

AR.DRONE PROJECT
designed to be operated manually through smart phones or tablet devices.
From the control point of view, the main objective is to design a state feedback controller for the device.
Objectives
1. To become familiar with the platform from the control point of view. In particular, students are
expected to identify the state variables, the inputs (or control actions) and the outputs.
2. To design a state estimator based on the linear model.
3. To design a velocity controller based on the linear model.
4. To implement and test the controller on the simulator.
1. First activity: getting familiarized with the system
This activity is about getting used to the terminology of aerial vehicles, understanding that their dynamics
is described through the use of a relatively large number of states and, ﬁnally, starting to navigate and use
the AR.Drone simulation kit for Matlab.
1
and [
2
to understand the description of the system.
(c) Write down the vector components of the control actions (inputs), measures (outputs) and state vari-
ables. Group the components according to their physical meaning in the system.
(d) Design the appropriate open loop inputs to obtain a system trajectory that goes through the following
waypoints (wait for 2 seconds between waypoints):
− take oﬀ (move to position (0,0,1))
− move to position (5,0,1)
− move to position (5,5,1)
− turn to face position (0,0,1)
− go back to (0,0,1)
− land (move to position (0,0,0))
(e) Simulate the system with the inputs obtained previously.
2. Second activity: state estimation
Considering the overall goal of this project, it is necessary to have complete access to the state vector.
Nevertheless, the system state is not directly accessible so there is a need to estimate some of the state
1
T Krajn´ık, V Von´asek, D Fiˇser, J Faigl. AR-drone as a platform for robotic research and education. Research and Education
in Robotics-EUROBOT 2011, 172-186.]
2
P.-J. Bristeau, F. Callou, D. Vissi`ere, and N. Petit. The navigation and control technology inside the AR.Drone micro
UAV. Proc. of the 2011 IFAC World Congress.]
CONTINUED
– 2 –
variables. This activity assumes the existence of a linear model of the quad-rotor and it uses that model
transfer function objects are also loaded in the Matlab workspace. Those objects are the linear and uncoupled
approximations of the subsystems in the quad-rotor: tfH relates ˙ z
ref
with z; tfPitch2U relates θ
ref
with u,
the x velocity; tfPitchAng3 relates θ
ref
with θ; tfRoll2V relates φ
ref
with v, the y velocity; tfRollAng3
relates φ
ref
with φ; tfYaw relates
˙
ψ
ref
with ψ.
(a) Obtain a state space representation of the linear model of the quad-rotor.
(b) Check the observability and controllability properties of the model.
(c) Design the state observer and validate it using the inputs calculated in the previous activity. Try
diﬀerent pole conﬁgurations for the observer dynamics and choose one according to an index that
measures the diﬀerence between the real and estimated state.
Deliverable: A report detailing the necessary transformations to obtain the state space representation and
explaining the estimator results.
3. Third activity: desired trajectory
Taking into account that position is an estimated variable, and its estimation is not reliable, you will
concentrate on controlling velocities. But before designing the controller you are asked to make the eﬀort of
designing an appropriate input signal to test the controller with. This signal (u
ref
(t), v
ref
(t)) should allow
you to test the controller’s performance and it should be a realistic input signal that could be used as an
experimental demonstration of the eﬀectiveness of your controller. For example, the input signal could be
the velocities to make the quad-rotor ﬂy in circles.
(a) Design the test experiment and create a Simulink ﬁle (Inpus.slx) that produces the desired velocities
signal. Include, if necessary the desired position visualization to verify that it works as expected.