Details of the function on RoboClaw Arduino library

General discussion of using Roboclaw motor controllers
Hidaka
Posts: 6
Joined: Fri Nov 30, 2018 3:39 am

Details of the function on RoboClaw Arduino library

Postby Hidaka » Mon Jan 07, 2019 5:32 am

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: 1135
Joined: Thu Feb 26, 2015 9:45 pm

Re: Details of the function on RoboClaw Arduino library

Postby Basicmicro Support » Mon Jan 07, 2019 10:21 am

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

Postby Hidaka » Tue Jan 08, 2019 6:38 pm

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: 1135
Joined: Thu Feb 26, 2015 9:45 pm

Re: Details of the function on RoboClaw Arduino library

Postby Basicmicro Support » Wed Jan 09, 2019 10:59 am

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


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests

cron