STK AviatorSend comments on this topic.
IAgAvtrAttitudeTransitions Interface

Description

Interface used to access the Attitude Transitions options found in the Basic Acceleration Model of an aircraft.

Public Properties

Public Property PitchRateGets or sets the pitch rate when transitioning between attitude modes.
Public Property RollRateGets or sets the roll rate when the aircraft in a turn.
Public Property YawRateGets or sets the yaw rate when transitioning between attitude modes.

CoClasses that Implement IAgAvtrAttitudeTransitions

Example

Configure the basic acceleration performance model of an aircraft
[C#]
// Get the acceleration type
IAgAvtrAircraftAcceleration acceleration = aircraft.Acceleration;
// Get the build in performance model
IAgAvtrAircraftBasicAccelerationModel basicAccModel = acceleration.GetBuiltInModel();

// Get the level turns options
IAgAvtrLevelTurns levelTurns = basicAccModel.LevelTurns;
// Set a max bank angle of 25
levelTurns.SetLevelTurn(AgEAvtrTurnMode.eTurnModeBankAngle, 25);
// Get the climb and descent transition options
IAgAvtrClimbAndDescentTransitions climbAndDescent = basicAccModel.ClimbAndDescentTransitions;
// Set the max pull up G to 1
climbAndDescent.MaxPullUpG = 1.2;
// Get the attitude transition options
IAgAvtrAttitudeTransitions attitudeTransitions = basicAccModel.AttitudeTransitions;
// Set the max roll rate to 25
attitudeTransitions.RollRate = 25;

// Get the aerodynamics
IAgAvtrAircraftAero aero = basicAccModel.Aerodynamics;
// Use simple aerodynamics
aero.AeroStrategy = AgEAvtrAircraftAeroStrategy.eAircraftAeroSimple;
// Get the options for the simple aerodynamics and set some parameters
IAgAvtrAircraftSimpleAero simpleAero = aero.ModeAsSimple;
simpleAero.SRef = 5;
simpleAero.ClMax = 3.1;
simpleAero.Cd = 0.05;

// Get the propulsion
IAgAvtrAircraftProp prop = basicAccModel.Propulsion;
// Use simple propulsion
prop.PropStrategy = AgEAvtrAircraftPropStrategy.eAircraftPropSimple;
// Get the simple propulsion options and set some parameters
IAgAvtrAircraftSimpleProp simpleProp = prop.ModeAsSimple;
simpleProp.MaxThrustAccel = 0.6;
simpleProp.MinThrustDecel = 0.4;
simpleProp.SetDensityScaling(true, 0.02);

// Save the changes to the catalog
aircraft.GetAsCatalogItem().Save();
Configure the basic acceleration performance model of an aircraft
[Visual Basic .NET]
' Get the acceleration type
Dim acceleration As IAgAvtrAircraftAcceleration = aircraft.Acceleration
' Get the build in performance model
Dim basicAccModel As IAgAvtrAircraftBasicAccelerationModel = acceleration.GetBuiltInModel()

' Get the level turns options
Dim levelTurns As IAgAvtrLevelTurns = basicAccModel.LevelTurns
' Set a max bank angle of 25
levelTurns.SetLevelTurn(AgEAvtrTurnMode.eTurnModeBankAngle, 25)
' Get the climb and descent transition options
Dim climbAndDescent As IAgAvtrClimbAndDescentTransitions = basicAccModel.ClimbAndDescentTransitions
' Set the max pull up G to 1
climbAndDescent.MaxPullUpG = 1.2
' Get the attitude transition options
Dim attitudeTransitions As IAgAvtrAttitudeTransitions = basicAccModel.AttitudeTransitions
' Set the max roll rate to 25
attitudeTransitions.RollRate = 25

' Get the aerodynamics
Dim aero As IAgAvtrAircraftAero = basicAccModel.Aerodynamics
' Use simple aerodynamics
aero.AeroStrategy = AgEAvtrAircraftAeroStrategy.eAircraftAeroSimple
' Get the options for the simple aerodynamics and set some parameters
Dim simpleAero As IAgAvtrAircraftSimpleAero = aero.ModeAsSimple
simpleAero.SRef = 5
simpleAero.ClMax = 3.1
simpleAero.Cd = 0.05

' Get the propulsion
Dim prop As IAgAvtrAircraftProp = basicAccModel.Propulsion
' Use simple propulsion
prop.PropStrategy = AgEAvtrAircraftPropStrategy.eAircraftPropSimple
' Get the simple propulsion options and set some parameters
Dim simpleProp As IAgAvtrAircraftSimpleProp = prop.ModeAsSimple
simpleProp.MaxThrustAccel = 0.6
simpleProp.MinThrustDecel = 0.4
simpleProp.SetDensityScaling(True, 0.02)

' Save the changes to the catalog
aircraft.GetAsCatalogItem().Save()
Configure the basic acceleration performance model of an aircraft
[Python - STK API]
      # IAgAvtrAircraft aviatorAircraft: Aviator Aircraft object
# Get the acceleration type
acceleration = aviatorAircraft.Acceleration
# Get the build in performance model
basicAccModel = acceleration.GetBuiltInModel()

# Get the level turns options
levelTurns = basicAccModel.LevelTurns
# Set a max bank angle of 25
levelTurns.SetLevelTurn(AgEAvtrTurnMode.eTurnModeBankAngle, 25)
# Get the climb and descent transition options
climbAndDescent = basicAccModel.ClimbAndDescentTransitions
# Set the max pull up G to 1
climbAndDescent.MaxPullUpG = 1.2
# Get the attitude transition options
attitudeTransitions = basicAccModel.AttitudeTransitions
# Set the max roll rate to 25
attitudeTransitions.RollRate = 25

# Get the aerodynamics
aero = basicAccModel.Aerodynamics
# Use simple aerodynamics
aero.AeroStrategy = AgEAvtrAircraftAeroStrategy.eAircraftAeroSimple
# Get the options for the simple aerodynamics and set some parameters
simpleAero = aero.ModeAsSimple
simpleAero.SRef = 5
simpleAero.ClMax = 3.1
simpleAero.Cd = 0.05

# Get the propulsion
prop = basicAccModel.Propulsion
# Use simple propulsion
prop.PropStrategy = AgEAvtrAircraftPropStrategy.eAircraftPropSimple
# Get the simple propulsion options and set some parameters
simpleProp = prop.ModeAsSimple
simpleProp.MaxThrustAccel = 0.6
simpleProp.MinThrustDecel = 0.4
simpleProp.SetDensityScaling(True, 0.02)

# Save the changes to the catalog
aviatorAircraft.Save()

Configure the basic acceleration performance model of an aircraft
[MATLAB]
% IAgAvtrAircraft aviatorAircraft: Aviator Aircraft object
% Get the acceleration type
acceleration = aviatorAircraft.Acceleration;
% Get the build in performance model
basicAccModel = acceleration.GetBuiltInModel();

% Get the level turns options
levelTurns = basicAccModel.LevelTurns;
% Set a max bank angle of 25
levelTurns.SetLevelTurn('eTurnModeBankAngle', 25);
% Get the climb and descent transition options
climbAndDescent = basicAccModel.ClimbAndDescentTransitions;
% Set the max pull up G to 1
climbAndDescent.MaxPullUpG = 1.2;
% Get the attitude transition options
attitudeTransitions = basicAccModel.AttitudeTransitions;
% Set the max roll rate to 25
attitudeTransitions.RollRate = 25;

% Get the aerodynamics
aero = basicAccModel.Aerodynamics;
% Use simple aerodynamics
aero.AeroStrategy = 'eAircraftAeroSimple';
% Get the options for the simple aerodynamics and set some parameters
simpleAero = aero.ModeAsSimple;
simpleAero.SRef = 5;
simpleAero.ClMax = 3.1;
simpleAero.Cd = 0.05;

% Get the propulsion
prop = basicAccModel.Propulsion;
% Use simple propulsion
prop.PropStrategy = 'eAircraftPropSimple';
% Get the simple propulsion options and set some parameters
simpleProp = prop.ModeAsSimple;
simpleProp.MaxThrustAccel = 0.6;
simpleProp.MinThrustDecel = 0.4;
simpleProp.SetDensityScaling(true, 0.02);

% Save the changes to the catalog
aviatorAircraft.Save();


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.