![]() |
APIs, concepts, guides, and more
|
void MoveVelocitySCurve | ( | const double *const | velocity, |
const double *const | accel, | ||
const double *const | jerkPct ) |
*velocity | Array of target velocities (UserUnits/second). |
*accel | Array of average accelerations (UserUnits/second/second). (peak up to 2× accel when jerkPercent = 100, see below) |
*jerkPct | 0.0 to 100.0 - The percentage of acceleration time which is smoothed. |
Using a non-zero JerkPercent increases the maximum acceleration above the user-specified average.
If your system can’t handle the higher peak, you risk overshoot or excessive load. The relation between average acceleration and maximum acceleration is:
\[ Maximum Acceleration \;=\; \frac{accel}{1 - \bigl(jerkPercent \times 0.005\bigr)} \]
See the S-Curve Motion concept page for more information.