anyKode Marilou
ContentsIndexHome
PreviousUpNext
DevicesGroupServo::GoPositionsRad

GoPositionsRad changes the position command of the servos present within the group. Each servo has its own set point and its own movement speed.

C++
bool GoPositionsRad(float * pPositions, float * pSpeeds, int PositionsCount);
Parameters 
Description 
float * pPositions 
[in] Pointer on a table of float that contains the new positions (in radians) of each servo. 
float * pSpeeds 
[in] Pointer on a on a table of float that contains the speeds (in radians/s) to be assigned to each servo. If pSpeeds is NULL, it is the maximum speed that is applied. 
int PositionsCount 
[in] Number of elements contained in pPositions. Note : if pSpeeds is not NULL, its size must be superior than or equal to pPositions. 

True no error occurred, false otherwise.

Each entry of the positions table is assigned to the corresponding servo. The same goes for the speed. If the pointer on the speeds is NULL, it is the maximum speed which is applied to each servo.

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!