Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TestWaitForADASDetectedObjectTimeToCollision
Valid for: CANoe DEFunction Syntax
long TestWaitForADASDetectedObjectTimeToCollision (dword overUnder, float threshold, long aTimeout); // form 1long TestWaitForADASDetectedObjectTimeToCollision (dword overUnder, float threshold, int64 trackingId, long aTimeout); // form 2long TestWaitForADASDetectedObjectTimeToCollision (long overUnder, float threshold, float minLateralOffset, float maxLateralOffset,long aTimeout)// form 3long TestWaitForADASDetectedObjectTimeToCollision (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 Time Collision (TTC) conditions passed as arguments. The TTC is calculated as current distance divided by current relative speed. Only the longitudinal movement is considered. Should the Detected Object not occur before the expiration of the timeaTimeout, the wait condition is resolved, nevertheless.
Parameters
- overUnder: Specifies if the TTC should be over or under the specified value.
- threshold: Specified value that determines the maximum or minimum TTC. The unit is specified in seconds.
- 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.