public class TwoDirectionAttitudeLaw 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. If the two directions are collinear, an exception will be thrown in the
getAttitude(PVCoordinatesProvider, AbsoluteDate, Frame)
method.
IDirection
,
Serialized FormConstructor and Description |
---|
TwoDirectionAttitudeLaw(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).
|
TwoDirectionAttitudeLaw(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.
|
Vector3D |
getFirstAxis()
Getter for the satellite axis aligned with the first direction.
|
Vector3D |
getSecondAxis()
Getter for the satellite axis aligned at best with the second direction.
|
getSpinDerivativesComputation, setSpinDerivativesComputation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD, getAttitude
public TwoDirectionAttitudeLaw(IDirection firstDirection, IDirection secondDirection, Vector3D firstAxis, Vector3D secondAxis)
getAttitude(PVCoordinatesProvider, AbsoluteDate, Frame)
method.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 TwoDirectionAttitudeLaw(IDirection firstDirection, IDirection secondDirection, Vector3D firstAxis, Vector3D secondAxis, double dtSpin, double dtAcc)
getAttitude(PVCoordinatesProvider, AbsoluteDate, Frame)
method.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 computed for provided datepublic Vector3D getFirstAxis()
public Vector3D getSecondAxis()
Copyright © 2023 CNES. All rights reserved.