0% found this document useful (0 votes)
10 views6 pages

Dynamics of Planar Quadrotor

The lecture focuses on developing techniques for making a quadrotor hover, emphasizing the importance of understanding its dynamics and feedback control. The session covers the equations of motion for a planar quadrotor, its degrees of freedom, and introduces the motor model relating motor speed to thrust. Future lectures will expand on feedback control and the dynamics of a 3D quadrotor using Euler angles.

Uploaded by

Amjed
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

Dynamics of Planar Quadrotor

The lecture focuses on developing techniques for making a quadrotor hover, emphasizing the importance of understanding its dynamics and feedback control. The session covers the equations of motion for a planar quadrotor, its degrees of freedom, and introduces the motor model relating motor speed to thrust. Future lectures will expand on feedback control and the dynamics of a 3D quadrotor using Euler angles.

Uploaded by

Amjed
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Intro to Robotics Lecture #2 Lecturer: A.

Majumdar

Goal (for next 4 lectures): Develop techniques for making a quadrotor hover in place.
Hovering is arguably the most basic capability a quadrotor should have. The techniques we
develop will also be broadly applicable to many other robotics applications (e.g., getting a
humanoid robot to balance).
Approach we will pursue for making quadrotor hover:
(1) Figure out how the quadrotor will behave when you apply different propeller commands
[Dynamics].
(2) Figure out a mechanism for taking corrective actions when the quadrotor moves away
from the desired hover configuration [Feedback Control].
Plan for today: Tackle part (1) above: dynamics of quadrotor.
Plan for next 3 lectures: Tackle part (2): feedback control.
Note: Entire courses can be (and are) devoted to dynamics (e.g., MAE 206 and MAE 542 at
Princeton) and control (e.g., MAE 433, 434, 544). We will cover just the basics: enough to make
a quadrotor hover and give you a good understanding of how control works for robotic systems.
Discussing control theory will also allow us to develop terminology we will make extensive use
of throughout the course.

1. Planar Quadrotor

We will first consider a highly simplified model of a quadrotor; this system resides in the x-y
plane and is referred to as the “planar quadrotor” (see Figure 1(a)).

(a) Planar Quadrotor (b) Planar Quadrotor constrained to move


along y-axis

Figure 1

In fact, we will make things even simpler and begin by only considering the motion in the y
direction (i.e., up and down); see Figure 1(b). In this case, we can describe the configuration of
2

the entire quadrotor at any point in time with a single number: the y position of the center of
mass (COM). This system thus has one degree of freedom (DoF).
Degrees of freedom (DoF): The number of independent ways a system can move.
Equivalently, one can think of the number of DoFs as the minimal number of coordinates we
need to completely specify the configuration of the system.
How do we describe the motion of this system (still considering only the motion in the y di-
rection)? We can derive the equations of motion (EoMs) for the system using Newton’s second
law:

mÿ = F1 + F2 − mg, (1)

where m is the total mass of the quadrotor, and F1 and F2 are the thrust forces from the
propeller (we will say more about how motors produce these forces later). Thus,
F1 + F2
ÿ = − g. (2)
m

Now, denote the total thrust force produced by the propellers as:

u1 , F1 + F2 . (3)

We then have:
u1
ÿ = − g. (4)
m

Now, let’s consider the planar quadrotor (no longer constrained to move only along the y-
direction). How many DoFs does this system have? Answer: 3 DoFs corresponding to x-position,
y-position, and orientation θ.
How do we describe the system’s motion? Again, we can use Newton’s second law to derive the
equations of motion:

u1
ẍ = − sin θ, (5)
m
u1
ÿ = cos θ − g, (6)
m
(F2 − F1 )L
θ̈ = . (7)
I

Here, u1 is the same as above (total thrust force), I corresponds to the moment of inertia of the
system, and L is the length of the quadrotor’s arm (see Figure 1(a)). The moment of inertia is a
physical property of the system that can be estimated from the geometry (and mass distribution)
of the quadrotor or via physical experiments.
Next, denote the total moment due to the propeller forces as:

u2 , (F2 − F1 )L. (8)


3

Our equations of motion for the planar quadrotor can then be expressed as:
u1
ẍ = − sin θ, (9)
m
u1
ÿ = cos θ − g, (10)
m
u2
θ̈ = . (11)
I
As a sanity check, Equation (10) matches Equation (2) when θ = 0.
Note: I will not expect you to derive equations of motion in this course (although students in
the MAE department should be able to do this!). We will typically just assume that we are
provided the EoMs. But, it is good to go through the exercise of deriving EoMs at least once
(as we did with the planar quadrotor above).
The equations (9) – (11) are three second-order ordinary differential equations (ODEs). Recall
from your ODE course that we can always take a system of second-order ODEs and convert
them to a system of first-order ODEs by introducing new variables. Let us see how this works
for the planar quadrotor’s EoMs.
Define:
vx , ẋ, (12)
vy , ẏ, (13)
ω , θ̇. (14)

We can then re-express the EoMs (9) – (11) as six first-order ODEs:
ẋ = vx , (15)
ẏ = vy , (16)
θ̇ = ω, (17)
u1
v˙x = ẍ = − sin θ, (18)
m
u1
v˙y = ÿ = cos θ − g, (19)
m
u2
ω̇ = θ̈ = . (20)
I

We can then define the state of the system as: x̄ = [x, y, θ, ẋ, ẏ, θ̇]T . [Note: we will use bars to
denote vectors.] The state defines everything we need to know in order to predict the motion of
the system. If we specify the initial state of the system (i.e., the state at time t = 0), we can
solve (either analytically or numerically) the EoMs and obtain the state of the system at any
future time.
Number of states: The dimensionality of the state vector (i.e., the number of components of
the state). The planar quadrotor thus has 6 states. The planar quadrotor constrained to move
in the y-direction has 2 states (convince yourself of this).
Configuration variables: [x, y, θ]. This is the portion of the state that describes the con-
figuration of the system at any given time (this does not include the components of the state
corresponding to time derivatives).
4

Control input: ū = [u1 , u2 ]T . These are things that we can directly control/command (the
propeller thrusts for the planar quadrotor).
The equations of motion can then be written as:
x̄˙ = f (x̄, ū). (21)

We will always be able to write EoMs in this form.

2. Motor Model

So far, we have treated the propellers as thrusters. In reality, we do not directly control the
thrust produced; we directly control the speed of the motor. It turns out that there is a nice
relationship between the speed of the motor and the generated thrust.
Thrust (produced by propeller spinning): F = kf × (rotational speed of motor)2 .
The constant kf is referred to as the thrust coefficient. How can we measure this quantity? Here
is a simple method: place the drone on a scale and sweep through different values of motor
speeds. Measure the readings of the scale (which you can convert from kilograms to Newtons).
We have performed this experiment for a Crazyflie quadrotor. In the first assignment, you will
use this data to estimate kf .
The planar quadrotor thus has 3 physical parameters: m, I, kf . In order to fully specify our
dynamics model, we need to specify the value of these parameters.

3. 3D Quadrotor

Figure 2. Axes for (Crazyflie) quadrotor; source: [Link].

How many degrees of freedom does a full three-dimensional quadrotor have (see Figure 2)?
Position: 3 numbers x, y, z;
Orientation: 3 numbers;
=⇒ 6 DoFs.
5

For the planar quadrotor, the orientation was easy to describe using θ. For the 3D quadrotor,
it is slightly more complicated. We will use Euler angles to describe the orientation of a 3D
quadrotor (and 3D rigid bodies in general).

3.1. Euler Angles. Euler angles allow us to describe orientations in 3D. Suppose we attach
axes b̄x , b̄y , b̄z to the body of our quadrotor (see Figure 2).
b̄x : Points in the forward direction; b̄y : Points in the left direction; b̄z : Points up.
We will denote this frame by B (corresponding to “body”). We also define ēx , ēy , ēz associated
with an inertial reference frame I.
One way to describe the orientation of B relative to I is the following:
(1) Rotate B about ēx by φ (“roll”);
(2) Then rotate B about ēy by θ (“pitch”);
(3) Then rotate B about ēz by ψ (“yaw”).
It turns out that any configuration of the quadrotor can be specified by specifying (φ, θ, ψ).
The convention above is only one of many possibilities for defining Euler angles. This convention
(which is the one we will use in this course) is referred to as the space 1 − 2 − 3 convention,
since we first rotate about ēx (Axis 1), then about ēy (Axis 2), and then ēz (Axis 3).
There are other possibilities. For example, one could:
• Change the order of rotations, e.g., 2-3-1, or 3-2-1, etc.
• Perform the rotations about the intermediate axes, i.e., first rotate about ēx , then perform
a rotation about the new b̄y , and then perform a rotation about the new b̄z . This is called
the body 1-2-3 convention.
In practice, the fact that we have so many different conventions is a source of many headaches/errors.
Be careful! Make sure you know which convention you’re using (especially if you’re working in
a team, make sure everyone is using the same convention!). In this course, however, we won’t
worry too much about different conventions. We will work with the space 1-2-3 convention.

4. States of the 3D quadrotor

Using Euler angles, the states of the 3D quadrotor are: x̄ = [x, y, z, φ, θ, ψ, ẋ, ẏ, ż, p, q, r]T .
Here, p, q, r correspond to angular velocities; these are directly related to φ̇, θ̇, ψ̇. It is slightly
more convenient to work with the angular velocities than with the time derivates of the Euler
angles.
Control inputs: we can use the four propeller thrusts as our control inputs. However, as with
the planar quadrotor, it will be slightly more convenient to work with the following control input
vector:
ū = [Ftot , M1 , M2 , M3 ]T , (22)
where:
Ftot : Total thrust (from 4 propellers);
M1 : Moment about x-axis;
6

M2 : Moment about y-axis;


M3 : Moment about z-axis.
It is easy to go back and forth between (F1 , F2 , F3 , F4 ) and (Ftot , M1 , M2 , M3 ).

In the next lecture, we will write down the EoMs for the 3D quadrotor and begin our discussion
of control.

You might also like