Description | Example | Return message | Group

GetAttitude

Return information about the attitude profile in use for a vehicle

Syntax

GetAttitude <ObjectPath> {AttOption}

Description

The GetAttitude command returns information about the attitude profile for the selected vehicle. Valid values for {AttOption} are:

{AttOption}Description
TargetsReturns information about the targets being used to orient a vehicle. This option is only valid for Satellite, LaunchVehicle and Missile.
Profile [{ConnectName | LongName }] Returns information about the first attitude segment for the vehicle.
Segments [{ConnectName | LongName }] Returns the name, start and stop times for all attitude segments for the vehicle.

For the Profile and Segments options specify ConnectName to return the attitude name used in the SetAttitude Profile and AddAttitude Profile commands. Use the LongName keyword to return the attitude name used in GUI. But note, for an attitude segment using a file, the filename will always be returned; and for an attitude segment using a target, the target name will always be returned.

To set targets for use in orienting a satellite, use the SetAttitude Target command.

Examples

To return the list of targets used to orient the ERS1 satellite:

GetAttitude */Satellite/ERS1 Targets

Return message

In the first example using the Targets {AttOption}, Connect returns a message that includes all targets along with the interval during which each target is being used. If no targets have been assigned, Connect returns a 0.
GetAttitude */Satellite/ERS1 Targets GETATTITUDE 27 GETATTITUDE 80 Target/Target1, "1 Jul 1998 02:06:13.429738080", "1 Jul 1998 02:13:17.121584586" GETATTITUDE 80 Target/Target1, "1 Jul 1998 03:37:59.066902019", "1 Jul 1998 03:49:14.185627625" GETATTITUDE 80 Target/Target1, "1 Jul 1998 05:12:06.919926282", "1 Jul 1998 05:20:26.243537888" GETATTITUDE 84 Aircraft/Aircraft1, "1 Jul 1998 06:56:04.39932257" "1 Jul 1998 07:04:48.874115382" GETATTITUDE 80 Target/Target1, "1 Jul 1998 12:45:09.397236986" "1 Jul 1998 12:50:56.648810727" GETATTITUDE 80 Target/Target1, "1 Jul 1998 14:14:50.288402629" "1 Jul 1998 14:25:53.036239202" GETATTITUDE 80 Target/Target1, "1 Jul 1998 15:49:09.960545539" "1 Jul 1998 15:20:13.022356001"

Examples

To return the name, start and stop times for all attitude segments for the SatAtt1 satellite:

GetAttitude */Satellite/SatAtt1 Segments

Returns:

ECFVVLH, "1 Jul 2009 15:00:00.000000000", "1 Jul 2009 16:30:00.000000000" SpinSat.a, "1 Jul 2009 16:30:00.000000000", "1 Jul 2009 17:15:00.000000000" SunVectorSpinning, "1 Jul 2009 17:15:00.000000000", "1 Jul 2009 19:00:00.000000000"

To return the name, start and stop times for all attitude segments for the SatAtt1 satellite, using the LongName (or GUI name) option:

GetAttitude */Satellite/SatAtt1 Segments LongName

Returns:

Nadir alignment with ECF velocity constraint, "1 Jul 2009 15:00:00.000000000", "1 Jul 2009 16:30:00.000000000" SpinSat.a, "1 Jul 2009 16:30:00.000000000", "1 Jul 2009 17:15:00.000000000" Spin about Sun vector, "1 Jul 2009 17:15:00.000000000", "1 Jul 2009 19:00:00.000000000"

To return the name, start and stop times for all attitude segments for the SatAtt1 satellite, using the ConnectName option:

GetAttitude */Satellite/SatAtt1 Segments ConnectName

Returns:

NadirECFVel, "1 Jul 2009 15:00:00.000000000", "1 Jul 2009 16:30:00.000000000" SpinSat.a, "1 Jul 2009 16:30:00.000000000", "1 Jul 2009 17:15:00.000000000" SpinSun, "1 Jul 2009 17:15:00.000000000", "1 Jul 2009 19:00:00.000000000"

Group membership

This command belongs to the following group(s):

Vehicles

Version

9.1