Simulator Scope Functions
The Simulator attribute scope contains functions that enable you to interact with a Simulator object.
|
CAgAttr ClearIntervals(string satName, string trkName) This function clears simulation intervals for either a given satellite or tracker or both. STKIntFileTool and LoadSimulationIntervals HTML pages call this function. Parameters
Return Value
|
Example VBS: Copy
|
|
CAgAttr GetStateContents() This previews which states the simulator will use. The StateContent tool calls this function. Return Value
|
Example VBS: Copy
|
|
bool Go() Use this to run the simulator. Return Value
|
Example VBS: Copy
|
|
CAgAttr ImportIntervals(string filename, double dt, string satName, string trkName) Use this to import intervals from an STK Intervals File, which will add or append entries in the simulator's CustomTrackingIntervals Schedule. The STKIntFileTool and LoadSimulationIntervals HTML pages call this function. Parameters
Return Value
|
Example VBS: Copy
|
|
CAgAttr SimulateDeltaDOR(const string& startString, const string& stopString, int numDDOR, double slewTime, double interSeqTime, const string& facility1String, const string& facility2String, const string& satelliteString, int quasarID, double quasarDirTol, const string& refEphFileName, const string& observationFileName, const string& detailsFileName, bool addToScenarioMeasFilesList) This function generates simulated Differenced One-way Range (DOR) and Quasar Differenced One-Way Range (QuasarDOR) measurements, based on a specified reference ephemeris, and writes them to a generic observation format file (.gobs). You can then read the DOR and QuasarDOR measurements back into the ODTK application to create DeltaDOR measurements for use in estimation. The first specified tracking station must contain measurement statistics for DOR and QuasarDOR measurement types. The function uses the white noise settings for the DOR and QuasarDOR measurement types in the generation of random variation to the computed measurement values based on the Simulator object setting for inclusion of white noise. The function will not generate or include time-correlated measurement biases based on the stochastic model definition in the reported measurement values. The number of measurements written will appear in the message viewer. The function generates observations in sequences. A sequence contains an odd number of observations and takes the form Q-S-Q-S-Q-S-Q, where Q designates a QuasarDOR measurement and S designates a DOR measurement. The function generates one sequence during a viewing opportunity. The Facility1 object must contain the appropriate measurement statistics for the DOR and QuasarDOR measurement types for simulation to be successful. Facility1 must also contain DeltaDOR measurement statistics in order to process measurements. Parameters
Return ValueThe function returns a CAgAttr object containing the following properties:
|
Example VBS: Copy
|
|
CAgAttr SimulateLandmarkOpNav(const string& startString, const string& stopString, const string& targetBodyString, const string& satelliteString, const string& trackingInstrumentString, const string& scheduleFileName, const string& referenceSimrun, const string& observationFileName, const string& detailsFileName, bool addToScenarioMeasFileList) Generates simulated Optical Navigation (OpNav) landmark measurements based on a specified reference simulation run (.simrun) to a tracking data file in either generic observation format (.gobs) or OpNav format (.opnav). ODTK can then use the resulting OpNav Landmark Right Ascension and OpNav Landmark Declination measurements for estimation. The simulator uses the following data to complete the measurement generation:
You can choose to have the landmarks automatically selected or you can specify them via a specially formatted interval file. If you choose auto-selection, the simulator will select the landmark that sees the satellite at the highest elevation angle. If you set the OpNavCamera.CameraPointingMethod to “FixedInSatelliteBodyFrame”, then the simulator will add a constraint that landmarks must be within the field of view of the camera. The message viewer will display the number of measurements written and the number of unique landmarks used. The TrackingInstrument object must contain the appropriate measurement statistics for the OpNav Landmark Right Ascension and OpNav Landmark Declination measurement types for simulation to be successful. You can view a sample of an interval file containing a variety of interval description strings including one for specifying a landmark in (1) your install folder at <install_folder>\AGI\STK_ODTK 13\Help\STK\Content\stk\example_intervalList3.htm, and (2) here Parameters
Return Value
|
Example VBS: Copy
|
|
bool Stop() Use this to stop the execution of the simulator. Return Value
|
Example VBS: Copy
|