Motion Magic in Tuner X
Plain position control asks for the whole move at once. Motion Magic hands the loop a moving target instead, so the mechanism accelerates, cruises, and stops smoothly. The Slot 0 gains you already saved carry over unchanged.
- Slot 0 gains you trust, saved in PID Tuning in Tuner X.
- The same Signal & Control plot, still showing target and measurement.
What mechanism are you working on?
The lesson below is written for the one you pick. Switch back any time to read it for the other.
Motion Magic calculates a target that moves from where the mechanism is to where you asked it to go, one small step at a time.
It needs two values. A cruise velocity caps the speed, and an acceleration limits how fast the speed changes. There is a third value, jerk, which we don't recommend tuning unless the mechanism is very heavy.
- Position profile
- The target is an angle. Both cruise velocity and acceleration apply, and the profile plans its own stop so the mechanism arrives with no speed left.
- Velocity profile
- The target is a speed. Only acceleration applies, because there is no arrival to plan. The profile ramps the speed target instead of stepping it.
Set the first limits
Start with extremely small values to see what effect the profile has. You can always speed it up later.

- On the Control tab, set Control Mode to
MotionMagicVoltageMotionMagicVelocityVoltage, a control request you will meet again in Mechanisms. - Under the Motion Magic config section, enter a cruise velocity of
0.5rotations per second and an acceleration of1rotation per second squared. Both are in mechanism rotations, not motor rotations. - Under the Motion Magic config section, enter an acceleration of
20rotations per second squared. That is the only profile number this mode reads. The flywheel reads the motor's own sensor with no ratio set, so it is in motor rotations. - Ask for a speed of
20rotations per second on the request itself. A flywheel's speed is the target you send, not a config you save. - Leave jerk at zero. Zero means no jerk limit, and the profile stays a plain trapezoid.
- Press Apply.
- Enable the device again, since changing Control Mode disabled it, then run a move and watch the plot.

Cruise velocity does nothing here
Tuner X shows a cruise velocity box for every mechanism. Motion Magic Velocity never reads it, so the speed you request is the speed, and acceleration is the only thing shaping how it gets there.
Raise the limits
The motor should now track the profile cleanly on every run, so you can start raising the limits.
- Raise acceleration one step at a time and watch the ramp. Stop when the measurement falls behind, the current spikes, or the structure shakes.
- Raise cruise velocity the same way, watching the flat section instead of the ramp.
- Run the longest move you will ever ask for, in both directions. The long move is what exposes cruise tracking.
- Run the shortest useful move too. It never cruises, so it tests the stop instead.
- Spin up from a standstill to your full speed. That is the longest ramp the wheel will ever do, and it is where the loop falls behind first.
- Then step between two speeds without stopping. A small change should arrive almost at once, and the wheel should settle without hunting.
Don't tune to the very maximum. As the battery drains over a match, the mechanism can fall behind the profile and track worse. We typically leave the limits around 80% of the maximum we found.
Check your work
Run the same move five times from a standstill, alternating direction. You are done when the five traces sit on top of each other.
Spin up from rest to the same speed five times, letting the wheel stop in between. You are done when the five traces sit on top of each other.
You should see
- The measurement follows the reference as it speeds up, holds, and slows to a stop.
- The measurement follows the reference up the ramp and holds with it.
- The mechanism arrives once and stays there, with no bounce.
- The wheel reaches the speed once and holds it, with no hunting.
- Current peaks during acceleration and settles once the profile stops asking for more.
- The long move and the short move both stop cleanly.
- A spin-up from rest and a small step between speeds both settle.
Check yourself
What does Motion Magic change about the feedback loop you tuned last lesson?
You leave jerk at zero in the Motion Magic configs. What does that do to the profile?
Which units does Tuner X expect for cruise velocity and acceleration?
Which units does Tuner X expect for the flywheel's Motion Magic acceleration?
A short move ramps up, turns around, and comes back down without ever holding a flat speed. What should you change?
You ask for a speed just above the one the wheel already holds, and it arrives with no visible ramp. What should you change?
The measurement tracks the reference through the ramp, then sags below it for the whole cruise section, while motor voltage still has headroom. What do you do?
The measurement follows the reference up the ramp, then settles below the speed you asked for and stays there. Motor voltage still has headroom. What do you do?
The measurement lags the reference from the first moment of the move and never catches up. What comes first?