public class LofOffsetPointing extends AbstractGroundPointing
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.
|
LofOffsetPointing(BodyShape shape,
AttitudeProvider attLaw,
Vector3D satPointingVectorIn,
Vector3D losInSatFrameVec,
Vector3D losNormalInSatFrameVec)
Constructor.
|
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 LofOffsetPointing(BodyShape shape, AttitudeProvider attLaw, Vector3D satPointingVectorIn, Vector3D losInSatFrameVec, Vector3D losNormalInSatFrameVec)
shape
- Body shapeattLaw
- Attitude lawsatPointingVectorIn
- satellite vector defining the pointing directionlosInSatFrameVec
- LOS in satellite frame axislosNormalInSatFrameVec
- LOS normal axis in satellite framepublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
getAttitude
in class AbstractGroundPointing
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 AbstractGroundPointing
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 © 2020 CNES. All rights reserved.