CAPL Functions » ADAS » TestWaitForADASGroundTruthObjectSpeed
TestWaitForADASGroundTruthObjectSpeed
Valid for: CANoe DEFunction Syntax
long TestWaitForADASGroundTruthObjectSpeed (dword overUnder, float threshold, int64 movingObjectId, long aTimeout); // form 1long TestWaitForADASGroundTruthObjectSpeed (dword overUnder, float threshold, int64 movingObjectId, int64 laneId, long aTimeout); // form 2
Description
Waits for the occurrence of the first Moving Object matching the speed conditions passed as arguments. Should the Moving Object not occur before the expiration of the timeaTimeout, the wait condition is resolved, nevertheless.
Parameters
- overUnder: Specifies if the speed should be over or under the specified value.
- threshold: Specified value that determines the maximum or minimum speed.
- movingObjectId: GroundTruthId of the Moving Object. Only a Moving Object with this
groundTruthIdtriggers the wait condition. AmovingObjectdIdof -1 triggers for every Moving Object. - laneId: Only a Moving Objects in the lane with this
laneIdcan trigger the wait condition. - aTimeout: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
Return Values
- -1: General error, for example, functionality is not available.
- 0: Resume due to timeout.
- 1: Resume due to event occurred.