org.orekit.attitudes
Class RelativeTabulatedAttitudeLeg

java.lang.Object
  extended by org.orekit.attitudes.RelativeTabulatedAttitudeLeg
All Implemented Interfaces:
Serializable, AttitudeLeg, AttitudeProvider

public class RelativeTabulatedAttitudeLeg
extends Object
implements AttitudeLeg

This class implements the tabulated attitude leg relative to a reference date. WARNING : Double being less accurate than an AbsoluteDate, this class is less accurate than the TabulatedAttitude class.

Since:
3.1
Version:
$Id: RelativeTabulatedAttitudeLeg.java 15575 2016-03-10 15:09:27Z bignon $
Author:
galpint
See Also:
Serialized Form
Concurrency :
immutable

Constructor Summary
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, Frame frame, List<Pair<Double,AngularCoordinates>> angularCoordinates)
          Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates associated with a double representing the time elapsed since the reference date.
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,AngularCoordinates>> angularCoordinates, int nbInterpolationPoints, Frame frame)
          Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates associated with a double representing the time elapsed since the reference date and a number of points used for interpolation.
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame)
          Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated with a double representing the time elapsed since the reference date.
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame, int nbInterpolationPoints)
          Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated with a double representing the time elapsed since the reference date and a number of points used for interpolation.
 
Method Summary
 Attitude getAttitude(Orbit orbit)
          Compute the attitude corresponding to an orbital state.
 Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
          Compute the attitude corresponding to an orbital state.
 AbsoluteDateInterval getTimeInterval()
          Return the time interval of validity
 void setSpinDerivativesComputation(boolean computeSpinDerivatives)
          Method to activate spin derivative computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeTabulatedAttitudeLeg

public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
                                    List<Pair<Double,Rotation>> orientations,
                                    Frame frame)
                             throws OrekitException
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated with a double representing the time elapsed since the reference date. The number of points used for interpolation is the default one (defined in TabulatedAttitude) Rotations rates (set to 0's) will not be used for interpolation.

Parameters:
referenceDate - reference date
orientations - rotations. WARNING : these must be chronologically ordered.
frame - reference frame from which attitude is computed
Throws:
OrekitException - thrown if there is not enough data for Hermite interpolation
Since:
3.1

RelativeTabulatedAttitudeLeg

public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
                                    List<Pair<Double,Rotation>> orientations,
                                    Frame frame,
                                    int nbInterpolationPoints)
                             throws OrekitException
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated with a double representing the time elapsed since the reference date and a number of points used for interpolation. The List of angular coordinates is built with rotations rates set to 0's and rotations rates (set to 0's) will not be used for interpolation

Parameters:
referenceDate - reference date
orientations - rotations. WARNING : these must be chronologically ordered.
frame - reference frame from which attitude is computed
nbInterpolationPoints - nbInterpolationPoints number of points used for interpolation
Throws:
OrekitException - thrown if there is not enough data for Hermite interpolation
Since:
3.1

RelativeTabulatedAttitudeLeg

public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
                                    Frame frame,
                                    List<Pair<Double,AngularCoordinates>> angularCoordinates)
                             throws OrekitException
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates associated with a double representing the time elapsed since the reference date. The rotation rates will be used for interpolation. The number of points used for interpolation is the default one (defined in TabulatedAttitude)

Parameters:
referenceDate - reference date
angularCoordinates - angular coordinates. WARNING : these must be chronologically ordered.
frame - reference frame from which attitude is computed
Throws:
OrekitException - thrown if there is not enough data for Hermite interpolation
Since:
3.1

RelativeTabulatedAttitudeLeg

public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
                                    List<Pair<Double,AngularCoordinates>> angularCoordinates,
                                    int nbInterpolationPoints,
                                    Frame frame)
                             throws OrekitException
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates associated with a double representing the time elapsed since the reference date and a number of points used for interpolation. The rotation rates will be used for interpolation.

Parameters:
referenceDate - reference date
angularCoordinates - angular coordinates WARNING : these must be chronologically ordered.
frame - reference frame from which attitude is computed
nbInterpolationPoints - nbInterpolationPoints number of points used for interpolation
Throws:
OrekitException - thrown if there is not enough data for Hermite interpolation
Since:
3.1
Method Detail

getTimeInterval

public AbsoluteDateInterval getTimeInterval()
                                     throws OrekitException
Description copied from interface: AttitudeLeg
Return the time interval of validity

Specified by:
getTimeInterval in interface AttitudeLeg
Returns:
time interval of validity
Throws:
OrekitException - if the time interval is not computed (for a slew)

getAttitude

public 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

getAttitude

public Attitude getAttitude(Orbit orbit)
                     throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
orbit - current orbit
Returns:
attitude attitude on the current orbit
Throws:
OrekitException - if attitude cannot be computed

setSpinDerivativesComputation

public void setSpinDerivativesComputation(boolean computeSpinDerivatives)
                                   throws OrekitException
Method to activate spin derivative computation.

Specified by:
setSpinDerivativesComputation in interface AttitudeProvider
Parameters:
computeSpinDerivatives - true if spin derivatives should be computed
Throws:
OrekitException - if spin derivatives can not be computed


Copyright © 2016 CNES. All Rights Reserved.