public class SpinStabilized extends Object implements AttitudeProviderModifier
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(AttitudeProvider nonRotatingLaw,
AbsoluteDate start,
Vector3D axis,
double rate)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T extends CalculusFieldElement<T>> |
getAttitude(FieldPVCoordinatesProvider<T> pvProv,
FieldAbsoluteDate<T> date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
AttitudeProvider |
getUnderlyingAttitudeProvider()
Get the underlying attitude provider.
|
public SpinStabilized(AttitudeProvider nonRotatingLaw, AbsoluteDate start, Vector3D axis, double rate)
nonRotatingLaw
- underlying non-rotating attitude providerstart
- start date of the rotationaxis
- rotation axis in satellite framerate
- spin rate in radians per secondspublic AttitudeProvider getUnderlyingAttitudeProvider()
getUnderlyingAttitudeProvider
in interface AttitudeProviderModifier
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
getAttitude
in interface AttitudeProvider
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedpublic <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
getAttitude
in interface AttitudeProvider
T
- type of the field elementspvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedCopyright © 2002-2022 CS GROUP. All rights reserved.