Astrogator_RM GetValue

Astrogator_RM GetValue is a command that is the basic mechanism for retrieving values from Astrogator.

Syntax

Astrogator_RM <Satellite Object Path> GetValue <Attribute Path> <Attribute>

Description

This command can be applied to any attribute in Astrogator Connect. Refer to the Attributes section of this help system if you need to find the Connect syntax name for an attribute you want to select. The syntax for retrieving an attribute's value using the Astrogator_RM GetValue command is the same as defining an attribute using the Astrogator SetValue command, substituting Astrogator_RM as the command prefix and GetValue as the command operator.

Examples

Refer to individual attribute pages of this help system for examples of GetValue in use.

General Information About Retrieving Values from Astrogator

Numerous values can be retrieved from Astrogator. If you know the exact attribute path to the value you're interested in, enter it directly to get the desired value; otherwise, complete the attribute path as far as possible and Astrogator will return everything it knows about the current segment. You can use this new information to work your way toward the desired data.

For example, suppose you have a lunar mission scenario, and you want to determine the final value for V used in the Impulsive Maneuver during the first target sequence. The command:

Astrogator_RM */Satellite/LunarProbe GetValue MainSequence.SegmentList

will return all the subobjects in the SegmentList:
Target_Sequence = Unknown
Target_Sequence1 = Unknown
return = Unknown

Since you are interested in a value from the first target sequence, add .Target_Sequence to the previous command:

Astrogator_RM */Satellite/LunarProbe GetValue MainSequence.SegmentList.Target_Sequence

Astrogator now returns a large amount of data, including:

ShooterControls = Unknown
Clipboard = true
RepeatCount = 1
SegmentListSelected = Unknown
SegmentList = Launch Propagate Impulsive Maneuver Propagate1 Propagate2 return
ChildrenSelected = Unknown
Launch = Unknown
Propagate = Unknown
Impulsive_Maneuver = Unknown

You want the V of the impulsive maneuver, so add SegmentList to the previous command:

Astrogator_RM */Satellite/LunarProbe GetValue MainSequence.SegmentList.Target_Sequence.SegmentList

and continue this process until you arrive at:

Astrogator_RM */Satellite/LunarProbe GetValue MainSequence.SegmentList.Target_Sequence.SegmentList.Impulsive_Maneuver.FinalDeltaV

where the output is:

FinalDeltaV = 3.130088661397117700 km/sec

STK Programming Interface 11.0.1