Re: Motor Position based on Serial Command
Posted: Fri May 17, 2019 2:08 am
Good morning
Thank you very much for your answer
So to be sure
if I write this :
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX1,0);
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX2,1);
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX3,2);
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
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?
roboclaw.SpeedAccelDeccelPositionM1M2(address,32000,12000,32000,posX,32000,12000,32000,posY,1);
Thank you very much for your answer
So to be sure
if I write this :
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX1,0);
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX2,1);
roboclaw.SpeedAccelDeccelPositionM1(address,3200,12000,32000,posX3,2);
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
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?
roboclaw.SpeedAccelDeccelPositionM1M2(address,32000,12000,32000,posX,32000,12000,32000,posY,1);