← Labs

Motion profile lab

Compare a short move with a long move under the same limits.

Predict, then test

  1. For a long move, predict whether the mechanism reaches its velocity limit.
  2. Shorten the distance until the cruise time is zero. What happens to peak speed?
  3. Challenge: lower acceleration while keeping distance and maximum velocity fixed. Compare the duration and explain the tradeoff.

This ideal one-dimensional rest-to-rest reference profile assumes instantaneous acceleration changes, unlimited jerk and perfect tracking. It is a requested motion, not a prediction of real hardware performance.

Profile inputs

Results

Reference samples at equal fractions of total duration
Time (s) Position (m) Velocity (m/s) Acceleration (m/s²)

Model

Accelerate at the limit, cruise at the speed limit if the distance allows, then decelerate at the same magnitude. A short move has a triangular speed profile: it switches directly from acceleration to deceleration before reaching maximum speed. Endpoints are at rest. At exact phase boundaries the table reports the next phase’s acceleration.

WPILib: Trapezoidal motion profiles