ChkCreate_ADASGroundTruthObjectsTimeToCollisionViolation, ChkStart_ADASGroundTruthObjectsTimeToCollisionViolation
Valid for: CANoe DE • CANoe4SW DEChanges
This function was renamed from chkCreate_ADASTimeToImpactViolation/chkStart_ADASTimeToImpactViolation in version 16 SP3.Function Syntax
dword chkCreate_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold); // form 1dword chkCreate_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, char* callback); // form 2dword chkCreate_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId); // form 3dword chkCreate_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId, char* callback); // form 4dword chkStart_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold); // form 5dword chkStart_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, char* callback); // form 6dword chkStart_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId); // form 7dword chkStart_ADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId, char* callback); // form 8
Constructor
TestCheck::CreateADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold);TestCheck::CreateADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, char* callback);TestCheck::CreateADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId);TestCheck::CreateADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId, char* callback);TestCheck::StartADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold);TestCheck::StartADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, char* callback);TestCheck::StartADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId);TestCheck::StartADASGroundTruthObjectsTimeToCollisionViolation (dword underOver, float threshold, int64 laneId, int64 movingObjectId, char* callback);
Check Name
ADAS Ground Truth Objects Time To Collision ObservationDescription
Observes the Time To Collision (TTC) between Moving Objects and the EgoVehicle. The check fires an event if the TTC conditions passed as arguments are fulfilled.Parameters
- overUnder: Specifies if the distance violation is over or under the specified value.
- threshold: Specified value that determines the maximum or minimum TTC. The distance is specified in meter.
- laneId: Only Moving Objects on the lane with the given laneId will be checked. If no laneId is given or the laneId is -1, only the lane of the EgoVehicle will be considered.
- movingObjectId: GroundTruthId of the moving object. Only the distance to this Moving Object will be checked. If the value -1 is given, all Moving Objects will be checked.
- callback: This parameter is optional. Name of the callback which is called when the check fails. Signature:
void Callback( dword checkId )orvoid Callback( TestCheck check )
Return Values
- 0: Check could not be created and must not be referenced
- > 0: Check was created successfully and may be referenced using the returned (handle-) value.
Possible Errors
- EgoVehicleId is undefined.
- CAPL callback does not exist.