Description | Example | Return Message | Group

VectorTool Axes

Define and modify Axes geometry components and templates.

Syntax

VectorTool <ScenarioPath> <ParentObject> {Action} {Axes | AxesTemplate} <AxesName> [{AxesType} <AxesTypeParams>]

Related Commands

Description

The VectorTool Axes command is used to add, modify and delete Axes geometry components and templates.

For a component object the <ParentObject> is a truncated object path or a Central Body path.

For a template the <ParentObject> is an STK class name, and the AxesTemplate keyword must be entered.

The following table provides a description of {Action} values and the applicable parameters:

{Action}ParametersDescription
Create{AxesType} [<AxesTypeParams>] <AxesTypeParams> are optional, except where noted below. If no <AxesTypeParams> are specified, default values are used.
Modify{AxesType} <AxesTypeParams>The values <AxesName> {AxesType} must define an existing Axes component or template. The {AxesType} can not be modified. <AxesTypeParams> are required.
DeleteN/ADelete the component or template identified by <AxesName>

The following table describes each Axes type and it's parameters. Labels for the X, Y and Z axis can be optionally be entered for all Axes types.

{AxesType}<AxesParams>
"Aligned and Constrained"{AlignVector_OrientMethod} <AlignVector_OrientParameters> "<AlignVector>" {ConstrainVector_OrientMethod} <ConstrainVector_OrientParameters> "<ConstrainVector>" ["<XLabel>" "<YLabel>" "<ZLabel>"]

Valid values for {OrientMethod} <OrientParameters> are described below this table.

"Angular Offset"

Any or all of the following keyword-value pairs can be specified:

  • SpinVector "<Vector>"
  • RotationAngle "<Angle>"
  • Offset <Value>
  • ReferenceAxes "<Axes>"
  • AxesLabels "<XLabel>" "<YLabel>" "<ZLabel>"
  • Offset <Value> is entered in degrees and must be between -360.0 and 360.0 degrees. The default value is 0 degrees.

    "B-Plane"<CentralBodyName> "<TrajectoryPoint>" "<ReferenceVector>" {Incoming | Outgoing} ["<XLabel>" "<YLabel>" "<ZLabel>"]

    The <ParentObject> for the "B-Plane" Axes must be a Satellite.

    "Custom Inline Script"

    Any or all of the following keyword-value pairs can be specified:

  • ScriptType {JScript | Matlab | VBScript | Perl}
  • ReferenceAxes "<Axes>"
  • EulerAFunction "<string>"
  • XDerivativeFunction "<string>"
  • EulerBFunction "<string>"
  • YDerivativeFunction "<string>"
  • EulerCFunction "<string>"
  • ZDerivativeFunction "<string>"
  • Sequence <nnn>
  • Arguments {Add | Replace} <NumberOfScalars> <Scalars...>
  • RemoveArgument <ArgNum>
  • EulerAFunction, EulerBFunction, EulerCFunction and at least one Argument are required on the Create command.

    There must be at least as many arguments defined as are specified in the functions. For example if a function is defined as "x1+(t*x2)", there must be at least 2 arguments defined, x1 and x2.

    When using Inline Script components you may see error pop-ups from the scripts when there are errors in the functions that have been defined. Most of these errors will be caught when a Custom Inline Script component is created. Any errors must be fixed before using the component.

    The XDerivativeFunction, YDerivativeFunction, and ZDerivativeFunction must all be defined, or all must be undefined. These functions can be cleared by setting the value to an empty string, for example: XDerivativeFunction ""

    Enter "Arguments Add" to add the specified Scalar Calculations to the arguments list, and enter "Arguments Replace" to replace the Scalar Calculations in the argument list. <NumberOfScalars> indicates the number of Scalar Calculations entered.

    For the RemoveArgument option enter the index number of the component to be removed. The first component in the list has an index of 1. Use the VectorTool_R with the Details option to see the list of components.

    Valid values for Sequence <nnn> are 121, 123, 131, 132, 212, 213, 231, 232, 312, 313, 321, 323.

    "Custom Script"{Reload | "<ReferenceAxes>" "<FilePath>" [{InvalidOnExec}] ["<XLabel>" "<YLabel>" "<ZLabel>"]}

    "<FilePath>" can be a .m, .pl, .vbs or .dll (PC only) file. The "<FilePath>" value should include a full path. Custom Script files must be located in a hierarchy of pre-determined directories.

    For more information see Plugin Script Reference

    "<ReferenceAxes>" "<FilePath>" parameters are required when Creating the "Custom Script" Axes

    Reload is valid for the Modify command only.

    The option {InvalidOnExec} is deprecated in STK 10, it should not be entered.

    "File"{"<FilePath>" | Reload} [StartTime {TimeInstant}] [OverrideStartTime {Yes | No}] ["<XLabel>" "<YLabel>" "<ZLabel>"]

    "<FilePath>" is an STK attitude file (*.a)

    Reload is valid for the Modify command only.

    Either "<FilePath>" or Reload must be entered on each Axes "File" command.

    For valid {TimeInstant} values see Time Options.

    Sending StartTime {TimeInstant} will turn on the OverrideStartTime option.

    "Fixed at Epoch""<EpochDate>" "<SourceAxes>" ["<ReferenceAxes>"] ["<XLabel>" "<YLabel>" "<ZLabel>"]

    "<EpochDate>" is entered in Connect date units.

    "Fixed at Time Instant"

    Any or all of the following keyword-value pairs can be specified:

  • Instant "<TimeInstant>"
  • SourceAxes "<Axes>"
  • ReferenceAxes "<Axes>"
  • AxesLabels "<XLabel>" "<YLabel>" "<ZLabel>"
  • "Fixed in Axes"{OrientMethod} <OrientParameters> "<ReferenceAxes>" ["<XLabel>" "<YLabel>" "<ZLabel>"]

    Valid values for {OrientMethod} <OrientParameters> are described below this table.

    "Libration"<CentralBodyName> {L1 | L2 | L3 | L4 | L5} <SecondaryBody> [<SecondaryBody>...] ["<XLabel>" "<YLabel>" "<ZLabel>"]

    As many <SecondaryBody> as needed can be entered on the command line.

    The <ParentObject> for the "Libration" Axes must be a CentralBody

    "Model Attachment""<MdlAttachPoint>"

    A valid <MdlAttachPoint> is determined by the attach points specified in the parent object's model file.

    "<MdlAttachPoint>" is a required parameter for Create and Modify.

    The <ParentObject> for the "Model Attachment" Axes must be an object for which a model is valid, Satellite, Facility, etc.

    The "Model Attachment" Axes type is not valid for Templates.

    "Plugin"
  • PluginName "<ProgID>"
  • Reset
  • The Reset parameter is valid for a Modify command only.

    The "<ProgID>" value is the ProgID that was used to register the plugin.

    The PluginName "<ProgID>" parameter is required when Creating the "Plugin" Axes.

    The "Plugin" Axes type is not valid for Templates.

    "Scheduled"

    Any or all of the following keyword-value pairs can be specified:

  • ReferenceIntervals "<Interval or List>"
  • Schedule "<Interval or List>"
  • OnSchedule "<Axes>"
  • UseOffSchedule {On | Off}
  • OffSchedule "<Axes>"
  • UseAdditionalCondition {On | Off}
  • Condition "<Condition>"
  • AxesLabels "<XLabel>" "<YLabel>" "<ZLabel>"
  • The ReferenceIntervals "<Interval or List>" and Schedule "<Interval or List>" can be an Interval component or Interval List component and should include the time component type, e.g. "Satellite/Sat1 EphemerisInterval Interval List"

    Slew Options:

  • UseSlew {On | Off}
  • SlewType {FixedTime | Constrained}
  • SlewDefinition {Direct | QuadraticBlending | CubicBlending }
  • SlewTiming {FavorOnSchedule | Shortest | FavorOffSchedule}
  • SlewWindowDuration <value>
  • SlewMinOffSchedule <value>
  • SlewReferenceAxes "<Axes>"
  • SlewMaxRateX {On | Off | <value>}
  • SlewMaxRateY {On | Off | <value>}
  • SlewMaxRateZ {On | Off | <value>}
  • SlewMaxRateMag <value>
  • SlewMaxAccelerationX {On | Off | <value>}
  • SlewMaxAccelerationY {On | Off | <value>}
  • SlewMaxAccelerationZ {On | Off | <value>}
  • SlewMaxAccelerationMag {On | Off | <value>}
  • SlewWindowDuration <value> and SlewMinOffSchedule <value> are entered in Connect time units.

    The SlewMaxRateX, SlewMaxRateY, SlewMaxRateZ <value> is entered in degree/Connect time. Entering <value> turns on the constraint.

    SlewMaxRateMag <value> is entered in degree/Connect time. This constraint is on by default, and can't be turned off.

    The SlewMaxRateX, SlewMaxRateY, SlewMaxRateZ <value> is entered in degree/Connect time. Entering <value> turns on the constraint.

    The SlewMaxAccelerationX, SlewMaxAccelerationY, SlewMaxAccelerationZ, SlewMaxAccelerationMag <value> is entered in degree/Connect time^2. Entering <value> turns on the constraint

    Advanced options:

  • SamplingType {FixedStep | RelativeTolerance | CurvatureTolerance}
  • Parameters for SamplingType FixedStep:

  • TimeStep <TimeStep>
  • Parameters for SamplingType RelativeTolerance:

  • MinimumTimeStep <MinStep>
  • MaximumTimeStep <MaxStep>
  • StepAtBoundaries <StepBound>
  • SamplingRelativeTolerance <RelTol>
  • SamplingAbsoluteTolerance <AbsTol>
  • Parameters for SamplingType CurvatureTolerance:

  • MinimumTimeStep <MinStep>
  • MaximumTimeStep <MaxStep>
  • StepAtBoundaries <StepBound>
  • SamplingRelativeTolerance <RelTol>
  • SamplingAbsoluteTolerance <AbsTol>
  • CurvatureTolerance <CurveTol>
  • <TimeStep>, <StepBound>, <MinStep> and <MaxStep> are entered in Connect time units and must be between 1e-13 and 99999999999.0.

    <RelTol>, and <CurveTol> must be between 1e-13 and 1.0

    <AbsTol> must be greater or equal to 1e-13

    Parameters for Convergence:

  • ConvergeSense {Simple | FromAbove | FromBelow}
  • ConvergeAbsoluteTolerance <ConvergeAbsTol>
  • ConvergeRelativeTolerance <ConvergeRelTol>
  • TimeTolerance <TimeTol>
  • <TimeTol> is entered in Connect time units, and must be between 1e-13 and 99999999999.0.

    <ConvergeAbsTol> must be greater or equal to 1e-13

    <ConvergeRelTol> must be between 1e-13 and 1.0

    "Spinning"

    Any or all of the following keyword-value pairs can be specified:

  • Epoch "<Epoch>"
  • SpinVector "<Vector>"
  • Offset <Value>
  • RotationRate <Value>
  • ReferenceAxes "<Axes>"
  • AxesLabels "<XLabel>" "<YLabel>" "<ZLabel>"
  • "<Epoch>" is entered in Connect Date units. The default value is the object's start time.

    Offset <Value> is entered in degrees and must be between -360.0 and 360.0 degrees. The default value is 0 degrees.

    RotationRate <Value> is entered in Degrees/ConnectTimeUnit. The default value is 1.0 degree/second.

    "Surface"<CentralBodyName> "<Point>" [{UseMSLOn | UseMSLOff}] ["<XLabel>" "<YLabel>" "<ZLabel>"]
    "Trajectory""<TrajectoryPoint>" "<ReferenceSystem>" {ICR | VNC | RIC | LVLH | VVLH | BBR} ["<XLabel>" "<YLabel>" "<ZLabel>"]

    Description of {OrientMethod} <OrientParams>

    {AxesType}{OrientMethod}<OrientParams>
    "Fixed in Axes"Quat<Q1> <Q2> <Q3> <Q4>
    Euler<EulerA> <EulerB> <EulerC> <Sequence>

    <EulerA>, <EulerB> and <EulerC> are entered in Degrees.

    Valid values for <Sequence> are 121, 123, 131, 132, 212, 213, 231, 232, 312, 313, 321, 323

    YPR<Yaw> <Pitch> <Roll> <Sequence>

    <Yaw>, <Pitch> and <Roll> are entered in Degrees.

    Valid values for <Sequence> are RPY, RYP, PYR, PRY, YRP, YPR

    "Aligned and Constrained"Spherical <RightAsc> <Declin>

    <RightAsc> and <Declin> are entered in Degrees.

    Cartesian<X> <Y> <Z>
    Euler <EulerB> <EulerC> {12 | 31 | 21 | 32}

    <EulerB> and <EulerC> are entered in Degrees.

    PR<Pitch> <Roll>

    <Pitch> and <Roll> are entered in Degrees.

    For details on the format of a reference component (e.g. "<Point>", "<SourceAxes>", "<Vector>", etc) see Component Specification.

    When specifying a reference component or template in the Create or Modify commands the {ComponentType} is implied based on the {AxesType} being created or modified and the {ComponentType} need not be entered. In the first example below, "Satellite/ScenTestSat J2000 Axes" is entered as "Satellite/ScenTestSat J2000", since the command is expecting an axes.

    Example

    To create and modify a Fixed in Axes axes:

    VectorTool * Satellite/ScenTestSat Create Axes SatAxes6 "Fixed in Axes"

    VectorTool * Satellite/ScenTestSat Modify Axes SatAxes6 "Fixed in Axes" Quat 1 0 0 0 "Satellite/ScenTestSat J2000"

    To create and modify a Libration axes:

    VectorTool * CentralBody/Earth Create Axes EarthAxes10 "Libration"

    VectorTool * CentralBody/Earth Modify Axes EarthAxes10 "Libration" Earth L3 Mars Mercury Venus

    To create an Angular Offset axes:

    VectorTool * Satellite/ScenTestSat Create Axes SatAxes2 "Angular Offset" SpinVector "Satellite/ScenTestSat Position" RotationAngle "Satellite/ScenTestSat VertFlightPath"

    To create, modify and then delete a Spinning axes template:

    VectorTool * Satellite Create AxesTemplate SatAxesT2 "Spinning"

    VectorTool * Satellite Modify AxesTemplate SatAxesT2 "Spinning" Epoch "1 Oct 1999 04:00:00.00" Rate 0.25 Offset 12.5

    VectorTool * Satellite Delete AxesTemplate SatAxesT2

    Example

    To create and modify a Custom Inline Script axes:

    VectorTool * Satellite/Satellite1 Create "Axes" Inline3 "Custom Inline Script" EulerAFunction "t+x1/1000.0" EulerBFunction "t+x1/2000.0" EulerCFunction "t+x1/3000.0" Arguments Add 1 "Satellite/Satellite1 DistanceAlongTrajectory"

    VectorTool * Satellite/Satellite1 Modify "Axes" Inline3 "Custom Inline Script" Arguments Add 2 "Satellite/Satellite1 Speed" "Satellite/Satellite1 ElapsedTimeFromStart"

    VectorTool * Satellite/Satellite1 Modify "Axes" Inline3 "Custom Inline Script" XDerivativeFunction "(x2+t*dx1)/1000.0" YDerivativeFunction "(x2+t*dx1)/2000.0" ZDerivativeFunction "(x2+t*dx1)/4000.0"

    ReturnMessage

    Group Membership

    This command belongs to the following group(s):

    Area Targets

    Attitude

    Comm

    Facilities, Places & Targets

    Line Targets

    Radar

    Scenarios

    Sensors

    Stars & Planets

    Object Tools

    Vehicles

    VO

    VO Objects

    Version

    11.2