srinivas.siteLearn to FlyLesson 08

Lesson 08 · Part 2 · Control

Position hold indoors

Mission: Explain why GPS does not hold a drone indoors, and see how a better position sensor changes the hold.

The interactive version of this lesson needs JavaScript. Below are its steps as text.

Steps

1. Why GPS fails indoors

Press Run. The simulator holds the drone with a position sensor that has 1 m of noise (a GPS-like assumption).

Why it matters: GPS needs a clear view of satellites, which walls and roofs block. Indoors its position error can be metres, and a drone cannot hold a place on a number that jumps that much.

2. Predict the hold

Predict first. Then press Run with the flow-like preset (3 cm of noise).

Why it matters: An optical-flow sensor measures motion over the floor, and a height sensor measures the distance down. Together they keep the position error small, which is the job of the position loop.

3. Position noise, live

Drag the position noise slider (metres), then press Run.

Why it matters: The controller acts on what it measures. Noise in the measurement becomes motion of the drone, even when the drone is still.

4. A middle noise level

Press Run with the position noise at 0.10 m (10 cm).

Why it matters: Noise and wobble are roughly proportional in this range. Halving the noise roughly halves the wobble.

5. Hold with flow-like sensing

Press the flow-like preset button on the panel, then press Run.

Why it matters: Lower sensor noise gives a steadier hold without changing the controller. Sensor choice matters as much as gains.

6. Your reading: a sensor spec

Open the Notebook tab. Find a position or distance sensor spec (for example a time-of-flight sensor) and enter its stated accuracy with its unit.

Why it matters: Accuracy specs depend on conditions, such as the light level or the surface. Check the test conditions as well as the number.

Go deeper

The maths in this lesson

measured position   p_meas = p_true + n,   n ~ N(0, σ²), sampled at 10 Hz (assumed)
velocity measured   v_meas = v_true + n_v,   σ_v = σ/2 (assumed)

A noisy measurement feeds the same cascade as Lesson 6, so the wobble is the noise passed through the position and velocity gains.

Model limits