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
Hints
Solution
Step 1: How hard does the wind twist the drone? At the start the drone is at rest in a $4\ \text{m/s}$ wind. With $\rho = 1.225\ \text{kg/m}^3$, the frame's side area $A = 0.12\ \text{m}^2$ and a normal-force coefficient of $0.8$: $$F \approx \tfrac{1}{2} \times 1.225 \times 4^2 \times 0.12 \times 0.8 = 0.94\ \text{N}$$ Acting $0.15\ \text{m}$ above the centre of mass, that is a torque $$\tau_{wind} \approx 0.94 \times 0.15 = 0.14\ \text{Nยทm}$$ Gusts change this all the time, sometimes doubling it, as the drone is blown along at a different speed from the air.
Step 2: Stiffness The controller must hold the tilt below $10ยฐ = 0.175\ \text{rad}$: $$\theta \approx \frac{\tau_{wind}}{k_p} \le 0.175 \quad\Rightarrow\quad k_p \ge \frac{0.14}{0.175} = 0.8\ \text{Nยทm/rad}$$ That is for the steady wind alone, so allow a margin for gusts: $k_p \approx 2$ gives $\theta \approx 0.14/2 = 0.07\ \text{rad} = 4ยฐ$. The factory $k_p = 0.2$ would need a tilt of $0.14/0.2 = 0.7\ \text{rad} = 40ยฐ$ to resist the wind, so it tips over.
Step 3: Damping With $k_p = 2$: $\omega_n = \sqrt{2/0.0264} = 8.7\ \text{rad/s}$. Critical damping would be $$k_{d,crit} = 2\sqrt{k_p I} = 2\sqrt{2 \times 0.0264} = 0.46\ \text{Nยทmยทs/rad}$$ A damping ratio of about $0.65$ settles quickly without overshoot: $k_d \approx 0.65 \times 0.46 = 0.3$.
Answer: $k_p \approx 2$, $k_d \approx 0.3$. The simulation shows a maximum tilt of $4.0ยฐ$, and the drone never drops below $3.4\ \text{m}$.
Why damping matters: at $k_p = 1$, the drone with no damping is pumped by the gusts until it tilts $29ยฐ$ and crashes, yet adding just $k_d = 0.1$ keeps it within $7.5ยฐ$. A stiffer controller ($k_p \ge 2$) copes even without damping, but it still wobbles more.
Why it sinks when it tilts: the rotors lift exactly the weight only when level. At $10ยฐ$ the vertical lift is $\cos 10ยฐ = 98.5\%$ of the weight, so a drone that keeps tilting slowly loses height. That is what the second check guards against.
How others did
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.