Skip to main content

GetDetectedObjectsCondtional

Valid for: CANoe DE Note: This CAPL function is also available in C#.

Function Syntax

C#
CAPL

Description

Gets the detected objects of a sensor as a string array. Only those objects are considered that meet the condition passed in the parameters. Possible conditions are a distance and a relative speed to the sensor above or below a certain value.

Parameters

  • criterionType: Type of the condition.
    • C#
      • _ADAS.DataModel.ECriterion.Distance
      • _ADAS.DataModel.ECriterion.Speed
    • CAPL
      • _ADAS::DataModel::ECriterion::Distance
      • _ADAS::DataModel::ECriterion::Speed
  • conditionValue: Limit value of the condition
  • conditionBelowOrAbove: Indicates whether the value must be above or below the limit value
    • C#
      • _ADAS.DataModel.ETriggerCondition.Lesser
      • _ADAS.DataModel.ETriggerCondition.Greater
    • CAPL
      • _ADAS.DataModel::ETriggerCondition::Lesser
      • _ADAS.DataModel::ETriggerCondition::Greater

Return Values

A string array containing all detected objects of the sensor which meet the conditions passed in the parameters.

Example

In the examples it is assumed in each case that a DO object of the type IScenarioManager was created.

CAPL

C#