Page 2 of 2

Re: Motor Position based on Serial Command

Posted: Fri May 17, 2019 2:08 am
by Ellimc
Good morning
Thank you very much for your answer
So to be sure
if I write this :
Wich case is the right one
Case 1 My robot will go to the position posX3 and then stop?
Case 2 after the posX3 it will go to posX2 and finally to posX1? in this second case I have to say that I really need to forget posX2 and posX1 if I receive posX3. So how can I cancel the first two command?
Case 3 When I write several roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX1,0); It is making a list of command that will be done one after one
Case 4 whenI write several roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX1,1); It will always do the last command and forget the command before. (this is the case that i would like to have)

I am sorry for all these question but I need to be sure before starting working with this driver :D

And also I saw that, the function 67 command the position of 2 motors in one command. As there is no exemple with this function is it the right command?

Re: Motor Position based on Serial Command

Posted: Fri May 17, 2019 10:12 am
by Basicmicro Support
As I said, the buffer argument(the last argument in the command is either 0 or 1. 1 Means any running commands are stopped and that command runs immediately. 0 means that command will run when any commands previously executed finish for that motor.

Yes, the M1M2 position command looks correct, but I always recommend checking the syntax in the Arduino library header file if you are uncertain.

Re: Motor Position based on Serial Command

Posted: Mon May 20, 2019 7:59 am
by Ellimc
Thank you very much!!
I got every information i needed :D :D