NavigationOptions#
- class ansys.stk.core.stkobjects.aviator.NavigationOptions#
Class defining the navigation options in a procedure.
Overview#
Get or set the navigation mode. |
|
Get or set the aircraft will start or arrive at the procedure site with the specified course. The nav mode must be set to Arrive on Course to set this value. |
|
Opt whether to use a magnetic heading to arrive on course. The nav mode must be set to Arrive on Course to set this value. |
|
Option for the first turn. |
|
Option for the second turn. |
Examples#
Add and configure an en-route procedure
# IProcedureCollection procedures: Procedure Collection object
# Add an enroute procedure with a site type of End of Previous Procedure
enroute = procedures.add_at_index(1, SiteType.SITE_END_OF_PREV_PROCEDURE, ProcedureType.PROCEDURE_ENROUTE)
# Get the altitude options
altitudeOptions = enroute.altitude_msl_options
# To specify an altitude, turn off the option to use the default cruise altitude
altitudeOptions.use_default_cruise_altitude = False
# Set the altitude
altitudeOptions.msl_altitude = 10000
# Get the navigation options
navigationOptions = enroute.navigation_options
# Set the route to arrive on a specified course
navigationOptions.navigation_mode = PointToPointMode.ARRIVE_ON_COURSE
# Set the course
navigationOptions.arrive_on_course = 30
# Use a magnetic heading
navigationOptions.use_magnetic_heading = True
# Get the navigation options
airspeedOptions = enroute.enroute_cruise_airspeed_options
# Fly at max speed
airspeedOptions.cruise_speed_type = CruiseSpeed.MAX_AIRSPEED
# To specify an airspeed to fly at, set the speed type to other airspeed
airspeedOptions.cruise_speed_type = CruiseSpeed.OTHER_AIRSPEED
# Then set the airspeed and airspeed type
airspeedOptions.set_other_airspeed(AirspeedType.TAS, 200)
Import detail#
from ansys.stk.core.stkobjects.aviator import NavigationOptions
Property detail#
- property NavigationOptions.navigation_mode: PointToPointMode#
Get or set the navigation mode.
- property NavigationOptions.arrive_on_course: Any#
Get or set the aircraft will start or arrive at the procedure site with the specified course. The nav mode must be set to Arrive on Course to set this value.
- property NavigationOptions.use_magnetic_heading: bool#
Opt whether to use a magnetic heading to arrive on course. The nav mode must be set to Arrive on Course to set this value.
- property NavigationOptions.enroute_first_turn: NavigatorTurnDirection#
Option for the first turn.
- property NavigationOptions.enroute_second_turn: NavigatorTurnDirection#
Option for the second turn.