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 |
getTargetPosition(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the target ground point position in specified frame.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
getBodyFrame, getBodyShape, getLosInSatFrame, getLosNormalInSatFrame, getTargetPV
getSpinDerivativesComputation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD, getAttitude
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 computed for provided dateprotected Vector3D getTargetPosition(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getTargetPosition
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)
Spin derivatives computation applies to provided law attitudeLaw
.
setSpinDerivativesComputation
in interface AttitudeProvider
setSpinDerivativesComputation
in class AbstractAttitudeLaw
computeSpinDerivatives
- true if spin derivatives should be computedCopyright © 2023 CNES. All rights reserved.