Presets
Playback
Airframe
Target
Or click anywhere in the sky.
Target
Environment and load
Thinner air and payload both raise the thrust the rotors must make.
Controller gains
The attitude loop is a PD law: torque = I (wn^2 e - 2 zeta wn w).
Layers
Model checks
The science
Planar flight in three loops
In the x-z plane the vehicle has mass m and pitch inertia I. The two rotor groups push with Tf and Tr: total thrust accelerates it along the tilted thrust axis, m ax = T sinθ + Dx, m az = T cosθ + Dz − m g, and the difference makes a pitch torque I θ'' = l (Tr − Tf). A quadcopter can only accelerate sideways by tilting, so the controller has three nested loops: altitude PID sets total thrust, a position PD sets the pitch reference, and a fast attitude PD with natural frequency wn and damping ζ sets the torque. Motors respond with a 50 ms lag and saturate at their maximum speed.
Power and endurance
Each rotor needs induced power from momentum theory, P = κ T (vi + Vc) with vi = √(T / 2ρA), plus profile power from a figure of merit; air density follows the ISA atmosphere. Motors have an efficiency, the avionics draw a constant load, and the battery is a cell with an open-circuit voltage curve and internal resistance, so the current is I = (Voc − √(Voc2 − 4 R P)) / 2R. The third graph shows the level-flight power: it dips at a moderate speed because forward motion unloads the rotors, which is why best endurance is not hovering.
Honest simplifications: planar motion only (no roll, yaw or coupling), rigid body with a fixed drag area, no ground effect, rotor-flapping or sensor noise, gust model made of two sine waves. Educational model, not a flight-controller design.
What to try
- Choose Loose attitude loop and send the flag 50 m away: the pitch rings before it settles.
- Set the wind to 6 m/s and the gust to 4 and watch power climb as the drone leans into it.
- Raise the site altitude to 3000 m and add 1.2 kg: the motor-load readout approaches its limit.
- Fly at the best-endurance speed from the third graph and compare minutes of flight with hovering.