Main Content

conicalSensor

Add conical sensor to satellite scenario

Description

conicalSensor(parent) adds a default ConicalSensor object to parent which can be a satellite, groundStation or gimbal.

conicalSensor(parent,Name,Value) specifies options using one or more name-value arguments. For example, 'MaxViewAngle',90 specifies a field of view angle of 90 degrees.

S = conicalSensor(___) returns a handle to the added conical sensor. Specify any input argument combination from previous syntaxes.

Input Arguments

collapse all

Element of scenario to which the conicalSensor is added, specified as a Satellite, GroundStation, or Gimbal object.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'MountingAngle',[20; 35; 10] sets the yaw, pitch, and roll angles of the conical sensor to 20, 35, and 10 degrees, respectively.

You can set this property only when calling conicalSensor. After you call conicalSensor, this property is read-only.

conicalSensor name, specified as a comma-separated pair consisting of 'Name' and a string scalar, string vector, character vector or a cell array of character vectors.

  • If only one conicalSensor is added, specify Name as a string scalar or a character vector.

  • If multiple conicalSensors are added, specify Name as a string vector or a cell array of character vectors. The number of elements in the string vector or cell array must be equal to the number of satellites being added.

In the default value, idx is the count of the conicalSensor added by the conicalSensor object function. If another conicalSensor of the same name exists, a suffix _idx2 is added, where idx2 is an integer that is incremented by 1 starting from 1 until the name duplication is resolved.

Data Types: char | string

Mounting location with respect to the parent object, specified as a three-element row vector of positive numbers in meters. The position vector is specified in the body frame of the input parent.

Mounting orientation with respect to parent object, specified as a three-element row vector of positive numbers in degrees. The elements of the vector correspond to yaw, pitch, and roll in that order. Yaw, pitch, and roll are positive rotations about the parent's z - axis, intermediate y - axis and intermediate x - axis of the parent.

Example: [0; 30; 60]

Field of view angle, specified as a scalar in the range [0, 180]. Units are in degrees.

Output Arguments

collapse all

Conical sensor attached to parent, returned as a ConicalSensor object.

Introduced in R2021a