enum VWaitThreshold
{
kUnderThreshold = 0,
kOverThreshold = 1
};
distObjRef ::ADAS::IDetectedMovingObject detMovingObj;
char buffer[100];
if(TestWaitForADASDistance(kUnderThreshold,30, 1000))
{
if(TestGetWaitADASDetectedObject(buffer) == 0) // Get the name of the Detected Object that triggered the Wait Condition
detMovingObj = (distObjRef ADAS::IDetectedMovingObject) lookupDistObj(buffer); // Get the Detected Object with the CAPL Function lookupDistObj
if(detMovingObj.IsValid) // Check if the Detected Object is valid
{
// Do something with the Detected Object
}
}