org.orekit.attitudes
Class ConstantAttitudeLaw

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

public class ConstantAttitudeLaw
extends AbstractAttitudeLaw

This class handles a constant attitude law.

Instances of this class are guaranteed to be immutable.

Since:
3.0
Version:
$Id: ConstantAttitudeLaw.java 17602 2017-05-18 08:25:23Z bignon $
Author:
pontisso
See Also:
Serialized Form

Constructor Summary
ConstantAttitudeLaw(Frame referenceFrame, Rotation rotation)
          Creates new instance.
 
Method Summary
 Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
          Compute the attitude corresponding to an orbital state.
 
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
 

Constructor Detail

ConstantAttitudeLaw

public ConstantAttitudeLaw(Frame referenceFrame,
                           Rotation rotation)
Creates new instance.

Parameters:
referenceFrame - the reference frame
rotation - rotation from reference frame to satellite frame.
Method Detail

getAttitude

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

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


Copyright © 2017 CNES. All Rights Reserved.