View Single Post
  #6   Spotlight this post!  
Unread 02-02-2017, 17:15
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 191
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: SRX Motion Profiling Control

Quote:
Originally Posted by Ty Tremblay View Post
T
Code:
_talon.setMotionProfileUpdateRate(int ms)  //tells the talon how frequently to process its motion profile buffer.

_talon.startProcessingMotionProfile() //tells the talon to start processing its motion profile buffer.
Then we could use _talon.getMotionProfileStatus(_status); to determine if the MP has finished running.
Why not just calculate the rate by dividing the delta time on the points in the profile by 2? Most users will get it right but why make them supply a value that could be determined automatically.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

Reply With Quote