public class LofOffsetPointing extends GroundPointing
The attitude pointing law is defined by an attitude provider and the satellite axis vector chosen for pointing.
Constructor and Description |
---|
LofOffsetPointing(BodyShape shape,
AttitudeProvider attLaw,
Vector3D satPointingVectorIn)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
protected Vector3D |
getTargetPoint(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the target point in specified frame.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
getBodyFrame, getBodyShape, getTargetPV
getAttitude, getSpinDerivativesComputation
public LofOffsetPointing(BodyShape shape, AttitudeProvider attLaw, Vector3D satPointingVectorIn)
shape
- Body shapeattLaw
- Attitude lawsatPointingVectorIn
- satellite vector defining the pointing directionpublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
getAttitude
in class GroundPointing
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computedprotected Vector3D getTargetPoint(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getTargetPoint
in class GroundPointing
pvProv
- provider for PV coordinatesdate
- date at which target point is requestedframe
- frame in which observed ground point should be providedPatriusException
- if some specific error occurs,
such as no target reachedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives) throws PatriusException
Spin derivatives computation applies to provided law attitudeLaw
.
setSpinDerivativesComputation
in interface AttitudeProvider
setSpinDerivativesComputation
in class AbstractAttitudeLaw
computeSpinDerivatives
- true if spin derivatives should be computedPatriusException
- if spin derivatives can not be computedCopyright © 2019 CNES. All Rights Reserved.