Main Content

gimbal

Add gimbal to satellite or ground station

Description

gimbal(parent) adds a default Gimbal object to parent, which can be a satellite, ground station, or gimbal.. A gimbal can dynamically change orientation independent of the parent. Transmitters, receivers, and conical sensors can be mounted on the gimbals.

gimbal(parent,Name,Value) specifies options using one or more name-value arguments.

gim = gimbal(___) returns a handle to the added gimbal. Specify any input argument combination from previous syntaxes.

Input Arguments

expand all

Element of scenario to which the gimbal 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 gimbal to 20, 35, and 10 degrees, respectively.

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

gimbal 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 gimbal is added, specify Name as a string scalar or a character vector.

  • If multiple gimbals 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 gimbal added by the gimbal object function. If another gimbal 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]

Output Arguments

expand all

Gimbal attached to parent, returned as a Gimbal object.

Introduced in R2021a