AGI STK Objects 11 Send comments on this topic.
IAgAircraft Interface





Description

Interface for aircraft object.

Object Model







Public Properties

Public Property Atmosphere The local atmosphere.
Public Property ExportTools Returns the IAgAcExportTools interface.
Public Property Graphics Get the aircraft's 2D Graphics properties.
Public Property RadarClutterMap Returns the radar clutter map.
Public Property RadarCrossSection Returns the radar cross sectoin.
Public Property VO Get the aircraft's 3D Graphics properties.

Interfaces

Implemented Interface
IAgGreatArcVehicle

Example

Set an aircraft to use Great Arc propagator
[C#] Copy Code
// Set ship route to great arc 
aircraft.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc); 
 
// Retrieve propagator interface 
IAgVePropagatorGreatArc propagator = aircraft.Route as IAgVePropagatorGreatArc; 
 

Configure an aircraft route using the Great Arc propagator
[C#] Copy Code
// Set ship route to great arc 
aircraft.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc); 
 
// Retrieve propagator interface 
IAgVePropagatorGreatArc propagator = aircraft.Route as IAgVePropagatorGreatArc; 
propagator.ArcGranularity = 51.333
 
// Set Ref type to WayPtAltRefTerrain and retreive IAgVeWayPtAltitudeRefTerrain interface 
propagator.SetAltitudeRefType(AgEVeAltitudeRef.eWayPtAltRefTerrain); 
IAgVeWayPtAltitudeRefTerrain altRef = propagator.AltitudeRef as IAgVeWayPtAltitudeRefTerrain; 
altRef.Granularity = 51.33
altRef.InterpMethod = AgEVeWayPtInterpMethod.eWayPtEllipsoidHeight; 
 
propagator.Method = AgEVeWayPtCompMethod.eDetermineTimeAccFromVel; 
 
// Add waypoints 
IAgVeWaypointsElement point1 = propagator.Waypoints.Add(); 
point1.Latitude = 39.7674
point1.Longitude = -79.7292
point1.Altitude = 3.0
point1.Speed = 0.0772
 
IAgVeWaypointsElement point2 = propagator.Waypoints.Add(); 
point2.Latitude = 38.3721
point2.Longitude = -120.1160
point2.Altitude = 3.0
point2.Speed = 0.0772
 
// Add more way points if necessary... 
 
// Propagate 
propagator.Propagate(); 
 

Set an aircraft to use Great Arc propagator
[Visual Basic .NET] Copy Code
' Set ship route to great arc
aircraft.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)

' Retrieve propagator interface
Dim propagator As IAgVePropagatorGreatArc = TryCast(aircraft.Route, IAgVePropagatorGreatArc)

Configure an aircraft route using the Great Arc propagator
[Visual Basic .NET] Copy Code
' Set ship route to great arc
aircraft.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)

' Retrieve propagator interface
Dim propagator As IAgVePropagatorGreatArc = TryCast(aircraft.Route, IAgVePropagatorGreatArc)
propagator.ArcGranularity = 51.333

' Set Ref type to WayPtAltRefTerrain and retreive IAgVeWayPtAltitudeRefTerrain interface
propagator.SetAltitudeRefType(AgEVeAltitudeRef.eWayPtAltRefTerrain)
Dim altRef As IAgVeWayPtAltitudeRefTerrain = TryCast(propagator.AltitudeRef, IAgVeWayPtAltitudeRefTerrain)
altRef.Granularity = 51.33
altRef.InterpMethod = AgEVeWayPtInterpMethod.eWayPtEllipsoidHeight

propagator.Method = AgEVeWayPtCompMethod.eDetermineTimeAccFromVel

' Add waypoints
Dim point1 As IAgVeWaypointsElement = propagator.Waypoints.Add()
point1.Latitude = 39.7674
point1.Longitude = -79.7292
point1.Altitude = 3
point1.Speed = 0.0772

Dim point2 As IAgVeWaypointsElement = propagator.Waypoints.Add()
point2.Latitude = 38.3721
point2.Longitude = -120.116
point2.Altitude = 3
point2.Speed = 0.0772

' Add more way points if necessary...

' Propagate
propagator.Propagate()

Create a New Aircraft (on the current scenario central body)
[MATLAB] Copy Code
% IAgStkObjectRoot root: STK Object Model root 
aircraft = root.CurrentScenario.Children.New('eAircraft', 'MyAircraft'); 
 
 
Create a New Aircraft (on the current scenario central body)
[MATLAB] Copy Code
% IAgStkObjectRoot root: STK Object Model root 
% IAgAircraft aircraft: Aircraft object 
%Set route to Realtime 
aircraft.SetRouteType('ePropagatorRealtime'); 
%Set up real time propagator settings 
aircraft.Route.TimeStep = 1; %sec 
aircraft.Route.TimeoutGap = 1; %sec 
aircraft.Route.Duration.LookAhead = 1; %sec 
aircraft.Route.LookAheadPropagator = 'eLookAheadHoldCBFPosition'; 
aircraft.Route.Propagate(); 
%Add a realtime waypoint 
aircraft.Route.PointBuilder.LLA.AddPosition(root.CurrentTime, 40, -70, 1000); 
 
 
Set Great Arc Propagator and Add Individual Waypoints to Aircraft
[MATLAB] Copy Code
% IAgAircraft aircraft: Aircraft object 
% Set route to great arc, method and altitude reference 
aircraft.SetRouteType('ePropagatorGreatArc'); 
route = aircraft.Route; 
route.Method = 'eDetermineTimeAccFromVel'; 
route.SetAltitudeRefType('eWayPtAltRefMSL'); 
% Add first point 
waypoint = route.Waypoints.Add(); 
waypoint.Latitude = 37.5378; 
waypoint.Longitude = 14.2207; 
waypoint.Altitude = 5;  % km 
waypoint.Speed = .1;    % km/sec 
% Add second point 
waypoint2 = route.Waypoints.Add(); 
waypoint2.Latitude = 47.2602; 
waypoint2.Longitude = 30.5517; 
waypoint2.Altitude = 5; % km 
waypoint2.Speed = .1;    % km/sec 
%Propagate the route 
route.Propagate; 
 
 
Add Array of Waypoints to Aircraft
[MATLAB] Copy Code
% IAgAircraft aircraft: Aircraft object 
route = aircraft.Route; 
ptsArray = {37.5378,14.2207,3.0480,0.0772,2; 
            47.2602,30.5517,3.0480,0.0772,2}; 
route.SetPointsSmoothRateAndPropagate(ptsArray); 
%Propagate the route 
route.Propagate; 
 
 
Set the Attitude of the Aircraft
[MATLAB] Copy Code
% IAgAircraft aircraft: Aircraft object 
aircraft.Attitude.Basic.SetProfileType('eCoordinatedTurn'); 
 
 

CoClasses that Implement IAgAircraft

Name
AgAircraft
© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1