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 Form| Constructor 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.
|
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.
|
getAttitude, getSpinDerivativesComputation, setSpinDerivativesComputationpublic 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 computedpublic Vector3D getFirstAxis()
public Vector3D getSecondAxis()
Copyright © 2020 CNES. All rights reserved.