Setting Acceleration with 1067
Posted: Thu Apr 09, 2020 8:38 am
Good day, reader!
I'm trying to rip out some custom ramping code and replace it by setting the acceleration on our stepper through the API.
We've got the rescale factor set to drive off of RPM, so setting the velocity to 1 = 1 RPM. I'm a little bit confused by the language in the API documentation:
I'm trying to rip out some custom ramping code and replace it by setting the acceleration on our stepper through the API.
We've got the rescale factor set to drive off of RPM, so setting the velocity to 1 = 1 RPM. I'm a little bit confused by the language in the API documentation:
So you can probably guess I'm confused what value to plug into the setAcceleration method. What is a count? Would it essentially be RPM/s in our instance? So, for example, right now we're getting 1 RPM every 10s. Would I simply pass in 0.1?The rate at which the controller can change the motor's Velocity.
Units for Position, Velocity, and Acceleration can be set by the user through the RescaleFactor.The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
The default units for this motor controller are 1/16steps per count.