Description | Example | Return message | Group

AttitudeSegment

Add, modify and delete attitude profile and file segments.

Syntax

AttitudeSegment <ObjectPath> {Add | Delete | Modify} {SegmentType} <Parameters>

Related commands

Description

The AttitudeSegment command allows you to add, modify and delete attitude profile and file segments.

Valid values for {SegmentType} are Profile and File. To manipulate Attitude Target segments use the SetAttitude Target command.

Attitude Profile Segment

The AttitudeSegment Profile command allows you to add, modify or delete an attitude profile segment.

To Add an attitude profile segment, use the following syntax:

AttitudeSegment <ObjectPath> Add Profile <ProfileName> {ProfileStartTime} {ProfileType} <Parameters>

When adding a profile segment the {ProfileType} and <Parameters> are the same as those for the AddAttitude File command. The <ProfileName> and {ProfileStartTime} entered for the segment should be unique.

The FixedTimeSlew {ProfileType} is also available when adding or modifying an attitude segment. This profile type includes a Smooth parameter. The format for the {ProfileType} <Parameters> is:

FixedTimeSlew Smooth {On | Off}

For valid {ProfileStartTime} values see Time Options.

The command will nack if the start time entered is the duplicate of an existing profile's start time.

There will always be at least one attitude profile already existing for a vehicle. This attitude profile's start time will match the scenario start time. To change this profile use the AttitudeSegment Modify Profile command.

To Modify an attitude profile segment, use the following syntax:

AttitudeSegment <ObjectPath> Modify Profile {<ProfileName> [|] {ProfileStartTime}} [StartTime {NewStartTime}] {ProfileType} <Parameters>

The {ProfileType} and <Parameters> are the same as those for the AddAttitude File command. The <ProfileName> and/or {ProfileStartTime} are used to identify the profile being modified. Either the name or time can be entered or both can be entered. The command will Nack if a match is not found.

Include the optional StartTime {NewStartTime} to change the start time of the segment. For valid {NewStartTime} values see Time Options.

To Delete an attitude profile segment, use the following syntax:

AttitudeSegment <ObjectPath> Delete Profile {<ProfileName> | {ProfileStartTime}}

The <ProfileName> and/or {ProfileStartTime} are used to identify the profile being deleted. Either the name or time can be entered or both can be entered.

One profile segment must always be defined for a vehicle. If only one Profile Segment exists, Connect will Nack if you attempt to delete it.

Attitude File Segment

The AttitudeSegment File command allows you to add, modify or delete an attitude file segment. You can also define a Reference attitude profile for the file segment.

To Add an attitude file segment, use the following syntax:

AttitudeSegment <ObjectPath> Add File "<FilePath>" [Reference {Default | Profile {ProfileType} <Parameters>}]

The {ProfileType} and <Parameters> are the same as those for the AddAttitude File command. If the Reference section is not entered then Default will be used.

To Modify an attitude file segment, use the following syntax:

AttitudeSegment <ObjectPath> Modify File "<FilePath>" Reference {Default | Profile {ProfileType} <Parameters>}

The {ProfileType} and <Parameters> are the same as those for the AddAttitude File command.

To Delete an attitude file segment, use the following syntax:

AttitudeSegment <ObjectPath> Delete File "<FilePath>"

"<FilePath>" can be the path to a file on your local drive or the path to a file on an SDF server. See Specifying Paths for "<SDFFilePath>" syntax information.

Examples

Add an attitude file segment to Satellite2:

AttitudeSegment */Satellite/Satellite2 Add File "C:\stk50DB\dev\Satellite1.a"

Modify the attitude file segment for Satellite2, by defining a reference profile:

AttitudeSegment */Satellite/Satellite2 Modify File "C:\stk50DB\dev\Satellite1.a" Reference Profile InertFix Euler 10.0 20.0 30.0 321

Delete the attitude file segment for Satellite2:

AttitudeSegment */Satellite/Satellite2 Delete File "C:\stk50DB\dev\Satellite1.a"

Examples

Add an attitude profile segment to Satellite1:

AttitudeSegment */Satellite/Satellite1 Add Profile Test1 "27 Oct 2004 02:00:00.00" InertFix Euler 10.0 20.0 30.0 321

Modify the Test1 attitude profile segment on Satellite1:

AttitudeSegment */Satellite/Satellite1 Modify Profile Test1 "27 Oct 2004 02:00:00.00" Spinning Inertial PR 10.0 20.0 Body axis 0.0 0.0 1.0 1.8 12.0 "27 Oct 2004 00:00:00.00"

Modify the Test1 attitude profile segment on Satellite1, using just the StartTime to identify the profile:

AttitudeSegment */Satellite/Satellite1 Modify Profile "27 Oct 2004 02:00:00.00" Spinning Inertial PR 10.0 20.0 Body axis 0.0 0.0 1.0 1.8 12.0 "27 Oct 2004 00:00:00.00"

Delete the attitude profile segment named Test1 on Satellite1:

AttitudeSegment */Satellite/Satellite1 Delete Profile Test1

Examples

Add an attitude profile segment to Satellite1:

AttitudeSegment */Satellite/Satellite1 Add Profile Seg19_00 "20 Sep 2012 19:00:00.000" InertFix Euler 10.0 20.0 30.0 321

Modify the segment start time and profile:

AttitudeSegment */Satellite/Satellite1 Modify Profile Seg19_00 StartTime "20 Sep 2012 18:30:00.000" Spinning Inertial PR 10.0 20.0 Body axis 0.0 0.0 1.0 1.8 12.0 "20 Sep 2012 16:00:00.000"

Identify the segment by time, and change the start time to a time component (note: the GetAttitude command will return the actual start time of the segment, not the component name):

AttitudeSegment */Satellite/Satellite1 Modify Profile "20 Sep 2012 18:30:00.000" StartTime "Satellite/Satellite1 EphemOffset Time Instant" Spinning Inertial PR 13.0 24.0 Body axis 0.0 0.0 1.0 1.8 12.0 "20 Sep 2012 16:00:00.000"

Return message

Group membership

This command belongs to the following group(s):

Attitude

Vehicles

Version

11.5