org.orekit.attitudes
Class SpinStabilized

java.lang.Object
  extended by org.orekit.attitudes.AbstractAttitudeLaw
      extended by org.orekit.attitudes.SpinStabilized
All Implemented Interfaces:
Serializable, AttitudeLaw, AttitudeLawModifier, AttitudeProvider

public class SpinStabilized
extends AbstractAttitudeLaw
implements AttitudeLawModifier

This class handles a spin stabilized attitude provider.

Spin stabilized laws are handled as wrappers for an underlying non-rotating law. This underlying law is typically an instance of CelestialBodyPointed with the pointing axis equal to the rotation axis, but can in fact be anything.

Instances of this class are guaranteed to be immutable.

Author:
Luc Maisonobe
See Also:
Serialized Form

Constructor Summary
SpinStabilized(AttitudeLaw pNonRotatingLaw, AbsoluteDate pStart, Vector3D pAxis, double pRate)
          Creates a new instance.
 
Method Summary
 Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
          Compute the attitude corresponding to an orbital state.
 AttitudeLaw getUnderlyingAttitudeLaw()
          Get the underlying attitude law.
 
Methods inherited from class org.orekit.attitudes.AbstractAttitudeLaw
getAttitude, getSpinDerivativesComputation, setSpinDerivativesComputation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.orekit.attitudes.AttitudeProvider
getAttitude, setSpinDerivativesComputation
 

Constructor Detail

SpinStabilized

public SpinStabilized(AttitudeLaw pNonRotatingLaw,
                      AbsoluteDate pStart,
                      Vector3D pAxis,
                      double pRate)
Creates a new instance.

Parameters:
pNonRotatingLaw - underlying non-rotating attitude law
pStart - start date of the rotation
pAxis - rotation axis in satellite frame
pRate - spin rate in radians per seconds
Method Detail

getAttitude

public final Attitude getAttitude(PVCoordinatesProvider pvProv,
                                  AbsoluteDate date,
                                  Frame frame)
                           throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
pvProv - local position-velocity provider around current date
date - current date
frame - reference frame from which attitude is computed
Returns:
attitude attitude on the specified date and position-velocity state
Throws:
OrekitException - if attitude cannot be computed

getUnderlyingAttitudeLaw

public final AttitudeLaw getUnderlyingAttitudeLaw()
Get the underlying attitude law.

Specified by:
getUnderlyingAttitudeLaw in interface AttitudeLawModifier
Returns:
underlying attitude law


Copyright © 2017 CNES. All Rights Reserved.