Other
Derivs_Limiter
Joshua Phelps <joshuaphelps127@gmail.com>
This library can be used to limit the first and second derivative of a variable as it approaches a target value.
Its easiest to think of in terms of position, velocity, and acceleration. If used with a servo, for example, the servo will smoothly move to a target value with a trapezoidal velocity profile. The formula in this program supports being run at uneven intervals, and allows for editing the target, position, and velocity while it runs since it does not rely on calculating a motion profile ahead of time.
Go to repositoryThis library is compatible with all architectures so you should be able to use it on all the Arduino boards.