org.orekit.attitudes
Class TwoDirectionsAttitude
java.lang.Object
org.orekit.attitudes.AbstractAttitudeLaw
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwoDirectionsAttitude
public TwoDirectionsAttitude(IDirection firstDirection,
IDirection secondDirection,
Vector3D firstAxis,
Vector3D secondAxis)
- Constructor.
- Parameters:
firstDirection - first directionsecondDirection - second directionfirstAxis - satellite axis that has to be aligned with the fisrt directionsecondAxis - satellite axis that has to be aligned at best with the second direction
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 datedate - current dateframe - 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.