Add, modify and delete attitude profile and file segments.
AttitudeSegment <ObjectPath> {Add | Delete | Modify} {SegmentType} <Parameters>
The AttitudeSegment command allows a user 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.
The AttitudeSegment Profile command allows the user 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 SetAttitude Profile 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.
Note: 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 SetAttitude Profile 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.
Note: 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.
The AttitudeSegment File command allows the user to add, modify or delete an attitude file segment. The user 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 SetAttitude Profile 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 SetAttitude Profile command.
To Delete an attitude file segment, use the following syntax:
AttitudeSegment <ObjectPath> Delete File "<FilePath>"
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"
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 "27 Oct 2004 02:00:00.00"
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"
If activated, Connect returns an acknowledgement message.
This command belongs to the following group(s):
10.1
STK Programming Interface 11.0.1