AGI STK Astrogator 11 Send comments on this topic.
IAgVADriverMCS Interface





Description

Properties for the Mission Control Sequence.

Object Model





Public Methods

Public Method AppendRun Append the existing ephemeris with another individual segment mode run
Public Method AppendRunFromState Append the existing ephemeris with another individual segment mode run, starting at a specified state. Ephemeris is cleared from time based on clear direction.
Public Method AppendRunFromTime Append the existing ephemeris with another individual segment mode run, starting at a specified time. Ephemeris is cleared from time based on clear direction.
Public Method ApplyAllProfileChanges Applies all active profile changes in all target sequences.
Public Method BeginRun Begins an individual segment mode run.
Public Method ClearDWCGraphics Clears the draw while calculating graphics
Public Method EndRun Ends an individual segment mode run.
Public Method ResetAllProfiles Resets all active profiles in all target sequences.
Public Method RunMCS Runs the current MCS.
Public Method RunMCS2 Runs the current MCS and returns an error code.

Public Properties

Public Property AutoSequence The Automatic Sequences.
Public Property CalculationGraphs The calculation graphs.
Public Property MainSequence The Mission Control Sequence.
Public Property Options The Mission Control Sequence options.

Example

Configure the Astrogrator propagator
[C#] Copy Code
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorAstrogator); 
 
IAgVADriverMCS driver = satellite.Propagator as IAgVADriverMCS; 
 
// Remove if necessary 
driver.MainSequence.RemoveAll(); 
 
// Configure properties as necessarily 
driver.Options.DrawTrajectoryIn3D = true
driver.Options.GraphicsUpdateRate = 0.90
driver.Options.UpdateAnimationTimeForAllObjects = false
driver.Options.StoppingConditionTimeTolerance = 0.00000005
driver.Options.EnableLogging = true
 

Configure the Astrogrator propagator
[Visual Basic .NET] Copy Code
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorAstrogator)

Dim driver As IAgVADriverMCS = TryCast(satellite.Propagator, IAgVADriverMCS)

' Remove if necessary
driver.MainSequence.RemoveAll()

' Configure properties as necessarily
driver.Options.DrawTrajectoryIn3D = True
driver.Options.GraphicsUpdateRate = 0.9
driver.Options.UpdateAnimationTimeForAllObjects = False
driver.Options.StoppingConditionTimeTolerance = 5E-08
driver.Options.EnableLogging = True

Set satellite propagator to Astrogator and clear segments
[MATLAB] Copy Code
% IAgSatellite satellite: Satellite object 
satellite.SetPropagatorType('ePropagatorAstrogator'); 
driver = satellite.Propagator; 
%Clear all segments from the MCS 
driver.MainSequence.RemoveAll(); 
 
 
Run the Astrogator MCS
[MATLAB] Copy Code
% IAgVADriverMCS driver: MCS driver interface 
driver.RunMCS; 
 
 
Create a new component through the Component Browser
[MATLAB] Copy Code
% IAgVADriverMCS driver: MCS driver interface 
% IAgScenario scenario: Scenario object 
%Get the Prop Funct Folder 
compBrowser = scenario.ComponentDirectory.GetComponents('eComponentAstrogator').GetFolder('Propagator Functions'); 
%Get the Atmospheric Models Folder 
atmos = compBrowser.GetFolder('Atmospheric Models'); 
%Grab the Mars Exponential Model 
mars = atmos.Item('Exponential - Mars'); 
%Make a copy of the Model to Edit it 
marsClone = mars.CloneObject; 
 
%Grab a handle of the new Mars Model and edit properties 
newMars = atmos.Item('Exponential - Mars1'); 
newMars.Name = 'New Mars'; 
newMars.ReferenceAltitude = 0; %km 
newMars.ReferenceDensity = 20000000; %kg/km^3 
newMars.ScaleAltitude = 11.1; %km 
 
 

CoClasses that Implement IAgVADriverMCS

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1