org.orekit.attitudes
Class TwoDirectionsAttitude

java.lang.Object
  extended by org.orekit.attitudes.AbstractAttitudeLaw
      extended by org.orekit.attitudes.TwoDirectionsAttitude
All Implemented Interfaces:
Serializable, AttitudeLaw, AttitudeProvider
Direct Known Subclasses:
SunPointing

public class TwoDirectionsAttitude
extends AbstractAttitudeLaw

This class implements a generic two directions attitude law. The first direction is aligned with a given satellite axis, the second direction is aligned at best with another given satellite axis.

Since:
1.2
Version:
$Id: TwoDirectionsAttitude.java 15670 2016-03-29 10:45:44Z bignon $
Author:
Julie Anton
See Also:
IDirection, Serialized Form
Concurrency :
unconditionally thread safe

Constructor Summary
TwoDirectionsAttitude(IDirection firstDirection, IDirection secondDirection, Vector3D firstAxis, Vector3D secondAxis)
          Constructor.
 
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

TwoDirectionsAttitude

public TwoDirectionsAttitude(IDirection firstDirection,
                             IDirection secondDirection,
                             Vector3D firstAxis,
                             Vector3D secondAxis)
Constructor.

Parameters:
firstDirection - first direction
secondDirection - second direction
firstAxis - satellite axis that has to be aligned with the fisrt direction
secondAxis - satellite axis that has to be aligned at best with the second direction
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 © 2016 CNES. All Rights Reserved.