MotionProfiledController
#Motion Profile Control
Motion profiles generate a changing reference that guides a mechanism toward a destination. Instead of requesting the final position immediately, the profile produces intermediate position and velocity setpoints using configured velocity and acceleration constraints. A feedback controller then calculates the output needed to track that reference.
This section covers EasyProfiledPID, which combines a trapezoidal motion profile with PID control. Learn how to define constraints, initialize the profile from a measured position and velocity, and set goals with a desired final velocity. The guide also explains how each calculation advances the profile using the configured control period.
Additional topics include reading the generated reference, updating constraints, enabling continuous input, and combining profile velocity and acceleration with feedforward. The distinction between atSetpoint() and atGoal() explains how a mechanism can track its current reference before reaching its destination. Profile constraints govern planned motion; they do not directly clamp motor power or guarantee that the mechanism follows the plan.
Last updated 2026-11-16