View Single Post
  #2   Spotlight this post!  
Unread 22-01-2017, 13:34
abcurrie abcurrie is offline
Registered User
FRC #2619
 
Join Date: Mar 2009
Location: Midlandm MI
Posts: 1
abcurrie is an unknown quantity at this point
Re: CANTalon MotionMagic control mode

I just asked CTRE the same question and I am posting the response here for others:

"
There's a new manual version going out soon, but I can give you the basic information in the meantime.

Motion Magic is a new control mode for Talon SRX that provides the benefits of Motion Profiling without needing to generate the profile data. You use the MotionMagic control paramter when setting the Talon Control Mode.

The first step for Motion Magic is setting up your position PIDF values as normal (see the Soft. Ref. Manual). You then use two additional calls (setMotionMagicAcceleration(double) and setMotionMagicCruiseVelocity(double)) to set the desired acceleration and cruise velocity parameters.

Once this has been done, you can use set() calls as normal to set the position that Talon will move to, and the motion will follow a trapezoidal motion profile (as described in the motion profiling documentation).

That's it! It gives you flexibility to have all movements follow a trapezoidal motion profile without actually generating the profile points.

Let me know if you have any additional questions.

Regards,

Jacob Caporuscio
Software/Hardware Engineer
CTR Electronics
"
Reply With Quote