anyKode Marilou

Gets the distances sensors measurements (synchronous call).

M32 GetMeasuresWaitComplete(float * pMeasures, int MeasuresCount);
float * pMeasures 
[in/out] Table of floats that will be filled in with the distance measurements 
int MeasuresCount 
[in] Table size expressed in number of elements. 

The system error code MODA_EOK if no error occurred, an error (see MODA errors) otherwise.

GetMeasuresWaitComplete returns the distance measurements of each distance sensor in the group, in meters. Blocking state is evaluated for each sensor : if at least one sensor is awaiting its value (waiting for device update), GetMeasuresWaitComplete is blocked. Otherwise GetMeasuresWaitComplete returns immediately with latest sensors values. 


See GetMeasureWaitComplete to learn more about how 'blocking state' is managed.

The table is filled in with the measurements of the sensors present within the group. The number of elements filled in is the minimum between the size of the group and the size of the table.

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