Velocity, Accelleration, and Jerk March 29, 2010 08:21AM Registered: 10 years ago Posts: 278
So I've come to terms that I probably will not solve the motion problem using polynomials and analytic techniques -- limiting velocity, acceleration, and jerk to a pre-specified set of limits; it feels I could do it given enough time and concentration, but I've not had the time nor concentration to focus on it outside of my other responsibilities.

So, I will try a new tactic. Instead of:
1. simulate the motion on host using (general polynomial) splines.
2. analytically adjust those (general polynomial) splines to have the desired velocity, acceleration and jerk limits.
3. Send cubic spline approximations to firmware to be processed as stepwise cubic splines, generating the timing needed between steps.

I've started to code the following host pipeline:
1. simulate the exact steps on host to get the desired curve(s).
2. compute delay required between steps to have the (average) desired velocity, accelleration, and jerk limits.
3. Determine a technique to communicate steps to firmware to reduce bandwidth and realtime requirements from host.
3a. Could use linear, quadratic or cubic splines on the step + timing information. Cubic may yield the best compression, but linear may be enough for the majority of motion.
3b. Could use direct coding of steps, using as little as 1 byte per step. Rough back of envelope calculations put requirement of ~1K to ~2K RAM buffer -- assuming 2K-4K steps per second. Would firmware require decelleration logic to handle buffer near empty, to prevent overshoot if host or error retransmition logic cannot keep up with firmware?

Any thoughts on 3b? I have heard suggestions that we can transmit the exact steps directly to the firmware; anyone have thoughts or experience making this work without running into too many realtime problems or using too much memory? I don't think it will be too much of a problem to convert steps into (linear, quadratic, or cubic) splines, but it does add another level of processing and complexity.
 Re: Velocity, Accelleration, and Jerk March 30, 2010 03:43AM Registered: 9 years ago Posts: 105

Is there anything that can be learned from these guys?
 Re: Velocity, Accelleration, and Jerk March 30, 2010 08:21AM Registered: 10 years ago Posts: 278
JohnnyCooper Wrote:
-------------------------------------------------------