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

Wait an angular position (radians).

C++
bool WaitPositionRadComplete(float Position, float AcceptableError, M32 Timeout, M32 * pDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
float Position 
[in] Angular position to test (radians) 
float AcceptableError 
[in] Acceptable angular error (radians) 
M32 Timeout 
[in] Wait timeout (ms) 
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!