Lite / Independent Engineering Research / Week 15
Dead reckoning and why it drifts
Count every wheel turn perfectly and you still end up metres from where you think you are. Where does the error come from, and how fast does it grow?
Why should I care?
Dead reckoning is always available: no landmark, no radio, no sky needed. It is also always wrong, in a predictable way. Knowing how fast it drifts tells a planner how often the rover must stop for an absolute fix.
- Explain dead reckoning as integration of relative motion.
- Show that a scale bias gives error proportional to distance and a heading bias gives cross-track error growing faster.
- Contrast bias-driven drift with random-walk error that grows like √n.
Predict
A rover's heading is off by a constant 1°. After driving 500 m, roughly how far sideways is it from its intended track?
- About 0.5 m
- About 9 m
- About 50 m
- About 1 m
Guess first, then reveal
500 × sin 1° ≈ 8.7 m. Small angles make big sideways errors over long drives: 1° is about 1.75 cm per metre.
Discover
Start with only 3% slip bias and no heading drift: double the steps and check the error doubles. Now set slip to 0 and heading drift to 0.1° per step: double the steps and watch the error roughly quadruple. Finally use noise only, and compare how slowly random error grows.
What the interactive shows (text version)
The drift rover draws the straight true track and the dead-reckoned track; the readout states the final error and the bias-only predictions for along-track and cross-track error.
Watch (optional)
Watch for: Notice why the rover needs an independent position fix from images: wheel-based estimates alone build up error.
A quick official look at how a rover works out where it is with no GPS, using its own images.
“How Perseverance Learned to ‘Self-Locate’ on Mars” by NASA Jet Propulsion Laboratory (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Integration accumulates
Dead reckoning adds up measured steps: x[k] = x[k−1] + d[k]·cos θ[k], y[k] = y[k−1] + d[k]·sin θ[k]. Any error in d or θ is added in and never removed. The estimate's uncertainty can only grow until an absolute measurement arrives.
Three growth laws
A scale bias (wheels over-reading by fraction s) gives along-track error s·d: linear in distance. A constant heading error θ₀ gives cross-track error d·sin θ₀: also linear. A heading drift rate b (gyro bias) makes the heading error grow with time, so cross-track error grows like ½·v·b·t². Independent random step errors grow only like √n.
Living with drift
The cure is not a perfect wheel but an occasional absolute fix: a landmark, a sun sensor, an orbital image. A drift model tells you the spacing: if heading drift adds 1 m of error every 100 m and the corridor allows 2 m, fix at least every 200 m, with margin.
Explain it another way
Intuitive
Walk across a field with your eyes closed, counting steps. You will be roughly the right distance away but drift off to one side, and the further you go, the faster you drift.
Technical
With heading error θ(t) = θ₀ + b·t, cross-track error y(t) = ∫v·sin θ(t)dt ≈ v(θ₀t + ½bt²) for small angles. Bias terms dominate long drives; noise terms dominate short ones.
Mathematical
Gyro bias 0.01 °/s = 1.745 × 10⁻⁴ rad/s, speed 5 cm/s, t = 1,000 s: y ≈ ½ × 0.05 × 1.745 × 10⁻⁴ × 10⁶ ≈ 4.4 m after just 50 m of driving.
Applied
Mars rovers measure slip by comparing wheel odometry with visual odometry (tracking features between camera frames). On steep sandy slopes slip can be large, so rovers switch to visual odometry more often there.
Worked example 1
Wheels over-read by 3%. Distance 100 m. Along-track error?
0.03 × 100 = 3 m. The rover thinks it is 3 m further along than it is.
Common mix-ups
Better wheel encoders fix dead reckoning.
✓ Encoders count turns; slip and heading drift are errors in what the turns mean. Only absolute references remove accumulated error.All odometry error grows like √n.
✓ Random error does. Biases grow linearly or faster, and they dominate long drives.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Using the drift rover, find the largest step count for which the final error stays under 2 m with 3% slip and 0.05° per step heading drift. That is your fix spacing. Then halve the gyro drift: how much further can the rover go between fixes?
Reflect
Why is a slowly growing bias more dangerous than a large but random error?
Write your answer on paper or in your own notes. Lite never stores what you write.