Algorithm Search⌘K

Modelcore

Quadrotor dynamics

Also called quadcopter model.

A rigid body in SE(3) driven by four rotor thrusts that give a total thrust along the body axis and three moments.

A quadrotor is an aerial robot with four rotors in a plane, each of which pushes along the same body axis. The standard model treats it as one rigid body that moves in space, in the group SE(3) of positions and orientations, with the four rotor thrusts as the inputs. The rotors give a total thrust along the body zz axis and three moments about the body axes. So the vehicle has six degrees of freedom and only four inputs: it cannot push sideways, and it must tilt to accelerate in a horizontal direction. Opposite rotors spin the same way and neighbor rotors spin the other way, so that their drag moments cancel at hover, and a difference in their speeds turns the vehicle about its vertical axis. This page uses a world frame with the zz axis up and g=9.81g = 9.81 m/s². Some sources, such as Lee, Leok and McClamroch, use zz down; the equations here are converted.

The machine

State. The position x∈R3x \in \mathbb{R}^3 of the center of mass in the world frame (m), its velocity vv (m/s), the attitude R∈R \in SO(3), whose columns are the body axes b1,b2,b3b_1, b_2, b_3 in world coordinates, and the body angular velocity Ω\Omega (rad/s). The state space has dimension 12.

Inputs. The thrusts f1,…,f4≥0f_1, \dots, f_4 \ge 0 of the four rotors (N). Each rotor at speed ωi\omega_i gives the thrust fi=kFωi2f_i = k_F \omega_i^2 along b3b_3, and a drag moment kMωi2k_M \omega_i^2 about b3b_3 against its direction of spin. Write c=kM/kFc = k_M / k_F (m).

Parameters. The mass mm (kg), the inertia matrix JJ about the center of mass in body coordinates (kg m²), the arm length ll from the center to each rotor (m), and cc.

Equations. With e3=(0,0,1)e_3 = (0, 0, 1), these are the Newton-Euler equations for the body:

x˙=v,mv˙=fRe3−mge3,R˙=RΩ^,JΩ˙=M−Ω×JΩ.\dot x = v, \qquad m \dot v = f R e_3 - m g e_3, \qquad \dot R = R \hat\Omega, \qquad J \dot\Omega = M - \Omega \times J \Omega.

Here Ω^\hat\Omega is the skew-symmetric matrix of Ω\Omega, ff is the total thrust and MM is the moment in body coordinates.

The mixer. In the "+" layout, rotor 1 is on the +b1+b_1 arm, rotor 2 on +b2+b_2, rotor 3 on −b1-b_1 and rotor 4 on −b2-b_2. Rotors 1 and 3 spin clockwise seen from above, and rotors 2 and 4 counterclockwise. Then

(fM1M2M3)=(11110l0−l−l0l0c−cc−c)(f1f2f3f4).\begin{pmatrix} f \\ M_1 \\ M_2 \\ M_3 \end{pmatrix} = \begin{pmatrix} 1 & 1 & 1 & 1 \\ 0 & l & 0 & -l \\ -l & 0 & l & 0 \\ c & -c & c & -c \end{pmatrix} \begin{pmatrix} f_1 \\ f_2 \\ f_3 \\ f_4 \end{pmatrix}.

The rows of M1M_1 and M2M_2 are the moments ri×fib3r_i \times f_i b_3 of the forces at the rotor positions rir_i. The last row is the sum of the drag moments. For l,c>0l, c > 0 the matrix is invertible:

f1,3=f4∓M22l+M34c,f2,4=f4±M12l−M34c.f_{1,3} = \frac f4 \mp \frac{M_2}{2l} + \frac{M_3}{4c}, \qquad f_{2,4} = \frac f4 \pm \frac{M_1}{2l} - \frac{M_3}{4c}.

In the "×" layout, the arms are at 45°45° to b1b_1, and each moment row has all four rotors with factors ±l/2\pm l/\sqrt 2; the matrix is still invertible.

Standing assumptions. The body is rigid and symmetric enough that JJ is constant. The rotor thrust changes at once when the command changes; in reality a motor needs some tens of milliseconds. The thrust is along b3b_3 with no sideways part. The model leaves out rotor drag and blade flapping, which grow with the airspeed, the gyroscopic moments of the rotors, the ground effect near the floor, and wind. Mahony, Kumar and Corke discuss these effects.

What it counts

The model predicts the motion of the vehicle for given rotor thrusts, and so it gives the thrusts that a wanted motion needs. Three cases can be checked by hand, for m=0.5m = 0.5 kg, l=0.17l = 0.17 m and c=0.016c = 0.016 m.

  • Hover. With R=IR = I (or any rotation about e3e_3), v=0v = 0 and Ω=0\Omega = 0, the state is constant if and only if f=mgf = mg and M=0M = 0, which gives fi=mg/4=1.22625f_i = mg/4 = 1.22625 N for each rotor.
  • Tilt. To hold the height with b3b_3 tilted by an angle θ\theta from the vertical, the vertical part of the thrust must be mgmg, so f=mg/cos⁡θf = mg/\cos\theta. For θ=10°\theta = 10°, this is 4.98074.9807 N, and the horizontal acceleration is gtan⁡θ=1.7298g \tan\theta = 1.7298 m/s².
  • Yaw. A yaw moment M3=0.01M_3 = 0.01 N m at hover thrust needs f1=f3=1.22625+0.15625=1.3825f_1 = f_3 = 1.22625 + 0.15625 = 1.3825 N and f2=f4=1.07f_2 = f_4 = 1.07 N.

Energy (theorem). Let E=12m∣v∣2+12ΩTJΩ+mgx3E = \tfrac12 m |v|^2 + \tfrac12 \Omega^T J \Omega + m g x_3. Along every solution, E˙=f vTRe3+ΩTM\dot E = f\, v^T R e_3 + \Omega^T M. Proof. From the equations, mvTv˙=fvTRe3−mgv3m v^T \dot v = f v^T R e_3 - m g v_3, the derivative of mgx3m g x_3 is mgv3m g v_3, and ΩTJΩ˙=ΩTM\Omega^T J \dot\Omega = \Omega^T M because ΩT(Ω×JΩ)=0\Omega^T(\Omega \times J\Omega) = 0. □\square So with the rotors off, the energy is constant. A simulator that does not keep it constant has an integration error.

Relation to other models

  • The rigid body. The model is the free rigid body with a body-fixed force along one axis and a body moment. It is a special case of the Newton-Euler equations and of floating-base dynamics with no limbs.
  • The planar quadrotor. Restricting the motion to a vertical plane gives 3 degrees of freedom (y,z,ϕ)(y, z, \phi) with 2 inputs, thrust and moment. It shows the same tilt-to-move behavior and is a common teaching model.
  • The point mass with a thrust vector. If the attitude loop is much faster than the position loop, the vehicle acts as a point mass with a thrust vector fRe3f R e_3 that the controller can point in any upward direction. Trajectory planners such as minimum snap use this view, and the flatness map makes it exact.
  • Linearization at hover. With small roll ϕ\phi, pitch θ\theta and yaw ψ\psi, Re3≈(θ,−ϕ,1)R e_3 \approx (\theta, -\phi, 1), so x¨1=gθ\ddot x_1 = g\theta, x¨2=−gϕ\ddot x_2 = -g\phi and x¨3=(f−mg)/m\ddot x_3 = (f - mg)/m. This linear model is controllable and is the base of the LQR and PID designs.
  • Attitude charts. Euler angles have a singular set; unit quaternions double cover the rotations. The model above uses RR itself.
  • Other multirotors. Hexarotors and octorotors have more rotors; their mixer is a wide matrix, and the choice among its many solutions can handle a failed rotor.

Known results in the model

  • Underactuation. Four inputs for six degrees of freedom: the horizontal force comes only from tilting, and the vehicle cannot hold a tilted attitude and a fixed position at once.
  • Differential flatness. The position and the yaw angle are flat outputs: the whole state and the inputs are functions of them and their derivatives up to the fourth, when the thrust is not zero. See differential flatness of the quadrotor.
  • Geometric tracking control. A law on SO(3)SO(3) follows a position and heading reference, with exponential stability of the attitude error for errors below 90 degrees and almost global convergence of the attitude. See geometric tracking control on SE(3).
  • Input limits. With 0≤fi≤fmax⁡0 \le f_i \le f_{\max}, the reachable (f,M)(f, M) form a box mapped by the mixer, a parallelepiped. A large yaw moment takes thrust from two rotors, so yaw is the first axis to saturate on most vehicles.
  • Thrust margin. A common design rule asks for a maximum total thrust of about twice the hover thrust mgmg, to leave room for tilting and for control moments (heuristic).

References

  1. Robert Mahony, Vijay Kumar and Peter Corke, Multirotor aerial vehicles, modeling, estimation, and control of quadrotor, IEEE Robotics and Automation Magazine 19(3), pp. 20-32 (the rigid body model, the rotor thrust and drag moment, the map from rotor forces to thrust and moments, and the aerodynamic effects that the basic model leaves out)
  2. Daniel Mellinger and Vijay Kumar, Minimum snap trajectory generation and control for quadrotors, Proceedings of the 2011 IEEE International Conference on Robotics and Automation, the model section (a z-up world frame, thrust along the body z axis, and the rotor forces and moments)
  3. Taeyoung Lee, Melvin Leok and N. Harris McClamroch, Geometric tracking control of a quadrotor UAV on SE(3), Proceedings of the 49th IEEE Conference on Decision and Control, the dynamic model (with the z axis down, which this page converts to z up)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/VFWRCA/text.yaml