Controlling the servo-motor while using CP commands


#1

Hello everybody

I noticed that when you control the dobot using the buttons in the dobotstudio or using the stick controller, it moves continuously adjusting the r angle of the servo motor in order to keep it along a fixed direction while x,y,z are changing. This feature is useful, and I assumed it would have worked also when using SetCPCmd with the API. But I was wrong. When I use SetCPCmd the dobot moves continuously, as I want, but the r angle of the servo motor is not adjusted. How could I get the automatic adjusting of r using API commands?


#2

Any clue? Yet what I want is already implemented in the Dobot Studio.How to replicate this feature in my C code?