-
do you have plans to include a separate rate for accel and decel ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Thank you for your interest in this library, and for your suggestion. I hadn't thought of having different rates for acceleration and deceleration, but I can see how that could be useful. It didn't actually take much time to separate accel and decel, A version of the library with separate accel and decel can be downloaded here. Derivs_Limiter.setAccelLimitActuallyAcceleration() sets accel while every other reference to acceleration limits is actually deceleration. I don't want to make a new release yet since I want to think about the proper way to add this option instead of this quick hack. Here is an example showing velocity increasing at a slower rate than it decreases at. The updated Derivs_Limiter.h can be copied into a second tab in the Arduino IDE or pasted into the top of the editor (or the Derivs_Limiter folder can be put in Documents/Arduino/libraries. (let me know if you have issues getting it to work)
Please note that these changes have not been tested very thoroughly. Please test it yourself before trusting it, and please let me know if this is what you were looking for or if there's another way that I could help. |
Beta Was this translation helpful? Give feedback.
Thank you for your interest in this library, and for your suggestion. I hadn't thought of having different rates for acceleration and deceleration, but I can see how that could be useful. It didn't actually take much time to separate accel and decel, A version of the library with separate accel and decel can be downloaded here.
Derivs_Limiter.setAccelLimitActuallyAcceleration() sets accel while every other reference to acceleration limits is actually deceleration.
I don't want to make a new release yet since I want to think about the proper way to add this option instead of this quick hack.
Here is an example showing velocity increasing at a slower rate than it decreases at. The updated D…