Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Course2026
← Sensor Fusion for Robotics: Kalman Filters, Python and Real DataModule 07

Fuse Encoder and Position Data at Different Rates | Sensor Fusion 07

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Watch & study

Lecture video

Open on YouTube ↗

Video unavailable here? Watch on YouTube. Captions and playback speed are available in the player.

Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study Fuse Encoder and Position Data at Different Rates | Sensor Fusion 07. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of kalman prediction and correction in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: Fuse Encoder and Position Data at Different Rates | Sensor Fusion 07

Retain original data and timestamps so later filtering or threshold changes can be evaluated fairly.

Kalman prediction and correction

A Kalman filter combines a process model with measurements and their uncertainty. It estimates a state and covariance; a smoother-looking trace alone is not evidence of a better estimator. Incorrect timestamps, frames or noise assumptions can produce confident errors.

Model, units and assumptions

\[\hat x^-_k=F\hat x_{k-1},\quad P^-_k=FP_{k-1}F^T+Q,\quad K=P^-H^T(HP^-H^T+R)^{-1},\quad\hat x_k=\hat x^-_k+K(z-H\hat x^-_k)\]

F is transition, H is observation, Q is process-noise covariance and R is measurement-noise covariance. The linear equations assume a linear model with appropriate zero-mean noise assumptions; nonlinear models require a suitable extension.

Worked engineering example

In a scalar update with prior variance 4 and measurement variance 1, K = 4/(4+1) = 0.8. A prior position 2 m and measurement 3 m yield corrected position 2.8 m.

Practical task and evidence

Apply the following procedure to the topic of this lesson: Fuse Encoder and Position Data at Different Rates | Sensor Fusion 07.

  • Plot prediction, measurement, estimate and uncertainty band together.
  • Change R while keeping the same dataset and compare lag against noise.
  • Use a held-out reference to assess RMSE and inspect innovation bias.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. Prior value 10, prior variance 1, measurement 14 and measurement variance 3: find K and corrected estimate.

Show worked answer

K = 0.25; corrected estimate = 11.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Kalman prediction and correction: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    Welch and Bishop: Introduction to the Kalman Filter

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗