public class SpinStabilized extends AbstractAttitudeLaw implements AttitudeLawModifier
Spin stabilized laws are handled as wrappers for an underlying non-rotating law. This underlying law is typically an
instance of CelestialBodyPointed
with the pointing axis equal to the rotation axis, but can in fact be
anything.
Instances of this class are guaranteed to be immutable.
Constructor and Description |
---|
SpinStabilized(AttitudeLaw pNonRotatingLaw,
AbsoluteDate pStart,
Vector3D pAxis,
double pRate)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
Vector3D |
getAxis()
Getter for the rotation axis in satellite frame.
|
AttitudeLaw |
getNonRotatingLaw()
Getter for the underlying non-rotating attitude law.
|
double |
getRate()
Getter for the spin rate in radians per seconds.
|
AbsoluteDate |
getStartDate()
Getter for the start date of the rotation.
|
AttitudeLaw |
getUnderlyingAttitudeLaw()
Get the underlying attitude law.
|
String |
toString() |
getSpinDerivativesComputation, setSpinDerivativesComputation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD, getAttitude, setSpinDerivativesComputation
public SpinStabilized(AttitudeLaw pNonRotatingLaw, AbsoluteDate pStart, Vector3D pAxis, double pRate)
pNonRotatingLaw
- underlying non-rotating attitude lawpStart
- start date of the rotationpAxis
- rotation axis in satellite framepRate
- spin rate in radians per secondspublic final Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
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 final AttitudeLaw getUnderlyingAttitudeLaw()
getUnderlyingAttitudeLaw
in interface AttitudeLawModifier
public AttitudeLaw getNonRotatingLaw()
public AbsoluteDate getStartDate()
public Vector3D getAxis()
public double getRate()
Copyright © 2023 CNES. All rights reserved.