Omniadisce

Hold a drone steady in turbulent 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}$ drone must hover at a fixed point $4\ \text{m}$ above the ground. Its position controller asks for an acceleration
$$\vec a = k_p\,(\vec x_{goal} - \vec x) - k_d\,\vec v$$
and tilts the drone to get it.

The wind blows at $6\ \text{m/s}$ at a height of $10\ \text{m}$ but is slower near the ground (wind shear, exponent $0.3$), and it is turbulent: eddies up to about $20\ \text{m}$ across make the air speed vary with a standard deviation of $2\ \text{m/s}$ in every direction. The drone's side area is $0.06\ \text{m}^2$ with a drag coefficient of $1.0$.

With the starting settings ($k_p = 0.3\ \text{s}^{-2}$, $k_d = 0.5\ \text{s}^{-1}$) the drone is blown metres away. Tune the controller so that, after settling for $2\ \text{s}$, it never strays more than $0.75\ \text{m}$ from its hover point.
Principles it rests on
  • Wind shear (power law): $v(h) = v_{ref}\,(h/h_{ref})^{\alpha}$.
  • Drag: $F = \tfrac{1}{2}\rho v^2 A C_d$. A change $\delta v$ in the air speed changes the force by about $\rho v A C_d\,\delta v$.
  • The controlled drone is a mass on a spring with a damper: $\ddot x + k_d \dot x + k_p x = a_{wind}$, with natural frequency $\omega_n = \sqrt{k_p}$ and damping ratio $\zeta = k_d/(2\sqrt{k_p})$.
  • A steady push $a$ moves a spring to a new rest point $a/k_p$. Pushes slower than $\omega_n$ do much the same, so the drift falls as $1/k_p$.
Question
Which position gains $k_p$ and $k_d$ keep the drone within $0.75\ \text{m}$ of its hover point?
Your setup must satisfy
  • After settling (from t = 2 s) the drone stays within 0.75 m of its hover point
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