anyKode Marilou
ContentsIndexHome
PreviousUpNext
DeviceServoMotor::WaitPositionRadComplete (CoreDeviceServoMotorWaitComplete *, M32 *, void *)

Wait an angular position (radian).

C++
bool WaitPositionRadComplete(CoreDeviceServoMotorWaitComplete * pWaitComplete, M32 * pDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
CoreDeviceServoMotorWaitComplete * pWaitComplete 
[in] pointer to a CoreDeviceServoMotorWaitComplete structure. Angles in the structure must be filled in radians. 
M32 * pDeviceResponse = NULL 
(see Message
void * pReserved = NULL 
(see Message

true if servo received the message, false otherwise. 

 

Note: Use the device response (pDeviceResponse) to know if specified position is reached or if a timeout occurred (Exemple)

Pauses the calling thread until servo reach the specified angular position (+- acceptable error) or until timeout occurs.

See WaitPositionXXX notes.

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