AttitudeStandardOrbit#
- class ansys.stk.core.stkobjects.AttitudeStandardOrbit#
Bases:
IVehicleAttitudeStandard
,IVehicleAttitude
Standard attitude profile for satellite.
Overview#
Get the basic attitude properties. |
|
Get the target pointing attitude properties. |
|
Get the precomputed (external) attitude properties. |
|
Return a reference to the Integrated Attitude Tool. |
Examples#
Set satellite attitude external
# Satellite satellite: Satellite object
if os.name == "nt":
installPath = r"C:\Program Files\AGI\STK 12"
else:
installPath = os.environ["STK_INSTALL_DIR"]
satellite.attitude.external.load(
os.path.join(installPath, "Data", "Resources", "stktraining", "text", "AttitudeTimeEulerAngles_Example.a")
)
Set satellite attitude targeting
# Satellite satellite: Satellite object
attitudePointing = satellite.attitude.pointing
attitudePointing.use_target_pointing = True
attitudePointing.targets.remove_all()
attitudePointing.targets.add("AreaTarget/MyAreaTarget")
attitudePointing.target_times.use_access_times = True
Set satellite attitude basic spinning
# Satellite satellite: Satellite object
basic = satellite.attitude.basic
basic.set_profile_type(AttitudeProfile.SPINNING)
basic.profile.body.assign_xyz(0, 0, 1)
basic.profile.inertial.assign_xyz(0, 1, 0)
basic.profile.rate = 6 # rev/sec
Import detail#
from ansys.stk.core.stkobjects import AttitudeStandardOrbit
Property detail#
- property AttitudeStandardOrbit.basic: AttitudeStandardBasic#
Get the basic attitude properties.
- property AttitudeStandardOrbit.pointing: VehicleAttitudePointing#
Get the target pointing attitude properties.
- property AttitudeStandardOrbit.external: VehicleAttitudeExternal#
Get the precomputed (external) attitude properties.
- property AttitudeStandardOrbit.integrated_attitude: VehicleIntegratedAttitude#
Return a reference to the Integrated Attitude Tool.