Page 1 of 1

Details of the function on RoboClaw Arduino library

Posted: Mon Jan 07, 2019 5:32 am
by Hidaka
Hello.
I am trying to communicate RoboClaw on Arduino.
For that I use the library you are providing.
About one function, SpeedAccelDeccelPositionM1()
About this argument,
What are the meanings of accel, speed, deccel, position, and flag?
Or are these detailed documents?

Thanks.

Re: Details of the function on RoboClaw Arduino library

Posted: Mon Jan 07, 2019 10:21 am
by Basicmicro Support
They are one for one to the packet serial arguments documents in the user manual. Flag is the buffer argument(0 buffer and 1 execute immediately). Note that you need to have tunes your PID settings for position control(eg you need to be using an encoder on the motor) before you can use this command.

Re: Details of the function on RoboClaw Arduino library

Posted: Tue Jan 08, 2019 6:38 pm
by Hidaka
Thank you for your help.
I had overlooked it.
What are the units of accel, deccel and speed ?
[pulse/s^2] and [pulse/s] ?

Re: Details of the function on RoboClaw Arduino library

Posted: Wed Jan 09, 2019 10:59 am
by Basicmicro Support
For accel and deccel it is encoder counts per second^2. For speed it is encoder counts per second.