View Single Post
  #4   Spotlight this post!  
Unread 12-20-2012, 07:40 AM
winchymatt winchymatt is offline
Registered User
no team
 
Join Date: Dec 2012
Location: United Kingdom
Posts: 3
winchymatt is an unknown quantity at this point
Re: Motion Profiling

Quote:
Originally Posted by AustinSchuh View Post
DT is the period of your loop.

Acceleration, velocity and position are from the trajectory planner.

254's 2011 code has this as part of the drive train autonomous code. It should be available in the whitepapers on this site.

Austin
Great thanks, yes I should have known dt would be discrete time! I checked out the code and the trajectory planner was a great help! Imported the ContinuousAccelFilter class into my borland builder test app, works really well! Thanks for the pointers.

So on a side note, if you were sending just position information to the PID controller, and did not have velocity and acceleration data, could one derive the velocity and acceleration by differentiating the position data with the previous position.. I guess this would not produce a true goal velocity, but may give some feed forward gain??

Matt.