TestWaitForADASDetectedObjectSpeed
CAPL Functions » ADAS » TestWaitForADASDetectedObjectSpeed Valid for: CANoe DEChanges
This function was renamed from TestWaitForADASSpeed in CANoe DE product version 16 SP3.Function Syntax
long TestWaitForADASDetectedObjectSpeed (long overUnder, float threshold, long aTimeout)// form 1long TestWaitForADASDetectedObjectSpeed (long overUnder, float threshold, int64 trackingId, long aTimeout)// form 2long TestWaitForADASDetectedObjectSpeed (long overUnder, float threshold, float minLateralOffset, float maxLateralOffset, long aTimeout)// form 3long TestWaitForADASDetectedObjectSpeed (long overUnder, float threshold, float minLateralOffset, float maxLateralOffset, int64 trackingId, long aTimeout)// form 4
Description
Waits for the occurrence of the first Detected Object matching the speed conditions passed as arguments. Should the Detected Object not occur before the expiration of the timeaTimeout, the wait condition is resolved nevertheless.
Parameters
- overUnder: Specifies if the relative speed should be over or under the specified value.
- threshold: Specified value that determines the maximum or minimum relative speed. An object moving towards the sensor has a negative relative speed. An object moving away from the sensor has a positive relative speed. The unit is specified in m/s.
- trackingId: TrackingId of the Detected Object. Only a Detected Object with this trackingId triggers the wait condition.
- minLateralOffset: Specifies the minimum lateral offset [m] of the Detected Object. The lateral offset is positive for an offset to the left.
- maxLateralOffset: Specifies the maximum lateral offset [m] of the Detected Object. The lateral offset is positive for an offset to the left.
- 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.