Omniadisce

Tune the drone's flight controller for gusty wind

Simulation Advanced New no attempts yet
Interactive 3D simulation Read the problem, then try your answer in the simulation below. Go to it
A $1.2\ \text{kg}$ quadcopter ($50 \times 50\ \text{cm}$ frame, $12\ \text{cm}$ tall) hovers $5\ \text{m}$ above the ground. Its four rotors together lift exactly its weight. A flight controller keeps it level by applying a torque
$$\tau = -k_p\,\theta - k_d\,\omega$$
where $\theta$ is the tilt and $\omega$ the rate at which it tilts.

A $4\ \text{m/s}$ wind blows, with gusts of up to $5\ \text{m/s}$ on top. Air pushes on the frame with a drag coefficient of $1.0$; because the frame's centre of pressure sits $15\ \text{cm}$ above its centre of mass, every change in the airflow also tries to tip the drone over. Its moment of inertia about a horizontal axis is $I = 0.0264\ \text{kgยทm}^2$.

With the factory settings ($k_p = 0.2$, $k_d = 0$) the drone hovers perfectly in still air, but in this wind it flips and crashes. Tune the controller so it never tilts more than $10ยฐ$ and stays at least $2\ \text{m}$ above the ground.
Principles it rests on
  • Aerodynamic force on the frame: $F \approx \tfrac{1}{2}\rho v^2 A\,C$, where $v$ is the speed of the air relative to the drone.
  • A force applied away from the centre of mass produces a torque $\tau = F\,d$.
  • Proportional control: in equilibrium the controller's torque $k_p\theta$ balances the disturbance, so the tilt is $\theta \approx \tau_{wind}/k_p$.
  • Damping: the controlled drone is a torsional oscillator with natural frequency $\omega_n = \sqrt{k_p/I}$ and damping ratio $\zeta = k_d / (2\sqrt{k_p I})$. Without damping, repeated gusts keep it swinging.
  • A tilted rotor disc lifts only $T\cos\theta$, so a drone that tilts also sinks.
Question
Which controller stiffness $k_p$ and damping $k_d$ keep the drone level in the gusts?
Your setup must satisfy
  • The drone never tilts more than 10ยฐ
  • The drone stays at least 2 m above the ground
Drag to orbit ยท scroll to zoom ยท right-drag to pan
Your settings
Nobody has tried this yet.Be the first. Your answer starts the stats.

Only each person's first answer, given before viewing the solution, is counted.

Discussion 0 comments

Log in to join the discussion.

× Enlarged view