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.
IDirection
,
Serialized FormConstructor and Description |
---|
TwoDirectionsAttitude(IDirection firstDirection,
IDirection secondDirection,
Vector3D firstAxis,
Vector3D secondAxis)
Constructor with default step values for spin and spin derivatives computation using finite differences
(0.2s for spin, 0.001s for spin derivative).
|
TwoDirectionsAttitude(IDirection firstDirection,
IDirection secondDirection,
Vector3D firstAxis,
Vector3D secondAxis,
double dtSpin,
double dtAcc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
getAttitude, getSpinDerivativesComputation, setSpinDerivativesComputation
public TwoDirectionsAttitude(IDirection firstDirection, IDirection secondDirection, Vector3D firstAxis, Vector3D secondAxis)
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 directionpublic TwoDirectionsAttitude(IDirection firstDirection, IDirection secondDirection, Vector3D firstAxis, Vector3D secondAxis, double dtSpin, double dtAcc)
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 directiondtSpin
- step for finite differences spin computationdtAcc
- step for finite differences spin derivative computationpublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computedCopyright © 2017 CNES. All rights reserved.