Deep Dives

This section covers the key algorithms and techniques that power LibSTP’s sensor and motion systems. Understanding these is not required to use the SDK — the high-level steps handle everything — but it helps when tuning parameters or debugging unexpected behavior.

PageWhat It Does
Line FollowingPID-based edge tracking with profiled and directional variants
LineupSingle-pass geometric line alignment
IR Sensor Calibration (K-Means)Clustering-based threshold detection for IR sensors
Wait for LightKalman-filtered start lamp detection with test/arm workflow