Details of the function on RoboClaw Arduino library

General discussion of using Roboclaw motor controllers
Post Reply
Hidaka
Posts: 6
Joined: Fri Nov 30, 2018 3:39 am
Details of the function on RoboClaw Arduino library

Post 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.
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Details of the function on RoboClaw Arduino library

Post 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.
Hidaka
Posts: 6
Joined: Fri Nov 30, 2018 3:39 am
Re: Details of the function on RoboClaw Arduino library

Post 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] ?
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Details of the function on RoboClaw Arduino library

Post by Basicmicro Support »

For accel and deccel it is encoder counts per second^2. For speed it is encoder counts per second.

Post Reply