Motion Magic Rotations

Hey guys,

I was going through the TalonSRX Software Reference Manual trying to figure out how the Motion Magic profile can be used to spin a motor a specific amount of rotations. We’re getting an encoder signal, but when I use

talon.set(20);

it accelerates to full speed and doesn’t stop.

I recommend you follow section 12.8. Motion Magic Closed-Loop Walkthrough – Java.