Predictive Adaptive Localization Engine
A runtime intelligence framework that governs when and how a VEX robot corrects its estimated position during autonomous — eliminating overcorrection on fast maneuvers and undercorrection during sensor drift.
01 / The Problem
When the robot applies a localization correction mid-sprint, the correction vector compounds with already high velocity — causing the robot to overshoot targets by 15-30% in high-speed autonomous modes.
When sensors drift slowly, correction thresholds tuned for accuracy ignore small but accumulating errors. By late in the autonomous period, position error exceeds recoverable bounds.
The naive approach — apply all corrections blindly at every timestep — fails both ways. What we needed was a system that knew when to trust its own estimates and when the sensor data was actually informative versus noisy. That insight is PALE's core job.
02 / The System
PALE wraps the 300-particle MCL system and scores the particle cloud at every timestep. A tight cluster means high localization confidence — corrections are safe to apply. A diffuse cloud signals ambiguity — corrections are held until confidence recovers or a higher-priority correction event triggers.
At each 50Hz cycle, PALE computes the variance of all 300 particle positions. Low variance = high confidence. High variance = hold correction.
Known high-drift maneuvers (sharp turns, acceleration peaks) open a preemptive correction window so the system catches errors before they compound.
Only corrections that exceed the confidence threshold AND pass the velocity gate get applied. Others are queued, averaged, and applied when conditions are right.
PROS C++ — Confidence scoring (simplified)
02.5 / Under the Hood
PALE sits on top of a Monte Carlo Localization engine: 300 weighted particles each representing a hypothesis of where the robot is on the field. After every odometry update, particles are resampled proportional to how well they match the sensor readings.
03 / The Team
Captain · Software
Built PALE, RouteLab, and the MCL system. Leads autonomous strategy and software architecture.
Software · Libraries
Created WhaleLib, the core motion control library powering the robot's subsystems and driver assistance features.
Software · Routing
Handles autonomous route design and path planning, translating field strategy into executable robot movement sequences.
04 / Results
PALE shipped mid-season and ran in every match for the remainder of Pushback. Across qualification matches, elimination rounds, and the State Skills run, autonomous failure rate dropped from 1-in-2 to 1-in-7 — an 86% reduction. Route completion climbed to 93% and held even on the mirrored blue-side autonomous, which previously had a known IMU drift issue.
The MCL simulator visualizes all 300 particles updating in real-time as the robot moves through an autonomous route.